diff options
Diffstat (limited to 'dev/bin')
-rw-r--r-- | dev/bin/build.js | 24 | ||||
-rw-r--r-- | dev/bin/dictionary-validate.js | 2 | ||||
-rw-r--r-- | dev/bin/schema-validate.js | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/dev/bin/build.js b/dev/bin/build.js index ad6254b5..c0339160 100644 --- a/dev/bin/build.js +++ b/dev/bin/build.js @@ -55,11 +55,11 @@ async function createZip(directory, excludeFiles, outputFileName, sevenZipExes, 'a', outputFileName, '.', - ...excludeArguments + ...excludeArguments, ], { - cwd: directory - } + cwd: directory, + }, ); return; } catch (e) { @@ -85,7 +85,7 @@ async function createJSZip(directory, excludeFiles, outputFileName, onUpdate, dr zip.file( fileName.replace(/\\/g, '/'), fs.readFileSync(path.join(directory, fileName), {encoding: null, flag: 'r'}), - {} + {}, ); } @@ -96,7 +96,7 @@ async function createJSZip(directory, excludeFiles, outputFileName, onUpdate, dr const data = await zip.generateAsync({ type: 'nodebuffer', compression: 'DEFLATE', - compressionOptions: {level: 9} + compressionOptions: {level: 9}, }, onUpdate); process.stdout.write('\n'); @@ -223,27 +223,27 @@ export async function main() { const parseArgsConfigOptions = { all: { type: 'boolean', - default: false + default: false, }, default: { type: 'boolean', - default: false + default: false, }, manifest: { - type: 'string' + type: 'string', }, dryRun: { type: 'boolean', - default: false + default: false, }, dryRunBuildZip: { type: 'boolean', - default: false + default: false, }, version: { type: 'string', - default: '0.0.0.0' - } + default: '0.0.0.0', + }, }; const argv = process.argv.slice(2); diff --git a/dev/bin/dictionary-validate.js b/dev/bin/dictionary-validate.js index a2da31e5..47057c94 100644 --- a/dev/bin/dictionary-validate.js +++ b/dev/bin/dictionary-validate.js @@ -24,7 +24,7 @@ async function main() { if (dictionaryFileNames.length === 0) { console.log([ 'Usage:', - ' node dictionary-validate [--ajv] <dictionary-file-names>...' + ' node dictionary-validate [--ajv] <dictionary-file-names>...', ].join('\n')); return; } diff --git a/dev/bin/schema-validate.js b/dev/bin/schema-validate.js index 74a42444..4baeb8ab 100644 --- a/dev/bin/schema-validate.js +++ b/dev/bin/schema-validate.js @@ -27,7 +27,7 @@ function main() { if (args.length < 2) { console.log([ 'Usage:', - ' node schema-validate [--ajv] <schema-file-name> <data-file-names>...' + ' node schema-validate [--ajv] <schema-file-name> <data-file-names>...', ].join('\n')); return; } |