From 81543f35838754db2faa93cb40f43a0282f1d10f Mon Sep 17 00:00:00 2001 From: litter Date: Tue, 29 Oct 2019 18:07:20 -0400 Subject: [PATCH] Reference ./package.json for pkg build process. --- src/v2f.ts | 4 ++-- v2f.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/v2f.ts b/src/v2f.ts index 21c0598..5ac78b3 100644 --- a/src/v2f.ts +++ b/src/v2f.ts @@ -9,7 +9,7 @@ const os = require('os') const osTmp : string = os.tmpdir() const TMP : string = path.join(osTmp, '/v2f/') -const pkg : any = require('package.json') +const pkg : any = require('./package.json') class Dimensions{ h : number; @@ -223,7 +223,7 @@ cmd.arguments(' ') .option('-f, --film ', 'Choose film gauge: 16mm, super16, 35mm') .option('-w, --width ', 'Output page width, in inches. Default 8.5') .option('-l, --length ', 'Output page length, in inches. Default 11') - .option('-e, --executable ', 'Alternate binary to use in place of avconv') + .option('-e, --executable ', 'Alternate binary to use in place of avconv, ie ffmpeg') .option('-v, --verbose', 'Run in verbose mode') .option('-n, --negative', 'Invert color channels to create negative') .parse(args) diff --git a/v2f.js b/v2f.js index 233ea12..3381727 100644 --- a/v2f.js +++ b/v2f.js @@ -7,7 +7,7 @@ const path = require('path'); const os = require('os'); const osTmp = os.tmpdir(); const TMP = path.join(osTmp, '/v2f/'); -const pkg = require('package.json'); +const pkg = require('./package.json'); class Dimensions { constructor(filmStr, dpi) { const IN = dpi / 25.4; @@ -202,7 +202,7 @@ cmd.arguments(' ') .option('-f, --film ', 'Choose film gauge: 16mm, super16, 35mm') .option('-w, --width ', 'Output page width, in inches. Default 8.5') .option('-l, --length ', 'Output page length, in inches. Default 11') - .option('-e, --executable ', 'Alternate binary to use in place of avconv') + .option('-e, --executable ', 'Alternate binary to use in place of avconv, ie ffmpeg') .option('-v, --verbose', 'Run in verbose mode') .option('-n, --negative', 'Invert color channels to create negative') .parse(args);