@yarn-tool/static-file 3.0.11 → 3.0.14

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/CHANGELOG.md CHANGED
@@ -3,6 +3,66 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.14](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@3.0.12...@yarn-tool/static-file@3.0.14) (2026-04-26)
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **static-file:** Introduce `__root-core` for standardized root path resolution and `__TEST_TEMP`
12
+
13
+
14
+
15
+ ### 📦 Code Refactoring
16
+
17
+ * **static-file:** Introduce `__root-core` for standardized root path resolution and `__TEST_TEMP` ([a7a598b](https://github.com/bluelovers/ws-yarn-workspaces/commit/a7a598bd481003a7e92170433cfd1b1e03604ef9))
18
+
19
+
20
+ ### 💎 Styles
21
+
22
+ * **static-file:** 統一 `jest.config.auto.js` 的註釋風格與代碼格式 ([105edab](https://github.com/bluelovers/ws-yarn-workspaces/commit/105edab341a812bcd15e08b19f9156ca6a0ff4c2))
23
+
24
+
25
+ ### ♻️ Chores
26
+
27
+ * 大範圍更新依賴版本並優化腳本執行與路徑解析 ([221eb35](https://github.com/bluelovers/ws-yarn-workspaces/commit/221eb352b31a00d5ffea5e2c8323b50863508f2c))
28
+
29
+
30
+ ### 🔖 Miscellaneous
31
+
32
+ * . ([3989f53](https://github.com/bluelovers/ws-yarn-workspaces/commit/3989f53f30b4ecd42af4fa20e1b6ef3d61d72496))
33
+
34
+
35
+
36
+ ## [3.0.13](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@3.0.12...@yarn-tool/static-file@3.0.13) (2026-04-26)
37
+
38
+
39
+ ### BREAKING CHANGES
40
+
41
+ * **static-file:** Introduce `__root-core` for standardized root path resolution and `__TEST_TEMP`
42
+
43
+
44
+
45
+ ### 📦 Code Refactoring
46
+
47
+ * **static-file:** Introduce `__root-core` for standardized root path resolution and `__TEST_TEMP` ([a7a598b](https://github.com/bluelovers/ws-yarn-workspaces/commit/a7a598bd481003a7e92170433cfd1b1e03604ef9))
48
+
49
+
50
+ ### ♻️ Chores
51
+
52
+ * 大範圍更新依賴版本並優化腳本執行與路徑解析 ([221eb35](https://github.com/bluelovers/ws-yarn-workspaces/commit/221eb352b31a00d5ffea5e2c8323b50863508f2c))
53
+
54
+
55
+
56
+ ## [3.0.12](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@3.0.11...@yarn-tool/static-file@3.0.12) (2026-03-10)
57
+
58
+
59
+
60
+ ### 📚 Documentation
61
+
62
+ * **node-modules:** 增強套件文檔並添加雙語註釋 ([8ed3d90](https://github.com/bluelovers/ws-yarn-workspaces/commit/8ed3d90aa331edbc4d77be19ff408b4ef5142ec2))
63
+
64
+
65
+
6
66
  ## [3.0.11](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@3.0.10...@yarn-tool/static-file@3.0.11) (2026-03-09)
7
67
 
8
68
 
package/file/gitignore CHANGED
@@ -243,3 +243,28 @@ test/fixtures/.gitkeep
243
243
  !.aiassistant
244
244
 
245
245
  .nx
246
+
247
+ !/api-extractor*.json
248
+
249
+ !__mocks__
250
+ !__mocks__/
251
+ !__mocks__/*
252
+
253
+ out/
254
+
255
+ .codenomad
256
+ .logs
257
+
258
+ !test/__root-core.cjs
259
+ !test/__root-core.d.ts
260
+ !test/__root-core.mts
261
+
262
+ !test/__root-core.d.cts
263
+ !test/__root-core.d.mts
264
+ !test/__root-core.mjs
265
+
266
+ /certificates
267
+
268
+ .next
269
+
270
+ test/temp*/
@@ -16,9 +16,7 @@ const { basename, extname, dirname } = require('path');
16
16
  *
17
17
  * @type { import('ts-jest').JestConfigWithTsJest }
18
18
  */
19
- let jestConfig = {
20
-
21
- }
19
+ let jestConfig = {}
22
20
 
23
21
  /**
24
22
  * 嘗試使用 `@yarn-tool/require-resolve` 載入模組的工具函數
@@ -33,18 +31,23 @@ function _lazyRequire(name, paths)
33
31
  let m;
34
32
  try
35
33
  {
36
- // 嘗試使用 require-resolve 工具載入模組
37
- // Try to load module using require-resolve tool
34
+ /**
35
+ * 嘗試使用 require-resolve 工具載入模組
36
+ * Try to load module using require-resolve tool
37
+ */
38
38
  m = require('@yarn-tool/require-resolve').requireExtra(name, {
39
39
  includeCurrentDirectory: true,
40
40
  includeGlobal: true,
41
41
  paths,
42
42
  });
43
43
  }
44
- catch (e) {}
44
+ catch (e)
45
+ {}
45
46
 
46
- // 如果失敗則使用標準 require
47
- // If failed, use standard require
47
+ /**
48
+ * 如果失敗則使用標準 require
49
+ * If failed, use standard require
50
+ */
48
51
  return typeof m === 'undefined' ? require(name) : m;
49
52
  }
50
53
 
@@ -65,8 +68,10 @@ function _requireResolve(name)
65
68
  /** @type {import('@yarn-tool/require-resolve')} */
66
69
  const { requireResolveExtra, requireResolveCore } = _lazyRequire('@yarn-tool/require-resolve');
67
70
 
68
- // 嘗試從多個路徑解析 TSDX 相關模組
69
- // Try to resolve TSDX related modules from multiple paths
71
+ /**
72
+ * 嘗試從多個路徑解析 TSDX 相關模組
73
+ * Try to resolve TSDX related modules from multiple paths
74
+ */
70
75
  const paths = [
71
76
  requireResolveExtra('@bluelovers/tsdx').result,
72
77
  requireResolveExtra('tsdx').result,
@@ -83,8 +88,10 @@ function _requireResolve(name)
83
88
 
84
89
  }
85
90
 
86
- // 如果都失敗,使用標準 resolve
87
- // If all failed, use standard resolve
91
+ /**
92
+ * 如果都失敗,使用標準 resolve
93
+ * If all failed, use standard resolve
94
+ */
88
95
  result = result || require.resolve(name);
89
96
 
90
97
  console.info('[require.resolve]', name, '=>', result)
@@ -92,27 +99,35 @@ function _requireResolve(name)
92
99
  return result
93
100
  }
94
101
 
95
- // 配置解析狀態標誌
96
- // Configuration resolution status flag
102
+ /**
103
+ * 配置解析狀態標誌
104
+ * Configuration resolution status flag
105
+ */
97
106
  let _isNeedConfig = true;
98
107
 
99
108
  try
100
109
  {
101
- // 第一層:搜尋工作區中的配置檔案
102
- // First level: Search for configuration files in workspace
110
+ /**
111
+ * 第一層:搜尋工作區中的配置檔案
112
+ * First level: Search for configuration files in workspace
113
+ */
103
114
  if (!jestConfig.preset)
104
115
  {
105
116
  /** @type {import('@yarn-tool/ws-find-up-paths')} */
106
117
  const { findUpPathsWorkspaces } = _lazyRequire('@yarn-tool/ws-find-up-paths');
107
118
 
108
- // 向上搜尋 jest-preset.js 和 jest.config.js
109
- // Search upwards for jest-preset.js and jest.config.js
119
+ /**
120
+ * 向上搜尋 jest-preset.js jest.config.js
121
+ * Search upwards for jest-preset.js and jest.config.js
122
+ */
110
123
  let result = findUpPathsWorkspaces([
111
124
  'jest-preset.js',
112
125
  'jest.config.js',
113
126
  ], {
114
- ignoreCurrentPackage: true, // 忽略當前套件
115
- onlyFiles: true, // 只搜尋檔案
127
+ /** 忽略當前套件 / Ignore current package */
128
+ ignoreCurrentPackage: true,
129
+ /** 只搜尋檔案 / Only search for files */
130
+ onlyFiles: true,
116
131
  }).result;
117
132
 
118
133
  if (result)
@@ -121,15 +136,19 @@ try
121
136
 
122
137
  switch (name)
123
138
  {
139
+ /**
140
+ * 如果是 jest-preset.js,使用其目錄作為 preset
141
+ * If it's jest-preset.js, use its directory as preset
142
+ */
124
143
  case 'jest-preset':
125
- // 如果是 jest-preset.js,使用其目錄作為 preset
126
- // If it's jest-preset.js, use its directory as preset
127
144
  // @ts-ignore
128
145
  jestConfig.preset = dirname(result);
129
146
  break;
147
+ /**
148
+ * 其他情況,載入配置檔案內容
149
+ * Otherwise, load the configuration file content
150
+ */
130
151
  default:
131
- // 其他情況,載入配置檔案內容
132
- // Otherwise, load the configuration file content
133
152
  jestConfig = {
134
153
  ...require(result),
135
154
  jestConfig,
@@ -148,8 +167,10 @@ catch (e)
148
167
 
149
168
  try
150
169
  {
151
- // 第二層:嘗試解析 @bluelovers/jest-config
152
- // Second level: Try to resolve @bluelovers/jest-config
170
+ /**
171
+ * 第二層:嘗試解析 @bluelovers/jest-config
172
+ * Second level: Try to resolve @bluelovers/jest-config
173
+ */
153
174
  if (_isNeedConfig && !jestConfig.preset)
154
175
  {
155
176
  let result = _requireResolve('@bluelovers/jest-config/package.json');
@@ -168,15 +189,19 @@ catch (e)
168
189
 
169
190
  if (_isNeedConfig && !jestConfig.preset)
170
191
  {
171
- // 第三層:使用預設的 @bluelovers/jest-config
172
- // Third level: Use default @bluelovers/jest-config
192
+ /**
193
+ * 第三層:使用預設的 @bluelovers/jest-config
194
+ * Third level: Use default @bluelovers/jest-config
195
+ */
173
196
  // @ts-ignore
174
197
  jestConfig.preset = '@bluelovers/jest-config';
175
198
  _isNeedConfig = false;
176
199
  }
177
200
 
178
- // 輸出最終的 preset 設定
179
- // Output the final preset configuration
201
+ /**
202
+ * 輸出最終的 preset 設定
203
+ * Output the final preset configuration
204
+ */
180
205
  console.info(`jest.config.preset: ${jestConfig.preset}`);
181
206
 
182
207
  module.exports = jestConfig
package/file/npmignore CHANGED
@@ -163,3 +163,18 @@ __fixtures__
163
163
  ./stories/
164
164
  ./global.tsdx.d.ts
165
165
  ./global.d.ts
166
+
167
+ /api-extractor*.json
168
+
169
+ __mocks__
170
+
171
+ .codenomad
172
+ .logs
173
+
174
+ openspec/
175
+ .next
176
+
177
+ /*.md
178
+ !/README.md
179
+ !/CHANGELOG.md
180
+
@@ -18,6 +18,9 @@ publicHoistPattern:
18
18
 
19
19
  linkWorkspacePackages: true
20
20
  saveWorkspaceProtocol: false
21
+ # 設定決定了 當依賴版本重疊時,pnpm 該優先用「本地程式碼」還是「線上版本」。
22
+ preferWorkspacePackages: true
23
+
21
24
  # ignoreWorkspaceRootCheck: true
22
25
 
23
26
  # onlyBuiltDependencies: []
@@ -1,11 +1,18 @@
1
- declare var __DEV__: boolean
1
+ /** 環境開發模式標記 / Environment development mode flag */
2
+ declare var __DEV__: boolean;
3
+
4
+ /** TSDX 輸出格式定義(例如 esm, cjs, umd)/ Defines the TSDX output format (e.g., esm, cjs, umd) */
2
5
  declare var __TSDX_FORMAT__: 'esm' | 'cjs' | 'umd';
3
6
 
4
- declare namespace NodeJS
5
- {
7
+ /** Node.js 環境的流程變數命名空間 / Namespace for NodeJS environment process variables */
8
+ declare namespace NodeJS {
9
+ /** 處理器環境接口定義 / Definition of the handler environment interface */
6
10
  interface ProcessEnv
7
11
  {
8
- TSDX_FORMAT?: typeof __TSDX_FORMAT__
9
- NODE_ENV?: string | 'test' | 'development' | 'production'
12
+ /** TSDX 輸出格式(來自全局類型)/ TSDX output format (from global type) */
13
+ TSDX_FORMAT?: typeof __TSDX_FORMAT__;
14
+
15
+ /** 當前運行環境,例如 'test', 'development' 或 'production' / Current running environment, e.g., 'test', 'development' or 'production' */
16
+ NODE_ENV?: string | 'test' | 'development' | 'production';
10
17
  }
11
18
  }
@@ -0,0 +1 @@
1
+ module.exports.__ROOT_CORE = require('upath2').resolve(__dirname, '..');
@@ -0,0 +1 @@
1
+ export const __ROOT_CORE: string;
@@ -0,0 +1 @@
1
+ export const __ROOT_CORE: string;
@@ -0,0 +1 @@
1
+ export const __ROOT_CORE: string;
@@ -0,0 +1,8 @@
1
+ import path from 'upath2';
2
+ import { fileURLToPath } from 'url';
3
+
4
+ // @ts-ignore
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ export const __ROOT_CORE = path.resolve(__dirname, '..');
@@ -1,8 +1,47 @@
1
- import { join } from "path";
1
+ /**
2
+ * 測試路徑架構 / Test Path Structure
3
+ *
4
+ * test/
5
+ * ├── fixtures/ ← 測試資料夾(唯讀)
6
+ * └── temp/ ← 臨時檔案(可寫,永遠建立子資料夾)
7
+ * ├── fake-lib/
8
+ * └── temp-pkg/
9
+ */
10
+ /// <reference types="node" />
11
+ import path from 'upath2';
12
+ // @ts-ignore
13
+ import { __ROOT_CORE as __ROOT } from './__root-core.cjs';
2
14
 
3
- export const __ROOT = join(__dirname, '..');
15
+ /**
16
+ * 專案根目錄
17
+ */
18
+ export { __ROOT }
4
19
 
5
20
  export const isWin = process.platform === "win32";
6
21
 
7
- export const __TEST_ROOT = join(__ROOT, 'test');
8
- export const __TEST_FIXTURES = join(__TEST_ROOT, 'fixtures');
22
+ /**
23
+ * 測試資料夾
24
+ *
25
+ * @default test
26
+ */
27
+ export const __TEST_ROOT = path.join(__ROOT, 'test');
28
+
29
+ /**
30
+ * 測試資料夾(唯讀)
31
+ *
32
+ * @default test/fixtures
33
+ */
34
+ export const __TEST_FIXTURES = path.join(__TEST_ROOT, 'fixtures');
35
+
36
+ /**
37
+ * 臨時檔案(可寫,永遠建立子資料夾)
38
+ *
39
+ * test/
40
+ * ├── fixtures/ ← 測試資料夾(唯讀)
41
+ * └── temp/ ← 臨時檔案(可寫,永遠建立子資料夾)
42
+ * ├── fake-lib/
43
+ * └── temp-pkg/
44
+ *
45
+ * @default test/temp
46
+ */
47
+ export const __TEST_TEMP = path.join(__TEST_ROOT, 'temp');
package/file/test/temp.ts CHANGED
@@ -1,4 +1,2 @@
1
- /**
2
- * Created by user on 2024/5/31.
3
- */
1
+ /// <reference types="node" />
4
2
 
package/lib/const.d.ts CHANGED
@@ -20,7 +20,7 @@ import { _Key, IStaticFilesMapArray } from './types';
20
20
  * - staticFile: The source static file path (relative to static root) / 來源靜態檔案路徑(相對於靜態根目錄)
21
21
  * - detectFile: Optional file to check for existence before copying / 可選的檢測檔案,複製前檢查是否存在
22
22
  */
23
- declare const _defaultCopyStaticFiles: [[".npmignore", "file/npmignore"], [".gitignore", "file/gitignore"], [".eslintignore", "file/eslintignore"], ["tsconfig.json.tpl", "file/tsconfig.json.tpl", "tsconfig.json"], ["test/tsconfig.json.tpl", "file/test/tsconfig.json.tpl", "test/tsconfig.json"], ["test/tsconfig.json", "file/test/tsconfig.json.tpl"], ["tsconfig.esm.json.tpl", "file/tsconfig.esm.json.tpl", "tsconfig.esm.json"], ["tsconfig.tsdx.json.tpl", "file/tsconfig.tsdx.json.tpl", "tsconfig.tsdx.json"], ["tsconfig.json", "file/tsconfig.json.tpl"], [".eslintrc.json.tpl", "file/eslintrc.json.tpl", ".eslintrc.json"], ["README.md", "file/README.md"], [".mocharc.yml.tpl", "file/mocharc.yml"], ["jest.config.js", "file/jest.config.auto.js"], [".nowignore", "file/nowignore"], ["now.json.tpl", "file/now.json.tpl", "now.json"], ["tsdx.config.js.tpl", "file/tsdx.config.js", "tsdx.config.js"], ["test/__root.ts", "file/test/__root.ts"], ["test/fixtures/.gitkeep", "file/test/fixtures/.gitkeep"], ...["test/temp.ts", "file/test/temp.ts"][]];
23
+ declare const _defaultCopyStaticFiles: [[".npmignore", "file/npmignore"], [".gitignore", "file/gitignore"], [".eslintignore", "file/eslintignore"], ["tsconfig.json.tpl", "file/tsconfig.json.tpl", "tsconfig.json"], ["test/tsconfig.json.tpl", "file/test/tsconfig.json.tpl", "test/tsconfig.json"], ["test/tsconfig.json", "file/test/tsconfig.json.tpl"], ["tsconfig.esm.json.tpl", "file/tsconfig.esm.json.tpl", "tsconfig.esm.json"], ["tsconfig.tsdx.json.tpl", "file/tsconfig.tsdx.json.tpl", "tsconfig.tsdx.json"], ["tsconfig.json", "file/tsconfig.json.tpl"], [".eslintrc.json.tpl", "file/eslintrc.json.tpl", ".eslintrc.json"], ["README.md", "file/README.md"], [".mocharc.yml.tpl", "file/mocharc.yml"], ["jest.config.js", "file/jest.config.auto.js"], [".nowignore", "file/nowignore"], ["now.json.tpl", "file/now.json.tpl", "now.json"], ["tsdx.config.js.tpl", "file/tsdx.config.js", "tsdx.config.js"], ["test/__root.ts", "file/test/__root.ts"], ["test/fixtures/.gitkeep", "file/test/fixtures/.gitkeep"], ...["test/temp.ts" | "test/__root-core.cjs" | "test/__root-core.mjs" | "test/__root-core.d.cts" | "test/__root-core.d.mts" | "test/__root-core.d.ts", "file/test/temp.ts" | "file/test/__root-core.cjs" | "file/test/__root-core.mjs" | "file/test/__root-core.d.cts" | "file/test/__root-core.d.mts" | "file/test/__root-core.d.ts"][]];
24
24
  /**
25
25
  * Default static files for root-level only copying / 僅根目錄層級複製的預設靜態檔案
26
26
  *
package/lib/const.js CHANGED
@@ -45,6 +45,11 @@ const _defaultCopyStaticFiles = [
45
45
  // Temporary test files / 臨時測試檔案
46
46
  ...([
47
47
  'temp.ts',
48
+ '__root-core.cjs',
49
+ '__root-core.mjs',
50
+ '__root-core.d.cts',
51
+ '__root-core.d.mts',
52
+ '__root-core.d.ts',
48
53
  ].map(file => [
49
54
  `test/${file}`,
50
55
  `file/test/${file}`
package/lib/const.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"const.js","sourceRoot":"","sources":["const.ts"],"names":[],"mappings":";;;AAUA;;;;;;;;;;;;GAYG;AACH,MAAM,uBAAuB,GAAG;IAE/B,sBAAsB;IACtB,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAChC,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAChC,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAEtC,2CAA2C;IAC3C,CAAC,mBAAmB,EAAE,wBAAwB,EAAE,eAAe,CAAC;IAEhE,CAAC,wBAAwB,EAAE,6BAA6B,EAAE,oBAAoB,CAAC;IAC/E,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;IAErD,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,mBAAmB,CAAC;IAC5E,CAAC,wBAAwB,EAAE,6BAA6B,EAAE,oBAAoB,CAAC;IAE/E,CAAC,eAAe,EAAE,wBAAwB,CAAC;IAE3C,mCAAmC;IACnC,CAAC,oBAAoB,EAAE,wBAAwB,EAAE,gBAAgB,CAAC;IAElE,qBAAqB;IACrB,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAE/B,4BAA4B;IAC5B,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACxC,4CAA4C;IAC5C,CAAC,gBAAgB,EAAE,0BAA0B,CAAC;IAE9C,sCAAsC;IACtC,CAAC,YAAY,EAAE,gBAAgB,CA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M,CAAC,iCAAiC,CAAgF,CAAC","sourcesContent":["/**\n * Static file mapping constants / 靜態檔案映射常量\n *\n * This module defines the default static file mappings for different project scenarios.\n * 此模組定義了不同專案情境的預設靜態檔案映射。\n *\n * @module const\n */\nimport { _Key, IStaticFilesKey, IStaticFilesMapArray, IStaticFilesMapArrayEntry } from './types';\n\n/**\n * Default static files for package-level copying / 套件層級複製的預設靜態檔案\n *\n * Contains common configuration files that should be copied to each package.\n * 包含應複製到每個套件的常用配置檔案。\n *\n * Each entry follows the format: [targetFile, staticFile, detectFile?]\n * 每個條目遵循格式:[目標檔案, 靜態檔案, 檢測檔案?]\n *\n * - targetFile: The destination file path / 目標檔案路徑\n * - staticFile: The source static file path (relative to static root) / 來源靜態檔案路徑(相對於靜態根目錄)\n * - detectFile: Optional file to check for existence before copying / 可選的檢測檔案,複製前檢查是否存在\n */\nconst _defaultCopyStaticFiles = [\n\n\t// Ignore files / 忽略檔案\n\t['.npmignore', 'file/npmignore'],\n\t['.gitignore', 'file/gitignore'],\n\t['.eslintignore', 'file/eslintignore'],\n\n\t// TypeScript configuration / TypeScript 配置\n\t['tsconfig.json.tpl', 'file/tsconfig.json.tpl', 'tsconfig.json'],\n\n\t['test/tsconfig.json.tpl', 'file/test/tsconfig.json.tpl', 'test/tsconfig.json'],\n\t['test/tsconfig.json', 'file/test/tsconfig.json.tpl'],\n\n\t['tsconfig.esm.json.tpl', 'file/tsconfig.esm.json.tpl', 'tsconfig.esm.json'],\n\t['tsconfig.tsdx.json.tpl', 'file/tsconfig.tsdx.json.tpl', 'tsconfig.tsdx.json'],\n\n\t['tsconfig.json', 'file/tsconfig.json.tpl'],\n\n\t// ESLint configuration / ESLint 配置\n\t['.eslintrc.json.tpl', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t// Documentation / 文檔\n\t['README.md', 'file/README.md'],\n\n\t// Test configuration / 測試配置\n\t['.mocharc.yml.tpl', 'file/mocharc.yml'],\n\t//['jest.config.js', 'file/jest.config.js'],\n\t['jest.config.js', 'file/jest.config.auto.js'],\n\n\t// Now/Zeit deployment / Now/Zeit 部署配置\n\t['.nowignore', 'file/nowignore'],\n\t['now.json.tpl', 'file/now.json.tpl', 'now.json'],\n\n\t// TSDX configuration / TSDX 配置\n\t['tsdx.config.js.tpl', 'file/tsdx.config.js', 'tsdx.config.js'],\n\n\t// Test fixtures / 測試固定檔案\n\t['test/__root.ts', 'file/test/__root.ts'],\n\t['test/fixtures/.gitkeep', 'file/test/fixtures/.gitkeep'],\n\n\t// Temporary test files / 臨時測試檔案\n\t...(([\n\t\t'temp.ts',\n\t] as const).map(file => [\n\t\t`test/${file}`,\n\t\t`file/test/${file}`\n\t] as const satisfies IStaticFilesMapArrayEntry<string>)),\n\n\t//['changelog-option.js.tpl', 'file/changelog-option.js', 'changelog-option.js'],\n\n] as const satisfies IStaticFilesMapArray<string>;\n\n/**\n * Default static files for root-level only copying / 僅根目錄層級複製的預設靜態檔案\n *\n * Contains configuration files that should only be copied to the workspace root.\n * 包含僅應複製到工作區根目錄的配置檔案。\n *\n * These files are typically shared across all packages in a monorepo.\n * 這些檔案通常在 monorepo 中的所有套件之間共享。\n */\nconst _defaultCopyStaticFilesRootOnly = [\n\n\t// Monorepo configuration / Monorepo 配置\n\t['lerna.json.tpl', 'file/lerna.json.tpl', 'lerna.json'],\n\t['pnpm-workspace.yaml.tpl', 'file/pnpm-workspace.yaml', 'pnpm-workspace.yaml'],\n\n\t// GitHub Actions workflows / GitHub Actions 工作流程\n\t['.github/workflows/coverage.yml', 'file/github/workflows/coverage.yml'],\n\t['.github/workflows/action-yarnlock-dedupe.yml', 'file/github/workflows/action-yarnlock-dedupe.yml'],\n\t['.github/workflows/build.yml', 'file/github/workflows/build.yml'],\n\t['.github/workflows/yarn-lock-changes.yml', 'file/github/workflows/yarn-lock-changes.yml'],\n\t['.github/commit-convention.md', 'file/github/commit-convention.md'],\n\n\t// Additional GitHub configuration / 額外的 GitHub 配置\n\t...(([\n\t\t'dependabot.yml',\n\t\t'workflows/codeql-analysis.yml',\n\t\t'workflows/cmd-rebase.yml',\n\t] as const).map(file => [`.github/${file}`, `file/github/${file}`] as const satisfies IStaticFilesMapArrayEntry<string>)),\n\n\t// Node version files / Node 版本檔案\n\t['.node-version', 'file/nvmrc'],\n\t['.nvmrc', 'file/nvmrc'],\n\n\t// Root TypeScript configuration / 根目錄 TypeScript 配置\n\t['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t//['changelog-option.js', 'file/changelog-option.js', 'changelog-option.js.tpl'],\n\n\t// Package manager configuration / 套件管理器配置\n\t['.yarnrc.yml.tpl', 'file/root/yarnrc.yml', '.yarnrc.yml'],\n\t['.npmrc.tpl', 'file/npmrc', '.npmrc'],\n\n\t// Jest configuration / Jest 配置\n\t['jest.config.js', 'file/jest.config.js'],\n\t['jest.config.js.tpl', 'file/jest.config.js'],\n\t['jest.config.auto.js.tpl', 'file/jest.config.auto.js'],\n\n\t// Editor configuration / 編輯器配置\n\t['.editorconfig.tpl', 'file/tpl.editorconfig'],\n\t['.editorconfig', 'file/tpl.editorconfig'],\n\n\t// Global type declarations / 全局類型聲明\n\t['global.tsdx.d.ts', 'file/root/global.tsdx.d.ts'],\n\n\t// Browserslist configuration / Browserslist 配置\n\t['.browserslistrc', 'file/ws-root/browserslistrc'],\n\n\t// TSC multi configuration / TSC 多配置\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t// NYC coverage configuration / NYC 覆蓋率配置\n\t['.nycrc.tpl', 'file/nycrc'],\n\n] as const satisfies IStaticFilesMapArray<string>;\n\n/**\n * Default static files for workspace root only / 僅工作區根目錄的預設靜態檔案\n *\n * Contains files specific to workspace root management.\n * 包含特定於工作區根目錄管理的檔案。\n */\nconst _defaultCopyStaticFilesWsRootOnly = [\n\n\t// Lerna configuration / Lerna 配置\n\t['lerna.json.tpl', 'file/lerna.json.tpl'],\n\n\t// pnpm workspace configuration / pnpm 工作區配置\n\t['pnpm-workspace.yaml', 'file/pnpm-workspace.yaml'],\n\n\t// TSC multi configuration / TSC 多配置\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t// Workspace root file / 工作區根目錄檔案\n\t['__root_ws.ts', 'file/ws-root/__root_ws.ts'],\n\n\t// Jest configuration / Jest 配置\n\t['jest.config.js', 'file/ws-root/jest.config.js'],\n\t['jest-preset.js', 'file/ws-root/jest-preset.js'],\n\n\t// Run configurations / 執行配置\n\t['.run/lerna_publish_yes.run.xml', 'file/ws-root/.run/lerna_publish_yes.run.xml'],\n\n] as const satisfies IStaticFilesMapArray<string>;\n\n/**\n * Frozen default static files for package-level / 凍結的套件層級預設靜態檔案\n *\n * Use this for copying static files to individual packages.\n * 用於將靜態檔案複製到各個套件。\n */\nexport const defaultCopyStaticFiles = Object.freeze(_defaultCopyStaticFiles) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFiles>>;\n\n/**\n * Frozen default static files for root-level only / 凍結的僅根目錄層級預設靜態檔案\n *\n * Use this for copying static files to the workspace root only.\n * 用於將靜態檔案僅複製到工作區根目錄。\n */\nexport const defaultCopyStaticFilesRootOnly = Object.freeze(_defaultCopyStaticFilesRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesRootOnly>>;\n\n/**\n * Frozen default static files for workspace root / 凍結的工作區根目錄預設靜態檔案\n *\n * Use this for workspace root specific file management.\n * 用於工作區根目錄特定的檔案管理。\n */\nexport const defaultCopyStaticFilesWsRootOnly = Object.freeze(_defaultCopyStaticFilesWsRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesWsRootOnly>>;\n"]}
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["const.ts"],"names":[],"mappings":";;;AAUA;;;;;;;;;;;;GAYG;AACH,MAAM,uBAAuB,GAAG;IAE/B,sBAAsB;IACtB,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAChC,CAAC,YAAY,EAA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;IACzC,CAAC,YAAY,EAAE,YAAY,CAAC;CAEoB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,iCAAiC,GAAG;IAEzC,iCAAiC;IACjC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IAEzC,4CAA4C;IAC5C,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;IAEnD,oCAAoC;IACpC,CAAC,oBAAoB,EAAE,yBAAyB,EAAE,gBAAgB,CAAC;IAEnE,iCAAiC;IACjC,CAAC,cAAc,EAAE,2BAA2B,CAAC;IAE7C,+BAA+B;IAC/B,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IACjD,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IAEjD,4BAA4B;IAC5B,CAAC,gCAAgC,EAAE,6CAA6C,CAAC;CAEjC,CAAC;AAElD;;;;;GAKG;AACU,QAAA,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAsE,CAAC;AAElJ;;;;;GAKG;AACU,QAAA,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAA8E,CAAC;AAE1K;;;;;GAKG;AACU,QAAA,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiC,CAAgF,CAAC","sourcesContent":["/**\n * Static file mapping constants / 靜態檔案映射常量\n *\n * This module defines the default static file mappings for different project scenarios.\n * 此模組定義了不同專案情境的預設靜態檔案映射。\n *\n * @module const\n */\nimport { _Key, IStaticFilesKey, IStaticFilesMapArray, IStaticFilesMapArrayEntry } from './types';\n\n/**\n * Default static files for package-level copying / 套件層級複製的預設靜態檔案\n *\n * Contains common configuration files that should be copied to each package.\n * 包含應複製到每個套件的常用配置檔案。\n *\n * Each entry follows the format: [targetFile, staticFile, detectFile?]\n * 每個條目遵循格式:[目標檔案, 靜態檔案, 檢測檔案?]\n *\n * - targetFile: The destination file path / 目標檔案路徑\n * - staticFile: The source static file path (relative to static root) / 來源靜態檔案路徑(相對於靜態根目錄)\n * - detectFile: Optional file to check for existence before copying / 可選的檢測檔案,複製前檢查是否存在\n */\nconst _defaultCopyStaticFiles = [\n\n\t// Ignore files / 忽略檔案\n\t['.npmignore', 'file/npmignore'],\n\t['.gitignore', 'file/gitignore'],\n\t['.eslintignore', 'file/eslintignore'],\n\n\t// TypeScript configuration / TypeScript 配置\n\t['tsconfig.json.tpl', 'file/tsconfig.json.tpl', 'tsconfig.json'],\n\n\t['test/tsconfig.json.tpl', 'file/test/tsconfig.json.tpl', 'test/tsconfig.json'],\n\t['test/tsconfig.json', 'file/test/tsconfig.json.tpl'],\n\n\t['tsconfig.esm.json.tpl', 'file/tsconfig.esm.json.tpl', 'tsconfig.esm.json'],\n\t['tsconfig.tsdx.json.tpl', 'file/tsconfig.tsdx.json.tpl', 'tsconfig.tsdx.json'],\n\n\t['tsconfig.json', 'file/tsconfig.json.tpl'],\n\n\t// ESLint configuration / ESLint 配置\n\t['.eslintrc.json.tpl', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t// Documentation / 文檔\n\t['README.md', 'file/README.md'],\n\n\t// Test configuration / 測試配置\n\t['.mocharc.yml.tpl', 'file/mocharc.yml'],\n\t//['jest.config.js', 'file/jest.config.js'],\n\t['jest.config.js', 'file/jest.config.auto.js'],\n\n\t// Now/Zeit deployment / Now/Zeit 部署配置\n\t['.nowignore', 'file/nowignore'],\n\t['now.json.tpl', 'file/now.json.tpl', 'now.json'],\n\n\t// TSDX configuration / TSDX 配置\n\t['tsdx.config.js.tpl', 'file/tsdx.config.js', 'tsdx.config.js'],\n\n\t// Test fixtures / 測試固定檔案\n\t['test/__root.ts', 'file/test/__root.ts'],\n\t['test/fixtures/.gitkeep', 'file/test/fixtures/.gitkeep'],\n\n\t// Temporary test files / 臨時測試檔案\n\t...(([\n\t\t'temp.ts',\n\n\t\t'__root-core.cjs',\n\t\t'__root-core.mjs',\n\n\t\t'__root-core.d.cts',\n\t\t'__root-core.d.mts',\n\n\t\t'__root-core.d.ts',\n\n\t] as const).map(file => [\n\t\t`test/${file}`,\n\t\t`file/test/${file}`\n\t] as const satisfies IStaticFilesMapArrayEntry<string>)),\n\n\t//['changelog-option.js.tpl', 'file/changelog-option.js', 'changelog-option.js'],\n\n] as const satisfies IStaticFilesMapArray<string>;\n\n/**\n * Default static files for root-level only copying / 僅根目錄層級複製的預設靜態檔案\n *\n * Contains configuration files that should only be copied to the workspace root.\n * 包含僅應複製到工作區根目錄的配置檔案。\n *\n * These files are typically shared across all packages in a monorepo.\n * 這些檔案通常在 monorepo 中的所有套件之間共享。\n */\nconst _defaultCopyStaticFilesRootOnly = [\n\n\t// Monorepo configuration / Monorepo 配置\n\t['lerna.json.tpl', 'file/lerna.json.tpl', 'lerna.json'],\n\t['pnpm-workspace.yaml.tpl', 'file/pnpm-workspace.yaml', 'pnpm-workspace.yaml'],\n\n\t// GitHub Actions workflows / GitHub Actions 工作流程\n\t['.github/workflows/coverage.yml', 'file/github/workflows/coverage.yml'],\n\t['.github/workflows/action-yarnlock-dedupe.yml', 'file/github/workflows/action-yarnlock-dedupe.yml'],\n\t['.github/workflows/build.yml', 'file/github/workflows/build.yml'],\n\t['.github/workflows/yarn-lock-changes.yml', 'file/github/workflows/yarn-lock-changes.yml'],\n\t['.github/commit-convention.md', 'file/github/commit-convention.md'],\n\n\t// Additional GitHub configuration / 額外的 GitHub 配置\n\t...(([\n\t\t'dependabot.yml',\n\t\t'workflows/codeql-analysis.yml',\n\t\t'workflows/cmd-rebase.yml',\n\t] as const).map(file => [`.github/${file}`, `file/github/${file}`] as const satisfies IStaticFilesMapArrayEntry<string>)),\n\n\t// Node version files / Node 版本檔案\n\t['.node-version', 'file/nvmrc'],\n\t['.nvmrc', 'file/nvmrc'],\n\n\t// Root TypeScript configuration / 根目錄 TypeScript 配置\n\t['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t//['changelog-option.js', 'file/changelog-option.js', 'changelog-option.js.tpl'],\n\n\t// Package manager configuration / 套件管理器配置\n\t['.yarnrc.yml.tpl', 'file/root/yarnrc.yml', '.yarnrc.yml'],\n\t['.npmrc.tpl', 'file/npmrc', '.npmrc'],\n\n\t// Jest configuration / Jest 配置\n\t['jest.config.js', 'file/jest.config.js'],\n\t['jest.config.js.tpl', 'file/jest.config.js'],\n\t['jest.config.auto.js.tpl', 'file/jest.config.auto.js'],\n\n\t// Editor configuration / 編輯器配置\n\t['.editorconfig.tpl', 'file/tpl.editorconfig'],\n\t['.editorconfig', 'file/tpl.editorconfig'],\n\n\t// Global type declarations / 全局類型聲明\n\t['global.tsdx.d.ts', 'file/root/global.tsdx.d.ts'],\n\n\t// Browserslist configuration / Browserslist 配置\n\t['.browserslistrc', 'file/ws-root/browserslistrc'],\n\n\t// TSC multi configuration / TSC 多配置\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t// NYC coverage configuration / NYC 覆蓋率配置\n\t['.nycrc.tpl', 'file/nycrc'],\n\n] as const satisfies IStaticFilesMapArray<string>;\n\n/**\n * Default static files for workspace root only / 僅工作區根目錄的預設靜態檔案\n *\n * Contains files specific to workspace root management.\n * 包含特定於工作區根目錄管理的檔案。\n */\nconst _defaultCopyStaticFilesWsRootOnly = [\n\n\t// Lerna configuration / Lerna 配置\n\t['lerna.json.tpl', 'file/lerna.json.tpl'],\n\n\t// pnpm workspace configuration / pnpm 工作區配置\n\t['pnpm-workspace.yaml', 'file/pnpm-workspace.yaml'],\n\n\t// TSC multi configuration / TSC 多配置\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t// Workspace root file / 工作區根目錄檔案\n\t['__root_ws.ts', 'file/ws-root/__root_ws.ts'],\n\n\t// Jest configuration / Jest 配置\n\t['jest.config.js', 'file/ws-root/jest.config.js'],\n\t['jest-preset.js', 'file/ws-root/jest-preset.js'],\n\n\t// Run configurations / 執行配置\n\t['.run/lerna_publish_yes.run.xml', 'file/ws-root/.run/lerna_publish_yes.run.xml'],\n\n] as const satisfies IStaticFilesMapArray<string>;\n\n/**\n * Frozen default static files for package-level / 凍結的套件層級預設靜態檔案\n *\n * Use this for copying static files to individual packages.\n * 用於將靜態檔案複製到各個套件。\n */\nexport const defaultCopyStaticFiles = Object.freeze(_defaultCopyStaticFiles) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFiles>>;\n\n/**\n * Frozen default static files for root-level only / 凍結的僅根目錄層級預設靜態檔案\n *\n * Use this for copying static files to the workspace root only.\n * 用於將靜態檔案僅複製到工作區根目錄。\n */\nexport const defaultCopyStaticFilesRootOnly = Object.freeze(_defaultCopyStaticFilesRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesRootOnly>>;\n\n/**\n * Frozen default static files for workspace root / 凍結的工作區根目錄預設靜態檔案\n *\n * Use this for workspace root specific file management.\n * 用於工作區根目錄特定的檔案管理。\n */\nexport const defaultCopyStaticFilesWsRootOnly = Object.freeze(_defaultCopyStaticFilesWsRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesWsRootOnly>>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/static-file",
3
- "version": "3.0.11",
3
+ "version": "3.0.14",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/static-file#readme",
6
6
  "bugs": {
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "73804da54e39cd8250f1dec1e1a35f72acdecfc3"
41
+ "gitHead": "2cbfd8a3dfa6944bba8e6c55742790fed32dd680"
42
42
  }