@coze-arch/cli 0.0.28 → 0.0.29
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/client/heroui/primitives/input-otp/input-otp.utils.ts +1 -0
- package/lib/__templates__/taro/package.json +4 -1
- package/lib/__templates__/taro/pnpm-lock.yaml +324 -750
- package/lib/__templates__/taro/pnpm-workspace.yaml +6 -0
- package/lib/cli.js +9 -13
- package/package.json +5 -4
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.29";
|
|
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",
|
|
@@ -2179,7 +2180,7 @@ var devDependencies = {
|
|
|
2179
2180
|
"@types/minimist": "^1.2.5",
|
|
2180
2181
|
"@types/node": "^24",
|
|
2181
2182
|
"@types/shelljs": "^0.10.0",
|
|
2182
|
-
"@vitest/coverage-v8": "~4.1.
|
|
2183
|
+
"@vitest/coverage-v8": "~4.1.9",
|
|
2183
2184
|
knip: "^5.30.1",
|
|
2184
2185
|
minimatch: "^10.2.5",
|
|
2185
2186
|
playwright: "~1.60.0",
|
|
@@ -2187,7 +2188,7 @@ var devDependencies = {
|
|
|
2187
2188
|
sucrase: "^3.35.1",
|
|
2188
2189
|
"tree-kill": "^1.2.2",
|
|
2189
2190
|
tsx: "^4.22.4",
|
|
2190
|
-
vitest: "~4.1.
|
|
2191
|
+
vitest: "~4.1.9"
|
|
2191
2192
|
};
|
|
2192
2193
|
var publishConfig = {
|
|
2193
2194
|
access: "public",
|
|
@@ -9010,10 +9011,7 @@ const parsePassThroughParams = (
|
|
|
9010
9011
|
* @param context - 模板上下文
|
|
9011
9012
|
* @returns 渲染后的内容
|
|
9012
9013
|
*/
|
|
9013
|
-
const renderTemplate = async (
|
|
9014
|
-
filePath,
|
|
9015
|
-
context,
|
|
9016
|
-
) => {
|
|
9014
|
+
const renderTemplate = async (filePath, context) => {
|
|
9017
9015
|
const content = await fs$1.readFile(filePath, 'utf-8');
|
|
9018
9016
|
|
|
9019
9017
|
try {
|
|
@@ -9021,9 +9019,7 @@ const renderTemplate = async (
|
|
|
9021
9019
|
filename: filePath,
|
|
9022
9020
|
});
|
|
9023
9021
|
} catch (error) {
|
|
9024
|
-
throw new Error(
|
|
9025
|
-
`Failed to render template ${filePath}:\n${error instanceof Error ? error.message : String(error)}`,
|
|
9026
|
-
);
|
|
9022
|
+
throw new Error(`Failed to render template ${filePath}:\n${error instanceof Error ? error.message : String(error)}`);
|
|
9027
9023
|
}
|
|
9028
9024
|
};
|
|
9029
9025
|
|
|
@@ -9078,13 +9074,13 @@ const shouldRenderFile = (filePath) => {
|
|
|
9078
9074
|
*/
|
|
9079
9075
|
const shouldIgnoreFile = (filePath) => {
|
|
9080
9076
|
const fileName = path.basename(filePath);
|
|
9081
|
-
const pathParts = filePath.split(
|
|
9077
|
+
const pathParts = filePath.split(/[\\/]+/);
|
|
9082
9078
|
|
|
9083
9079
|
// 精确匹配的文件名
|
|
9084
9080
|
const exactMatch = ['template.config.ts', 'template.config.js', '.DS_Store'];
|
|
9085
9081
|
|
|
9086
9082
|
// 目录名(需要检查路径中是否包含)
|
|
9087
|
-
const directoryPatterns = ['node_modules'];
|
|
9083
|
+
const directoryPatterns = ['node_modules', 'node-compile-cache'];
|
|
9088
9084
|
|
|
9089
9085
|
// 检查精确匹配
|
|
9090
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.29",
|
|
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",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"@types/minimist": "^1.2.5",
|
|
73
74
|
"@types/node": "^24",
|
|
74
75
|
"@types/shelljs": "^0.10.0",
|
|
75
|
-
"@vitest/coverage-v8": "~4.1.
|
|
76
|
+
"@vitest/coverage-v8": "~4.1.9",
|
|
76
77
|
"knip": "^5.30.1",
|
|
77
78
|
"minimatch": "^10.2.5",
|
|
78
79
|
"playwright": "~1.60.0",
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
"sucrase": "^3.35.1",
|
|
81
82
|
"tree-kill": "^1.2.2",
|
|
82
83
|
"tsx": "^4.22.4",
|
|
83
|
-
"vitest": "~4.1.
|
|
84
|
+
"vitest": "~4.1.9"
|
|
84
85
|
},
|
|
85
86
|
"publishConfig": {
|
|
86
87
|
"access": "public",
|