@coze-arch/cli 0.0.27 → 0.0.28-alpha.69abc9
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/lib/__templates__/expo/_gitignore +1 -0
- package/lib/__templates__/expo/client/heroui/primitives/input-otp/input-otp.utils.ts +1 -0
- package/lib/__templates__/native-static/_gitignore +1 -0
- package/lib/__templates__/nextjs/_gitignore +1 -0
- package/lib/__templates__/nuxt-vue/_gitignore +1 -0
- package/lib/__templates__/pi-agent/_gitignore +1 -0
- package/lib/__templates__/taro/_gitignore +1 -0
- package/lib/__templates__/taro/package.json +5 -2
- package/lib/__templates__/taro/pnpm-lock.yaml +324 -750
- package/lib/__templates__/taro/pnpm-workspace.yaml +6 -0
- package/lib/__templates__/vite/_gitignore +1 -0
- package/lib/cli.js +14 -19
- package/package.json +10 -10
package/lib/cli.js
CHANGED
|
@@ -2107,7 +2107,7 @@ const EventBuilder = {
|
|
|
2107
2107
|
};
|
|
2108
2108
|
|
|
2109
2109
|
var name = "@coze-arch/cli";
|
|
2110
|
-
var version = "0.0.
|
|
2110
|
+
var version = "0.0.28-alpha.69abc9";
|
|
2111
2111
|
var description = "coze coding devtools cli";
|
|
2112
2112
|
var license = "MIT";
|
|
2113
2113
|
var author = "fanwenjie.fe@bytedance.com";
|
|
@@ -2122,7 +2122,8 @@ var files = [
|
|
|
2122
2122
|
"lib/**/.npmrc",
|
|
2123
2123
|
"!**/*.tsbuildinfo",
|
|
2124
2124
|
"!**/*.map",
|
|
2125
|
-
"!**/node-compile-cache"
|
|
2125
|
+
"!**/node-compile-cache",
|
|
2126
|
+
"!**/node-compile-cache/**"
|
|
2126
2127
|
];
|
|
2127
2128
|
var scripts = {
|
|
2128
2129
|
"audit:post": "pack-audit post",
|
|
@@ -2145,14 +2146,14 @@ var scripts = {
|
|
|
2145
2146
|
};
|
|
2146
2147
|
var dependencies = {
|
|
2147
2148
|
"@iarna/toml": "^2.2.5",
|
|
2148
|
-
ajv: "^8.
|
|
2149
|
+
ajv: "^8.20.0",
|
|
2149
2150
|
"ajv-formats": "^3.0.1",
|
|
2150
2151
|
"change-case": "^5.4.4",
|
|
2151
2152
|
commander: "~12.1.0",
|
|
2152
2153
|
debug: "^4.4.3",
|
|
2153
2154
|
ejs: "^3.1.10",
|
|
2154
2155
|
"fast-glob": "^3.3.3",
|
|
2155
|
-
"js-yaml": "^4.
|
|
2156
|
+
"js-yaml": "^4.2.0",
|
|
2156
2157
|
minimist: "^1.2.5",
|
|
2157
2158
|
shelljs: "^0.10.0"
|
|
2158
2159
|
};
|
|
@@ -2171,8 +2172,7 @@ var devDependencies = {
|
|
|
2171
2172
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
2172
2173
|
"@rollup/plugin-json": "~6.0.0",
|
|
2173
2174
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
2174
|
-
"@rollup/plugin-sucrase": "^5.0
|
|
2175
|
-
"@slardar/rd-cli": "^0.10.3",
|
|
2175
|
+
"@rollup/plugin-sucrase": "^5.1.0",
|
|
2176
2176
|
"@types/debug": "^4.1.13",
|
|
2177
2177
|
"@types/ejs": "^3.1.5",
|
|
2178
2178
|
"@types/iarna__toml": "^2.0.5",
|
|
@@ -2180,15 +2180,15 @@ var devDependencies = {
|
|
|
2180
2180
|
"@types/minimist": "^1.2.5",
|
|
2181
2181
|
"@types/node": "^24",
|
|
2182
2182
|
"@types/shelljs": "^0.10.0",
|
|
2183
|
-
"@vitest/coverage-v8": "~4.1.
|
|
2183
|
+
"@vitest/coverage-v8": "~4.1.9",
|
|
2184
2184
|
knip: "^5.30.1",
|
|
2185
|
-
minimatch: "^10.
|
|
2185
|
+
minimatch: "^10.2.5",
|
|
2186
2186
|
playwright: "~1.60.0",
|
|
2187
2187
|
rollup: "^4.60.1",
|
|
2188
2188
|
sucrase: "^3.35.1",
|
|
2189
2189
|
"tree-kill": "^1.2.2",
|
|
2190
|
-
tsx: "^4.22.
|
|
2191
|
-
vitest: "~4.1.
|
|
2190
|
+
tsx: "^4.22.4",
|
|
2191
|
+
vitest: "~4.1.9"
|
|
2192
2192
|
};
|
|
2193
2193
|
var publishConfig = {
|
|
2194
2194
|
access: "public",
|
|
@@ -9011,10 +9011,7 @@ const parsePassThroughParams = (
|
|
|
9011
9011
|
* @param context - 模板上下文
|
|
9012
9012
|
* @returns 渲染后的内容
|
|
9013
9013
|
*/
|
|
9014
|
-
const renderTemplate = async (
|
|
9015
|
-
filePath,
|
|
9016
|
-
context,
|
|
9017
|
-
) => {
|
|
9014
|
+
const renderTemplate = async (filePath, context) => {
|
|
9018
9015
|
const content = await fs$1.readFile(filePath, 'utf-8');
|
|
9019
9016
|
|
|
9020
9017
|
try {
|
|
@@ -9022,9 +9019,7 @@ const renderTemplate = async (
|
|
|
9022
9019
|
filename: filePath,
|
|
9023
9020
|
});
|
|
9024
9021
|
} catch (error) {
|
|
9025
|
-
throw new Error(
|
|
9026
|
-
`Failed to render template ${filePath}:\n${error instanceof Error ? error.message : String(error)}`,
|
|
9027
|
-
);
|
|
9022
|
+
throw new Error(`Failed to render template ${filePath}:\n${error instanceof Error ? error.message : String(error)}`);
|
|
9028
9023
|
}
|
|
9029
9024
|
};
|
|
9030
9025
|
|
|
@@ -9079,13 +9074,13 @@ const shouldRenderFile = (filePath) => {
|
|
|
9079
9074
|
*/
|
|
9080
9075
|
const shouldIgnoreFile = (filePath) => {
|
|
9081
9076
|
const fileName = path.basename(filePath);
|
|
9082
|
-
const pathParts = filePath.split(
|
|
9077
|
+
const pathParts = filePath.split(/[\\/]+/);
|
|
9083
9078
|
|
|
9084
9079
|
// 精确匹配的文件名
|
|
9085
9080
|
const exactMatch = ['template.config.ts', 'template.config.js', '.DS_Store'];
|
|
9086
9081
|
|
|
9087
9082
|
// 目录名(需要检查路径中是否包含)
|
|
9088
|
-
const directoryPatterns = ['node_modules'];
|
|
9083
|
+
const directoryPatterns = ['node_modules', 'node-compile-cache'];
|
|
9089
9084
|
|
|
9090
9085
|
// 检查精确匹配
|
|
9091
9086
|
if (exactMatch.includes(fileName)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coze-arch/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28-alpha.69abc9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "coze coding devtools cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"lib/**/.npmrc",
|
|
16
16
|
"!**/*.tsbuildinfo",
|
|
17
17
|
"!**/*.map",
|
|
18
|
-
"!**/node-compile-cache"
|
|
18
|
+
"!**/node-compile-cache",
|
|
19
|
+
"!**/node-compile-cache/**"
|
|
19
20
|
],
|
|
20
21
|
"scripts": {
|
|
21
22
|
"audit:post": "pack-audit post",
|
|
@@ -38,14 +39,14 @@
|
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@iarna/toml": "^2.2.5",
|
|
41
|
-
"ajv": "^8.
|
|
42
|
+
"ajv": "^8.20.0",
|
|
42
43
|
"ajv-formats": "^3.0.1",
|
|
43
44
|
"change-case": "^5.4.4",
|
|
44
45
|
"commander": "~12.1.0",
|
|
45
46
|
"debug": "^4.4.3",
|
|
46
47
|
"ejs": "^3.1.10",
|
|
47
48
|
"fast-glob": "^3.3.3",
|
|
48
|
-
"js-yaml": "^4.
|
|
49
|
+
"js-yaml": "^4.2.0",
|
|
49
50
|
"minimist": "^1.2.5",
|
|
50
51
|
"shelljs": "^0.10.0"
|
|
51
52
|
},
|
|
@@ -64,8 +65,7 @@
|
|
|
64
65
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
65
66
|
"@rollup/plugin-json": "~6.0.0",
|
|
66
67
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
67
|
-
"@rollup/plugin-sucrase": "^5.0
|
|
68
|
-
"@slardar/rd-cli": "^0.10.3",
|
|
68
|
+
"@rollup/plugin-sucrase": "^5.1.0",
|
|
69
69
|
"@types/debug": "^4.1.13",
|
|
70
70
|
"@types/ejs": "^3.1.5",
|
|
71
71
|
"@types/iarna__toml": "^2.0.5",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"@types/minimist": "^1.2.5",
|
|
74
74
|
"@types/node": "^24",
|
|
75
75
|
"@types/shelljs": "^0.10.0",
|
|
76
|
-
"@vitest/coverage-v8": "~4.1.
|
|
76
|
+
"@vitest/coverage-v8": "~4.1.9",
|
|
77
77
|
"knip": "^5.30.1",
|
|
78
|
-
"minimatch": "^10.
|
|
78
|
+
"minimatch": "^10.2.5",
|
|
79
79
|
"playwright": "~1.60.0",
|
|
80
80
|
"rollup": "^4.60.1",
|
|
81
81
|
"sucrase": "^3.35.1",
|
|
82
82
|
"tree-kill": "^1.2.2",
|
|
83
|
-
"tsx": "^4.22.
|
|
84
|
-
"vitest": "~4.1.
|
|
83
|
+
"tsx": "^4.22.4",
|
|
84
|
+
"vitest": "~4.1.9"
|
|
85
85
|
},
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public",
|