From fa127408b19567fcd668ce5d9d3530cf3ebd9c6a Mon Sep 17 00:00:00 2001 From: Bradley Maier Date: Wed, 24 Jun 2020 17:30:06 -0700 Subject: [PATCH 1/2] Align schema with usage --- src/main.ts | 4 ++-- src/schema.json | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.ts b/src/main.ts index 1c53402f..10042c75 100644 --- a/src/main.ts +++ b/src/main.ts @@ -315,13 +315,13 @@ const command: Command = { type: 'number' }); - options('single-bundle', { + options('singleBundle', { describe: 'limits the built output to a single bundle', default: false, type: 'boolean' }); - options('omit-hash', { + options('omitHash', { describe: 'omits hashes from output file names in dist mode', defaultDescription: '(always false for dev builds)', default: false, diff --git a/src/schema.json b/src/schema.json index 5498d27b..3c5580b7 100644 --- a/src/schema.json +++ b/src/schema.json @@ -34,10 +34,10 @@ } } }, - "single-bundle": { + "singleBundle": { "type": "boolean" }, - "omit-hash": { + "omitHash": { "type": "boolean" }, "bundles": { @@ -469,11 +469,11 @@ "f": { "$ref": "#/definitions/features" }, - "single-bundle": { - "$ref": "#/definitions/single-bundle" + "singleBundle": { + "$ref": "#/definitions/singleBundle" }, - "omit-hash": { - "$ref": "#/definitions/omit-hash" + "omitHash": { + "$ref": "#/definitions/omitHash" }, "bundles": { "$ref": "#/definitions/bundles" From 698d1bf1a8d8a75c7c45036bfbdec9e208c0fd21 Mon Sep 17 00:00:00 2001 From: Bradley Maier Date: Mon, 29 Jun 2020 11:19:14 -0700 Subject: [PATCH 2/2] Remove yargs change --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 10042c75..1c53402f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -315,13 +315,13 @@ const command: Command = { type: 'number' }); - options('singleBundle', { + options('single-bundle', { describe: 'limits the built output to a single bundle', default: false, type: 'boolean' }); - options('omitHash', { + options('omit-hash', { describe: 'omits hashes from output file names in dist mode', defaultDescription: '(always false for dev builds)', default: false,