@codapult/cli 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commands/deploy.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { execSync } from 'node:child_process';
|
|
1
|
+
import { execSync, spawnSync } from 'node:child_process';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
import { findProjectRoot } from '../utils/project.js';
|
|
5
5
|
import { ENV_FILE_NAME, getProjectEnvSource, loadProjectEnv, } from '../utils/project-env.js';
|
|
6
6
|
import { heading, success, fail, info, dim, warn, confirm } from '../utils/ui.js';
|
|
7
7
|
function hasCommand(cmd) {
|
|
8
|
-
|
|
9
|
-
execSync(`which ${cmd}`, { stdio: 'pipe' });
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
8
|
+
return spawnSync(cmd, ['--version'], { stdio: 'ignore' }).status === 0;
|
|
15
9
|
}
|
|
16
10
|
// ---------------------------------------------------------------------------
|
|
17
11
|
// codapult deploy vercel
|
|
@@ -19,9 +19,9 @@ const mockedWrite = vi.mocked(writeFileSync);
|
|
|
19
19
|
const mockedMkdir = vi.mocked(mkdirSync);
|
|
20
20
|
beforeEach(() => {
|
|
21
21
|
vi.resetAllMocks();
|
|
22
|
-
vi.spyOn(process, 'exit').mockImplementation((
|
|
22
|
+
vi.spyOn(process, 'exit').mockImplementation(() => {
|
|
23
23
|
throw new Error('process.exit');
|
|
24
|
-
})
|
|
24
|
+
});
|
|
25
25
|
});
|
|
26
26
|
describe('generatePageCommand', () => {
|
|
27
27
|
it('generates a dashboard page file with correct naming', () => {
|
package/dist/commands/setup.js
CHANGED
|
@@ -51,7 +51,7 @@ const BUILT_IN_PRESETS = {
|
|
|
51
51
|
enableDripCampaigns: false,
|
|
52
52
|
enableApiDocs: false,
|
|
53
53
|
enableChangelog: false,
|
|
54
|
-
enableBlog:
|
|
54
|
+
enableBlog: true,
|
|
55
55
|
enableWaitlist: false,
|
|
56
56
|
enableFeatureRequests: false,
|
|
57
57
|
enableWebhooks: false,
|
|
@@ -185,8 +185,11 @@ const MODULE_REMOVALS = [
|
|
|
185
185
|
'src/components/blog',
|
|
186
186
|
'src/components/seo/BlogPostJsonLd.tsx',
|
|
187
187
|
'src/lib/blog',
|
|
188
|
+
'src/lib/rss.ts',
|
|
189
|
+
'src/lib/rss.test.ts',
|
|
188
190
|
'content/blog',
|
|
189
191
|
'src/app/rss.xml',
|
|
192
|
+
'src/app/[locale]/rss.xml',
|
|
190
193
|
],
|
|
191
194
|
label: 'Blog',
|
|
192
195
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codapult/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Codapult CLI — manage, update, and diagnose your Codapult SaaS project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"packageManager": "pnpm@10.33.2",
|
|
@@ -46,23 +46,23 @@
|
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
47
|
"commander": "^14.0.3",
|
|
48
48
|
"picocolors": "^1.1.1",
|
|
49
|
-
"zod": "^4.3
|
|
49
|
+
"zod": "^4.4.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@js-toolkit/config-utils": "^1.0.1",
|
|
53
53
|
"@js-toolkit/eslint-config": "^1.1.4",
|
|
54
54
|
"@js-toolkit/prettier-config": "^1.0.1",
|
|
55
55
|
"@js-toolkit/tsconfig": "^1.0.1",
|
|
56
|
-
"@release-it/conventional-changelog": "^
|
|
57
|
-
"@types/node": "^25.
|
|
56
|
+
"@release-it/conventional-changelog": "^11.0.0",
|
|
57
|
+
"@types/node": "^25.9.1",
|
|
58
58
|
"eslint": "^9.39.4",
|
|
59
59
|
"eslint-config-prettier": "^10.1.8",
|
|
60
60
|
"eslint-plugin-prettier": "^5.5.5",
|
|
61
|
-
"prettier": "^3.8.
|
|
62
|
-
"release-it": "^20.0.
|
|
63
|
-
"typescript": "^6.0.
|
|
64
|
-
"typescript-eslint": "^8.
|
|
65
|
-
"vitest": "^4.1.
|
|
61
|
+
"prettier": "^3.8.3",
|
|
62
|
+
"release-it": "^20.0.1",
|
|
63
|
+
"typescript": "^6.0.3",
|
|
64
|
+
"typescript-eslint": "^8.59.4",
|
|
65
|
+
"vitest": "^4.1.7"
|
|
66
66
|
},
|
|
67
67
|
"pnpm": {
|
|
68
68
|
"overrides": {
|