From 3b933708134d66d7757abd7f49a4bfb5f7318d39 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 10 Aug 2023 14:43:43 +0200 Subject: [PATCH] Fix the error in cli.ts --- devEnv/cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devEnv/cli.ts b/devEnv/cli.ts index 234c35b..ae41a52 100644 --- a/devEnv/cli.ts +++ b/devEnv/cli.ts @@ -70,6 +70,7 @@ prog.command('build', 'Builds all the main packages').action(async () => { prog .command('release ', 'Releases all the main packages to npm') + .option('--skip-ts', 'Skip emitting typescript declarations') .option('--skip-lint', 'Skip typecheck and lint') .action(async (version, opts) => { /** @@ -181,7 +182,7 @@ prog console.log('Skipping typecheck and lint') } - const skipTypescriptEmit = argv['skip-ts'] === true + const skipTypescriptEmit = opts['skip-ts'] === true console.log('Assigning versions') await writeVersionsToPackageJSONs(version)