Skip to content

Commit 532c7cb

Browse files
committed
add template migration to CLI
1 parent a1ac89a commit 532c7cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2133
-95
lines changed

packages/cli/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# dependencies
44
/node_modules
5+
tests/temp
6+
coverage
57
/.pnp
68
.pnp.js
79

packages/cli/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"build": "tsc --noEmit --skipLibCheck && tsup --minify",
4040
"dev": "tsup --watch",
4141
"lint": "eslint src",
42-
"test": "pnpm build && cd testground/demo-basic && ../../dist/index.js template build",
42+
"test": "vitest run",
43+
"test:watch": "vitest watch",
44+
"test:coverage": "vitest run --coverage",
4345
"check-deps": "knip",
4446
"update-deps": "ncu -u && pnpm i",
4547
"generate-ref": "./scripts/generate_sdk_ref.sh"
@@ -51,11 +53,13 @@
5153
"@types/node": "^18.18.6",
5254
"@types/statuses": "^2.0.5",
5355
"@types/update-notifier": "6.0.5",
56+
"@vitest/coverage-v8": "^3.2.4",
5457
"json2md": "^2.0.1",
5558
"knip": "^5.43.6",
5659
"npm-check-updates": "^16.14.6",
5760
"tsup": "^8.4.0",
58-
"typescript": "^5.2.2"
61+
"typescript": "^5.2.2",
62+
"vitest": "^3.2.4"
5963
},
6064
"files": [
6165
"dist",
@@ -68,13 +72,16 @@
6872
},
6973
"dependencies": {
7074
"@iarna/toml": "^2.2.5",
75+
"@inquirer/prompts": "^5.5.0",
7176
"async-listen": "^3.0.1",
7277
"boxen": "^7.1.1",
7378
"chalk": "^5.3.0",
7479
"cli-highlight": "^2.1.11",
80+
"code-block-writer": "^13.0.3",
7581
"command-exists": "^1.2.9",
7682
"commander": "^11.1.0",
7783
"console-table-printer": "^2.11.2",
84+
"dockerfile-ast": "^0.6.1",
7885
"e2b": "^2.0.0",
7986
"inquirer": "^9.2.12",
8087
"open": "^9.1.0",

0 commit comments

Comments
 (0)