@coze-arch/cli 0.0.28 → 0.0.30-alpha.37325a

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.
@@ -0,0 +1,18 @@
1
+ /** @type {import('stylelint').Config} */
2
+ export default {
3
+ extends: 'stylelint-config-standard',
4
+ rules: {
5
+ 'at-rule-no-unknown': [
6
+ true,
7
+ {
8
+ ignoreAtRules: ['tailwind', 'apply', 'layer', 'theme', 'custom-variant'],
9
+ },
10
+ ],
11
+ 'color-hex-length': null,
12
+ 'hue-degree-notation': null,
13
+ 'import-notation': null,
14
+ 'lightness-notation': null,
15
+ 'rule-empty-line-before': null,
16
+ 'value-keyword-case': null,
17
+ },
18
+ };
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.28";
2110
+ var version = "0.0.30-alpha.37325a";
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",
@@ -2166,7 +2167,7 @@ var devDependencies = {
2166
2167
  "@coze-arch/ts-config": "workspace:*",
2167
2168
  "@coze-arch/vitest-config": "workspace:*",
2168
2169
  "@coze-coding/lambda": "workspace:*",
2169
- "@emnapi/runtime": "^1.10.0",
2170
+ "@emnapi/runtime": "^1.11.1",
2170
2171
  "@inquirer/prompts": "^3.2.0",
2171
2172
  "@rollup/plugin-commonjs": "^28.0.2",
2172
2173
  "@rollup/plugin-json": "~6.0.0",
@@ -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.7",
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.7"
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(path.sep);
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.28",
3
+ "version": "0.0.30-alpha.37325a",
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",
@@ -59,7 +60,7 @@
59
60
  "@coze-arch/ts-config": "workspace:*",
60
61
  "@coze-arch/vitest-config": "workspace:*",
61
62
  "@coze-coding/lambda": "workspace:*",
62
- "@emnapi/runtime": "^1.10.0",
63
+ "@emnapi/runtime": "^1.11.1",
63
64
  "@inquirer/prompts": "^3.2.0",
64
65
  "@rollup/plugin-commonjs": "^28.0.2",
65
66
  "@rollup/plugin-json": "~6.0.0",
@@ -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.7",
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.7"
84
+ "vitest": "~4.1.9"
84
85
  },
85
86
  "publishConfig": {
86
87
  "access": "public",