From 90d45fcc398951db48f517e8fbbf3fbd086ef1d2 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 15 Aug 2024 14:56:35 +0800 Subject: [PATCH] add local flag --- ecosystem-ci.ts | 5 ++++- types.d.ts | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ecosystem-ci.ts b/ecosystem-ci.ts index 846aea7..0e2bf99 100644 --- a/ecosystem-ci.ts +++ b/ecosystem-ci.ts @@ -22,6 +22,7 @@ cli .option('--tag ', 'vue tag to use') .option('--commit ', 'vue commit sha to use') .option('--release ', 'vue release to use from npm registry') + .option('--local', 'test locally') .action(async (suites, options: CommandOptions) => { const { root, vuePath, workspace } = await setupEnvironment() const suitesToRun = getSuitesToRun(suites, root) @@ -33,7 +34,9 @@ cli if (options.release) { vueVersion = options.release } else { - await buildVue({ verify: options.verify, publish: true }) + if (!options.local) { + await buildVue({ verify: options.verify, publish: true }) + } vueVersion = parseVueVersion(vuePath) } diff --git a/types.d.ts b/types.d.ts index 2b4dda4..50fe8de 100644 --- a/types.d.ts +++ b/types.d.ts @@ -37,6 +37,7 @@ export interface CommandOptions { verify?: boolean publish?: boolean skipGit?: boolean + local?: boolean } export interface RepoOptions {