diff --git a/package.json b/package.json index e4b0f3afd..02b7bfd28 100644 --- a/package.json +++ b/package.json @@ -116,6 +116,7 @@ "@types/react": "^16.9.11", "@types/rollup-plugin-json": "^3.0.2", "@types/rollup-plugin-sourcemaps": "^0.4.2", + "@types/sade": "^1.6.0", "@types/semver": "^7.1.0", "doctoc": "^1.4.0", "husky": "^3.0.9", diff --git a/src/createRollupConfig.ts b/src/createRollupConfig.ts index 6a555a3f0..880208e74 100644 --- a/src/createRollupConfig.ts +++ b/src/createRollupConfig.ts @@ -152,7 +152,7 @@ export async function createRollupConfig( target: 'esnext', }, }, - check: opts.transpileOnly === false, + check: !opts.transpileOnly, }), babelPluginTsdx({ exclude: 'node_modules/**', diff --git a/src/env.d.ts b/src/env.d.ts index 2ee987ed1..dae549039 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -2,7 +2,6 @@ declare module 'asyncro'; declare module 'enquirer'; declare module 'jpjs'; declare module 'ora'; -declare module 'sade'; declare module 'tiny-glob/sync'; declare module 'ansi-escapes'; declare module 'eslint-config-react-app'; diff --git a/src/index.ts b/src/index.ts index 0c2532044..e81dd8415 100755 --- a/src/index.ts +++ b/src/index.ts @@ -294,7 +294,7 @@ prog .example('watch --onSuccess "echo Successful build!"') .option('--onFailure', 'Run a command on a failed build') .example('watch --onFailure "The build failed!"') - .option('--transpileOnly', 'Skip type checking', false) + .option('--transpileOnly', 'Skip type checking') .example('build --transpileOnly') .option('--extractErrors', 'Extract invariant errors to ./errors/codes.json.') .example('build --extractErrors') @@ -397,7 +397,7 @@ prog .example('build --format cjs,esm') .option('--tsconfig', 'Specify custom tsconfig path') .example('build --tsconfig ./tsconfig.foo.json') - .option('--transpileOnly', 'Skip type checking', false) + .option('--transpileOnly', 'Skip type checking') .example('build --transpileOnly') .option( '--extractErrors', diff --git a/yarn.lock b/yarn.lock index f785e9998..f4c722bff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1098,6 +1098,11 @@ dependencies: "@types/node" "*" +"@types/mri@*": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@types/mri/-/mri-1.1.0.tgz#66555e4d797713789ea0fefdae0898d8170bf5af" + integrity sha512-fMl88ZoZXOB7VKazJ6wUMpZc9QIn+jcigSFRf2K/rrw4DcXn+/uGxlWX8DDlcE7JkwgIZ7BDH+JgxZPlc/Ap3g== + "@types/ms@^0.7.30": version "0.7.31" resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197" @@ -1179,6 +1184,13 @@ "@types/node" "*" rollup "^0.63.4" +"@types/sade@^1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@types/sade/-/sade-1.6.0.tgz#eef2efa892b035b42693b00c554fc9713c6fefb2" + integrity sha512-Db3m69LUsLG4jqrJrf+X/IwwtvdxeazrDodWSNEcAGe60dxQJPXil9uNl2tJj6IRjjadNv2eDYV1XHM0utCSLQ== + dependencies: + "@types/mri" "*" + "@types/semver@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.1.0.tgz#c8c630d4c18cd326beff77404887596f96408408"