From bca15ad255378a3d4f8c1c1c133b02ea5090544a Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Thu, 5 Dec 2024 14:04:39 -0800 Subject: [PATCH] Fix publish behavior for CLI --- package.json | 2 +- packages/cli/index.ts | 4 +++- packages/cli/package.json | 2 +- tests/demo/commoners.config.ts | 4 ++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index dd79b17..09749d4 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@commoners/windows": "0.0.55", "@vitest/coverage-v8": "^2.0.3", "search-insights": "^2.15.0", - "commoners": "0.0.55", + "commoners": "0.0.56", "vite": "^5.3.4", "vitepress": "^1.3.1", "vitest": "^2.0.3" diff --git a/packages/cli/index.ts b/packages/cli/index.ts index c6cb8ab..312b17f 100755 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -113,9 +113,11 @@ cli.command('build [root]', 'Build the application in the specified directory', .option('--config ', 'Specify a configuration file') .action(async (root, options) => { - const { config: configPath, service, ...overrides } = options + const { config: configPath, service, sign, publish, ...overrides } = options const { target } = overrides + overrides.build = { sign, publish } + await preprocessTarget(target) diff --git a/packages/cli/package.json b/packages/cli/package.json index 5a44c93..6f33b22 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "commoners", "description": "Cross-Platform Development for the Rest of Us", - "version": "0.0.55", + "version": "0.0.56", "type": "module", "license": "MIT", "engines": { diff --git a/tests/demo/commoners.config.ts b/tests/demo/commoners.config.ts index 82d61a7..9b852c7 100644 --- a/tests/demo/commoners.config.ts +++ b/tests/demo/commoners.config.ts @@ -53,6 +53,10 @@ const config = defineConfig({ // target: 'desktop' // Default target // outDir: join(root, '_site'), // Custom output directory for all targets + // build: { + // sign: false, // Disable code signing + // }, + pwa: { manifest: { short_name } },