@yarn-tool/static-file 3.0.18 → 3.0.20
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 +66 -0
- package/README.md +110 -3
- package/file/gitignore +3 -0
- package/file/npmignore +31 -0
- package/file/test/__root-core.cjs +1 -1
- package/file/test/__root-core.mjs +1 -1
- package/file/test/__root.js.map +1 -0
- package/file/test/__root.ts +9 -2
- package/file/test/temp.js.map +1 -0
- package/file/test/tsconfig.json.tpl +7 -0
- package/file/tsconfig.esm.json.tpl +9 -1
- package/file/tsconfig.json.tpl +9 -1
- package/file/tsconfig.tsdx.json.tpl +4 -0
- package/file/tsdx/index.cjs.map +1 -0
- package/file/ws-root/__root_ws.js.map +1 -0
- package/lib/const.js +120 -27
- package/lib/const.js.map +1 -1
- package/lib/copyStaticFiles.d.ts +62 -2
- package/lib/copyStaticFiles.js +156 -9
- package/lib/copyStaticFiles.js.map +1 -1
- package/lib/copyStaticFilesEntry.d.ts +72 -25
- package/lib/copyStaticFilesEntry.js +133 -34
- package/lib/copyStaticFilesEntry.js.map +1 -1
- package/lib/mergeIgnoreFiles.d.ts +52 -0
- package/lib/mergeIgnoreFiles.js +146 -0
- package/lib/mergeIgnoreFiles.js.map +1 -0
- package/lib/parseStaticMap.js +16 -3
- package/lib/parseStaticMap.js.map +1 -1
- package/lib/reMapStaticFilesMapArray.js +26 -5
- package/lib/reMapStaticFilesMapArray.js.map +1 -1
- package/lib/root/getRootCopyStaticFiles.js +17 -2
- package/lib/root/getRootCopyStaticFiles.js.map +1 -1
- package/lib/types.d.ts +71 -0
- package/lib/types.js.map +1 -1
- package/package.json +24 -6
- package/test/__root-core.cjs +1 -0
- package/test/__root-core.d.cts +1 -0
- package/test/__root-core.d.mts +1 -0
- package/test/__root-core.d.ts +1 -0
- package/test/__root-core.mjs +8 -0
- package/test/__root.d.ts +32 -0
- package/test/__root.js +54 -0
- package/test/__root.js.map +1 -0
- package/test/copyStaticFiles.test.js.map +1 -0
- package/test/copyStaticFiles.test.ts.snapshot +439 -0
- package/test/fixtures/out/gitignore +242 -0
- package/test/fixtures/out/npmignore +216 -0
- package/test/fixtures/split/git/00-header.txt +2 -0
- package/test/fixtures/split/git/10-project.txt +24 -0
- package/test/fixtures/split/git/20-test.txt +9 -0
- package/test/fixtures/split/git/40-env.txt +10 -0
- package/test/fixtures/split/git/90-misc.txt +6 -0
- package/test/fixtures/split/git/99-whitelist.txt +40 -0
- package/test/fixtures/split/npm/01-hidden.txt +2 -0
- package/test/fixtures/split/npm/05-source.txt +7 -0
- package/test/fixtures/split/npm/10-project.txt +31 -0
- package/test/fixtures/split/npm/20-test.txt +20 -0
- package/test/fixtures/split/npm/30-ide.txt +2 -0
- package/test/fixtures/split/npm/40-env.txt +2 -0
- package/test/fixtures/split/npm/90-misc.txt +4 -0
- package/test/fixtures/split/other/90-duplicates.txt +33 -0
- package/test/fixtures/split/shared/10-project.txt +38 -0
- package/test/fixtures/split/shared/20-test.txt +7 -0
- package/test/fixtures/split/shared/30-ide.txt +8 -0
- package/test/fixtures/split/shared/40-env.txt +6 -0
- package/test/fixtures/split/shared/90-misc.txt +10 -0
- package/test/scripts/compose-split-ignore-files.d.ts +1 -0
- package/test/scripts/compose-split-ignore-files.js +80 -0
- package/test/scripts/compose-split-ignore-files.js.map +1 -0
- package/test/scripts/lib/ignore-split.d.ts +205 -0
- package/test/scripts/lib/ignore-split.js +286 -0
- package/test/scripts/lib/ignore-split.js.map +1 -0
- package/test/scripts/split-ignore-files.d.ts +1 -0
- package/test/scripts/split-ignore-files.js +454 -0
- package/test/scripts/split-ignore-files.js.map +1 -0
- package/test/scripts/update-npmignore-static-files.d.ts +1 -0
- package/test/scripts/update-npmignore-static-files.js +121 -0
- package/test/scripts/update-npmignore-static-files.js.map +1 -0
- package/test/temp.d.ts +3 -0
- package/test/temp.js +5 -0
- package/test/temp.js.map +1 -0
- package/test/tsconfig.json.tpl +13 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
exports[`_copyStaticFilesCoreListGenerator > 預設值 + 必填參數 / defaults with only the required param 1`] = `
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"entry": [
|
|
5
|
+
".npmignore",
|
|
6
|
+
"file/npmignore"
|
|
7
|
+
],
|
|
8
|
+
"runtime": {
|
|
9
|
+
"targetFile": ".npmignore",
|
|
10
|
+
"staticFile": "file/npmignore",
|
|
11
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/.npmignore",
|
|
12
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/npmignore",
|
|
13
|
+
"overwrite": false
|
|
14
|
+
},
|
|
15
|
+
"copy": "function"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"entry": [
|
|
19
|
+
".gitignore",
|
|
20
|
+
"file/gitignore"
|
|
21
|
+
],
|
|
22
|
+
"runtime": {
|
|
23
|
+
"targetFile": ".gitignore",
|
|
24
|
+
"staticFile": "file/gitignore",
|
|
25
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/.gitignore",
|
|
26
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/gitignore",
|
|
27
|
+
"overwrite": false
|
|
28
|
+
},
|
|
29
|
+
"copy": "function"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"entry": [
|
|
33
|
+
".eslintignore",
|
|
34
|
+
"file/eslintignore"
|
|
35
|
+
],
|
|
36
|
+
"runtime": {
|
|
37
|
+
"targetFile": ".eslintignore",
|
|
38
|
+
"staticFile": "file/eslintignore",
|
|
39
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/.eslintignore",
|
|
40
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/eslintignore",
|
|
41
|
+
"overwrite": false
|
|
42
|
+
},
|
|
43
|
+
"copy": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"entry": [
|
|
47
|
+
"tsconfig.json",
|
|
48
|
+
"file/tsconfig.json.tpl"
|
|
49
|
+
],
|
|
50
|
+
"runtime": {
|
|
51
|
+
"targetFile": "tsconfig.json",
|
|
52
|
+
"staticFile": "file/tsconfig.json.tpl",
|
|
53
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/tsconfig.json",
|
|
54
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/tsconfig.json.tpl",
|
|
55
|
+
"overwrite": false
|
|
56
|
+
},
|
|
57
|
+
"copy": "function"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"entry": [
|
|
61
|
+
"tsconfig.json.tpl",
|
|
62
|
+
"file/tsconfig.json.tpl"
|
|
63
|
+
],
|
|
64
|
+
"runtime": {
|
|
65
|
+
"targetFile": "tsconfig.json.tpl",
|
|
66
|
+
"staticFile": "file/tsconfig.json.tpl",
|
|
67
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/tsconfig.json.tpl",
|
|
68
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/tsconfig.json.tpl",
|
|
69
|
+
"overwrite": false
|
|
70
|
+
},
|
|
71
|
+
"copy": "function"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"entry": [
|
|
75
|
+
"test/tsconfig.json.tpl",
|
|
76
|
+
"file/test/tsconfig.json.tpl",
|
|
77
|
+
"test/tsconfig.json"
|
|
78
|
+
],
|
|
79
|
+
"runtime": {
|
|
80
|
+
"targetFile": "test/tsconfig.json.tpl",
|
|
81
|
+
"staticFile": "file/test/tsconfig.json.tpl",
|
|
82
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/tsconfig.json.tpl",
|
|
83
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/tsconfig.json.tpl",
|
|
84
|
+
"overwrite": false
|
|
85
|
+
},
|
|
86
|
+
"copy": "function"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"entry": [
|
|
90
|
+
"tsconfig.esm.json.tpl",
|
|
91
|
+
"file/tsconfig.esm.json.tpl",
|
|
92
|
+
"tsconfig.esm.json"
|
|
93
|
+
],
|
|
94
|
+
"runtime": {
|
|
95
|
+
"targetFile": "tsconfig.esm.json.tpl",
|
|
96
|
+
"staticFile": "file/tsconfig.esm.json.tpl",
|
|
97
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/tsconfig.esm.json.tpl",
|
|
98
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/tsconfig.esm.json.tpl",
|
|
99
|
+
"overwrite": false
|
|
100
|
+
},
|
|
101
|
+
"copy": "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"entry": [
|
|
105
|
+
"tsconfig.tsdx.json.tpl",
|
|
106
|
+
"file/tsconfig.tsdx.json.tpl",
|
|
107
|
+
"tsconfig.tsdx.json"
|
|
108
|
+
],
|
|
109
|
+
"runtime": {
|
|
110
|
+
"targetFile": "tsconfig.tsdx.json.tpl",
|
|
111
|
+
"staticFile": "file/tsconfig.tsdx.json.tpl",
|
|
112
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/tsconfig.tsdx.json.tpl",
|
|
113
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/tsconfig.tsdx.json.tpl",
|
|
114
|
+
"overwrite": false
|
|
115
|
+
},
|
|
116
|
+
"copy": "function"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"entry": [
|
|
120
|
+
".eslintrc.json.tpl",
|
|
121
|
+
"file/eslintrc.json.tpl",
|
|
122
|
+
".eslintrc.json"
|
|
123
|
+
],
|
|
124
|
+
"runtime": {
|
|
125
|
+
"targetFile": ".eslintrc.json.tpl",
|
|
126
|
+
"staticFile": "file/eslintrc.json.tpl",
|
|
127
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/.eslintrc.json.tpl",
|
|
128
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/eslintrc.json.tpl",
|
|
129
|
+
"overwrite": false
|
|
130
|
+
},
|
|
131
|
+
"copy": "function"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"entry": [
|
|
135
|
+
"README.md",
|
|
136
|
+
"file/README.md"
|
|
137
|
+
],
|
|
138
|
+
"runtime": {
|
|
139
|
+
"targetFile": "README.md",
|
|
140
|
+
"staticFile": "file/README.md",
|
|
141
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/README.md",
|
|
142
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/README.md",
|
|
143
|
+
"overwrite": false
|
|
144
|
+
},
|
|
145
|
+
"copy": "function"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"entry": [
|
|
149
|
+
".mocharc.yml.tpl",
|
|
150
|
+
"file/mocharc.yml"
|
|
151
|
+
],
|
|
152
|
+
"runtime": {
|
|
153
|
+
"targetFile": ".mocharc.yml.tpl",
|
|
154
|
+
"staticFile": "file/mocharc.yml",
|
|
155
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/.mocharc.yml.tpl",
|
|
156
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/mocharc.yml",
|
|
157
|
+
"overwrite": false
|
|
158
|
+
},
|
|
159
|
+
"copy": "function"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"entry": [
|
|
163
|
+
"jest.config.js",
|
|
164
|
+
"file/jest.config.auto.js"
|
|
165
|
+
],
|
|
166
|
+
"runtime": {
|
|
167
|
+
"targetFile": "jest.config.js",
|
|
168
|
+
"staticFile": "file/jest.config.auto.js",
|
|
169
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/jest.config.js",
|
|
170
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/jest.config.auto.js",
|
|
171
|
+
"overwrite": false
|
|
172
|
+
},
|
|
173
|
+
"copy": "function"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"entry": [
|
|
177
|
+
".nowignore",
|
|
178
|
+
"file/nowignore"
|
|
179
|
+
],
|
|
180
|
+
"runtime": {
|
|
181
|
+
"targetFile": ".nowignore",
|
|
182
|
+
"staticFile": "file/nowignore",
|
|
183
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/.nowignore",
|
|
184
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/nowignore",
|
|
185
|
+
"overwrite": false
|
|
186
|
+
},
|
|
187
|
+
"copy": "function"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"entry": [
|
|
191
|
+
"now.json.tpl",
|
|
192
|
+
"file/now.json.tpl",
|
|
193
|
+
"now.json"
|
|
194
|
+
],
|
|
195
|
+
"runtime": {
|
|
196
|
+
"targetFile": "now.json.tpl",
|
|
197
|
+
"staticFile": "file/now.json.tpl",
|
|
198
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/now.json.tpl",
|
|
199
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/now.json.tpl",
|
|
200
|
+
"overwrite": false
|
|
201
|
+
},
|
|
202
|
+
"copy": "function"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"entry": [
|
|
206
|
+
"tsdx.config.js.tpl",
|
|
207
|
+
"file/tsdx.config.js",
|
|
208
|
+
"tsdx.config.js"
|
|
209
|
+
],
|
|
210
|
+
"runtime": {
|
|
211
|
+
"targetFile": "tsdx.config.js.tpl",
|
|
212
|
+
"staticFile": "file/tsdx.config.js",
|
|
213
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/tsdx.config.js.tpl",
|
|
214
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/tsdx.config.js",
|
|
215
|
+
"overwrite": false
|
|
216
|
+
},
|
|
217
|
+
"copy": "function"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"entry": [
|
|
221
|
+
"test/temp.ts",
|
|
222
|
+
"file/test/temp.ts"
|
|
223
|
+
],
|
|
224
|
+
"runtime": {
|
|
225
|
+
"targetFile": "test/temp.ts",
|
|
226
|
+
"staticFile": "file/test/temp.ts",
|
|
227
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/temp.ts",
|
|
228
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/temp.ts",
|
|
229
|
+
"overwrite": false
|
|
230
|
+
},
|
|
231
|
+
"copy": "function"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"entry": [
|
|
235
|
+
"test/__root.ts",
|
|
236
|
+
"file/test/__root.ts"
|
|
237
|
+
],
|
|
238
|
+
"runtime": {
|
|
239
|
+
"targetFile": "test/__root.ts",
|
|
240
|
+
"staticFile": "file/test/__root.ts",
|
|
241
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/__root.ts",
|
|
242
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/__root.ts",
|
|
243
|
+
"overwrite": false
|
|
244
|
+
},
|
|
245
|
+
"copy": "function"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"entry": [
|
|
249
|
+
"test/__root-core.cjs",
|
|
250
|
+
"file/test/__root-core.cjs"
|
|
251
|
+
],
|
|
252
|
+
"runtime": {
|
|
253
|
+
"targetFile": "test/__root-core.cjs",
|
|
254
|
+
"staticFile": "file/test/__root-core.cjs",
|
|
255
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/__root-core.cjs",
|
|
256
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/__root-core.cjs",
|
|
257
|
+
"overwrite": false
|
|
258
|
+
},
|
|
259
|
+
"copy": "function"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"entry": [
|
|
263
|
+
"test/__root-core.mjs",
|
|
264
|
+
"file/test/__root-core.mjs"
|
|
265
|
+
],
|
|
266
|
+
"runtime": {
|
|
267
|
+
"targetFile": "test/__root-core.mjs",
|
|
268
|
+
"staticFile": "file/test/__root-core.mjs",
|
|
269
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/__root-core.mjs",
|
|
270
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/__root-core.mjs",
|
|
271
|
+
"overwrite": false
|
|
272
|
+
},
|
|
273
|
+
"copy": "function"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"entry": [
|
|
277
|
+
"test/__root-core.d.cts",
|
|
278
|
+
"file/test/__root-core.d.cts"
|
|
279
|
+
],
|
|
280
|
+
"runtime": {
|
|
281
|
+
"targetFile": "test/__root-core.d.cts",
|
|
282
|
+
"staticFile": "file/test/__root-core.d.cts",
|
|
283
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/__root-core.d.cts",
|
|
284
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/__root-core.d.cts",
|
|
285
|
+
"overwrite": false
|
|
286
|
+
},
|
|
287
|
+
"copy": "function"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"entry": [
|
|
291
|
+
"test/__root-core.d.mts",
|
|
292
|
+
"file/test/__root-core.d.mts"
|
|
293
|
+
],
|
|
294
|
+
"runtime": {
|
|
295
|
+
"targetFile": "test/__root-core.d.mts",
|
|
296
|
+
"staticFile": "file/test/__root-core.d.mts",
|
|
297
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/__root-core.d.mts",
|
|
298
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/__root-core.d.mts",
|
|
299
|
+
"overwrite": false
|
|
300
|
+
},
|
|
301
|
+
"copy": "function"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"entry": [
|
|
305
|
+
"test/__root-core.d.ts",
|
|
306
|
+
"file/test/__root-core.d.ts"
|
|
307
|
+
],
|
|
308
|
+
"runtime": {
|
|
309
|
+
"targetFile": "test/__root-core.d.ts",
|
|
310
|
+
"staticFile": "file/test/__root-core.d.ts",
|
|
311
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/__root-core.d.ts",
|
|
312
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/__root-core.d.ts",
|
|
313
|
+
"overwrite": false
|
|
314
|
+
},
|
|
315
|
+
"copy": "function"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"entry": [
|
|
319
|
+
"test/fixtures/.gitkeep",
|
|
320
|
+
"file/test/fixtures/.gitkeep"
|
|
321
|
+
],
|
|
322
|
+
"runtime": {
|
|
323
|
+
"targetFile": "test/fixtures/.gitkeep",
|
|
324
|
+
"staticFile": "file/test/fixtures/.gitkeep",
|
|
325
|
+
"targetFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/test/fixtures/.gitkeep",
|
|
326
|
+
"staticFileFull": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/file/test/fixtures/.gitkeep",
|
|
327
|
+
"overwrite": false
|
|
328
|
+
},
|
|
329
|
+
"copy": "function"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
`;
|
|
333
|
+
|
|
334
|
+
exports[`_handleCopyStaticFilesOptions > 預設值 + 必填參數 / defaults with only the required param 1`] = `
|
|
335
|
+
{
|
|
336
|
+
"cwd": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test",
|
|
337
|
+
"staticRoot": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file",
|
|
338
|
+
"file_map": [
|
|
339
|
+
[
|
|
340
|
+
".npmignore",
|
|
341
|
+
"file/npmignore"
|
|
342
|
+
],
|
|
343
|
+
[
|
|
344
|
+
".gitignore",
|
|
345
|
+
"file/gitignore"
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
".eslintignore",
|
|
349
|
+
"file/eslintignore"
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
"tsconfig.json",
|
|
353
|
+
"file/tsconfig.json.tpl"
|
|
354
|
+
],
|
|
355
|
+
[
|
|
356
|
+
"tsconfig.json.tpl",
|
|
357
|
+
"file/tsconfig.json.tpl"
|
|
358
|
+
],
|
|
359
|
+
[
|
|
360
|
+
"test/tsconfig.json.tpl",
|
|
361
|
+
"file/test/tsconfig.json.tpl",
|
|
362
|
+
"test/tsconfig.json"
|
|
363
|
+
],
|
|
364
|
+
[
|
|
365
|
+
"tsconfig.esm.json.tpl",
|
|
366
|
+
"file/tsconfig.esm.json.tpl",
|
|
367
|
+
"tsconfig.esm.json"
|
|
368
|
+
],
|
|
369
|
+
[
|
|
370
|
+
"tsconfig.tsdx.json.tpl",
|
|
371
|
+
"file/tsconfig.tsdx.json.tpl",
|
|
372
|
+
"tsconfig.tsdx.json"
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
".eslintrc.json.tpl",
|
|
376
|
+
"file/eslintrc.json.tpl",
|
|
377
|
+
".eslintrc.json"
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
"README.md",
|
|
381
|
+
"file/README.md"
|
|
382
|
+
],
|
|
383
|
+
[
|
|
384
|
+
".mocharc.yml.tpl",
|
|
385
|
+
"file/mocharc.yml"
|
|
386
|
+
],
|
|
387
|
+
[
|
|
388
|
+
"jest.config.js",
|
|
389
|
+
"file/jest.config.auto.js"
|
|
390
|
+
],
|
|
391
|
+
[
|
|
392
|
+
".nowignore",
|
|
393
|
+
"file/nowignore"
|
|
394
|
+
],
|
|
395
|
+
[
|
|
396
|
+
"now.json.tpl",
|
|
397
|
+
"file/now.json.tpl",
|
|
398
|
+
"now.json"
|
|
399
|
+
],
|
|
400
|
+
[
|
|
401
|
+
"tsdx.config.js.tpl",
|
|
402
|
+
"file/tsdx.config.js",
|
|
403
|
+
"tsdx.config.js"
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
"test/temp.ts",
|
|
407
|
+
"file/test/temp.ts"
|
|
408
|
+
],
|
|
409
|
+
[
|
|
410
|
+
"test/__root.ts",
|
|
411
|
+
"file/test/__root.ts"
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
"test/__root-core.cjs",
|
|
415
|
+
"file/test/__root-core.cjs"
|
|
416
|
+
],
|
|
417
|
+
[
|
|
418
|
+
"test/__root-core.mjs",
|
|
419
|
+
"file/test/__root-core.mjs"
|
|
420
|
+
],
|
|
421
|
+
[
|
|
422
|
+
"test/__root-core.d.cts",
|
|
423
|
+
"file/test/__root-core.d.cts"
|
|
424
|
+
],
|
|
425
|
+
[
|
|
426
|
+
"test/__root-core.d.mts",
|
|
427
|
+
"file/test/__root-core.d.mts"
|
|
428
|
+
],
|
|
429
|
+
[
|
|
430
|
+
"test/__root-core.d.ts",
|
|
431
|
+
"file/test/__root-core.d.ts"
|
|
432
|
+
],
|
|
433
|
+
[
|
|
434
|
+
"test/fixtures/.gitkeep",
|
|
435
|
+
"file/test/fixtures/.gitkeep"
|
|
436
|
+
]
|
|
437
|
+
]
|
|
438
|
+
}
|
|
439
|
+
`;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# 檔案頭 / file header · git 專用 / git only
|
|
2
|
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
3
|
+
|
|
4
|
+
# 專案檔 / project files · git 專用 / git only
|
|
5
|
+
# next.js
|
|
6
|
+
# production
|
|
7
|
+
/build
|
|
8
|
+
/.eslintrc.json.tpl
|
|
9
|
+
vue.config.d.ts
|
|
10
|
+
vue.config.js.map
|
|
11
|
+
!.github
|
|
12
|
+
.browserslistrc
|
|
13
|
+
/.eslintignore
|
|
14
|
+
node_modules/.cache
|
|
15
|
+
.yarn-integrity
|
|
16
|
+
# *.map 對應檔(共用輔助產生)/ *.map files (generated by shared helper)
|
|
17
|
+
*.js.map
|
|
18
|
+
*.cjs.map
|
|
19
|
+
*.mjs.map
|
|
20
|
+
*.ts.map
|
|
21
|
+
*.cts.map
|
|
22
|
+
*.mts.map
|
|
23
|
+
.reify-cache
|
|
24
|
+
*/**/.github
|
|
25
|
+
/gradle
|
|
26
|
+
.gradle
|
|
27
|
+
/out
|
|
28
|
+
dist/*.umd.*.*s
|
|
29
|
+
/__root_ws.d.ts
|
|
30
|
+
/__root_ws.js
|
|
31
|
+
.nx
|
|
32
|
+
out/
|
|
33
|
+
node_modules_
|
|
34
|
+
|
|
35
|
+
# 專案檔 / project files · 兩類共用 / shared
|
|
36
|
+
# dependencies
|
|
37
|
+
node_modules
|
|
38
|
+
/.pnp
|
|
39
|
+
.pnp.js
|
|
40
|
+
# debug
|
|
41
|
+
npm-debug.log*
|
|
42
|
+
yarn-debug.log*
|
|
43
|
+
yarn-error.log*
|
|
44
|
+
/.*/
|
|
45
|
+
package-lock.json
|
|
46
|
+
/src/**/*.d.ts
|
|
47
|
+
/src/**/*.js
|
|
48
|
+
/src/**/*.d.cts
|
|
49
|
+
/src/**/*.d.mts
|
|
50
|
+
/src/**/*.cjs
|
|
51
|
+
/src/**/*.mjs
|
|
52
|
+
*.tgz
|
|
53
|
+
/tsconfig.json.tpl
|
|
54
|
+
yarn-error.log
|
|
55
|
+
*.log
|
|
56
|
+
.git
|
|
57
|
+
yarn.lock
|
|
58
|
+
*.vue.js
|
|
59
|
+
*.vue.d.ts
|
|
60
|
+
*.vue.js.map
|
|
61
|
+
/*.tpl
|
|
62
|
+
*.tsbuildinfo
|
|
63
|
+
tsconfig.esm.json.tpl
|
|
64
|
+
/package.d.ts
|
|
65
|
+
/report.*.json
|
|
66
|
+
/report.json
|
|
67
|
+
/_*/
|
|
68
|
+
_snowpack
|
|
69
|
+
web_modules
|
|
70
|
+
tsc-multi.json.tpl
|
|
71
|
+
.turbo
|
|
72
|
+
.next
|
|
73
|
+
|
|
74
|
+
# 測試檔 / test files · git 專用 / git only
|
|
75
|
+
# 測試建置產物(共用輔助產生)/ test build artifacts (generated by shared helper)
|
|
76
|
+
test/temp*
|
|
77
|
+
test/**/*.map
|
|
78
|
+
tests/temp*
|
|
79
|
+
tests/**/*.map
|
|
80
|
+
/packages/*/test/temp*
|
|
81
|
+
/packages/*/tests/temp*
|
|
82
|
+
|
|
83
|
+
test/**/*.js
|
|
84
|
+
test/**/*.d.ts
|
|
85
|
+
test/*.js
|
|
86
|
+
test/*.d.ts
|
|
87
|
+
tests/**/*.js
|
|
88
|
+
tests/**/*.d.ts
|
|
89
|
+
tests/*.js
|
|
90
|
+
tests/*.d.ts
|
|
91
|
+
bin/*.d.ts
|
|
92
|
+
bin/**/*.d.ts
|
|
93
|
+
/packages/*/bin/*.d.ts
|
|
94
|
+
/packages/*/test/**/*.js
|
|
95
|
+
/packages/*/test/**/*.d.ts
|
|
96
|
+
/packages/*/test/*.js
|
|
97
|
+
/packages/*/test/*.d.ts
|
|
98
|
+
/packages/*/tests/**/*.js
|
|
99
|
+
/packages/*/tests/**/*.d.ts
|
|
100
|
+
/packages/*/tests/*.js
|
|
101
|
+
/packages/*/tests/*.d.ts
|
|
102
|
+
|
|
103
|
+
test/**/*.mjs
|
|
104
|
+
test/**/*.d.mts
|
|
105
|
+
test/*.mjs
|
|
106
|
+
test/*.d.mts
|
|
107
|
+
tests/**/*.mjs
|
|
108
|
+
tests/**/*.d.mts
|
|
109
|
+
tests/*.mjs
|
|
110
|
+
tests/*.d.mts
|
|
111
|
+
bin/*.d.mts
|
|
112
|
+
bin/**/*.d.mts
|
|
113
|
+
/packages/*/bin/*.d.mts
|
|
114
|
+
/packages/*/test/**/*.mjs
|
|
115
|
+
/packages/*/test/**/*.d.mts
|
|
116
|
+
/packages/*/test/*.mjs
|
|
117
|
+
/packages/*/test/*.d.mts
|
|
118
|
+
/packages/*/tests/**/*.mjs
|
|
119
|
+
/packages/*/tests/**/*.d.mts
|
|
120
|
+
/packages/*/tests/*.mjs
|
|
121
|
+
/packages/*/tests/*.d.mts
|
|
122
|
+
|
|
123
|
+
test/**/*.cjs
|
|
124
|
+
test/**/*.d.cts
|
|
125
|
+
test/*.cjs
|
|
126
|
+
test/*.d.cts
|
|
127
|
+
tests/**/*.cjs
|
|
128
|
+
tests/**/*.d.cts
|
|
129
|
+
tests/*.cjs
|
|
130
|
+
tests/*.d.cts
|
|
131
|
+
bin/*.d.cts
|
|
132
|
+
bin/**/*.d.cts
|
|
133
|
+
/packages/*/bin/*.d.cts
|
|
134
|
+
/packages/*/test/**/*.cjs
|
|
135
|
+
/packages/*/test/**/*.d.cts
|
|
136
|
+
/packages/*/test/*.cjs
|
|
137
|
+
/packages/*/test/*.d.cts
|
|
138
|
+
/packages/*/tests/**/*.cjs
|
|
139
|
+
/packages/*/tests/**/*.d.cts
|
|
140
|
+
/packages/*/tests/*.cjs
|
|
141
|
+
/packages/*/tests/*.d.cts
|
|
142
|
+
.nycrc
|
|
143
|
+
#jest.config.js
|
|
144
|
+
jest.config.d.ts
|
|
145
|
+
jest.config.js.map
|
|
146
|
+
.coverage-cache
|
|
147
|
+
/test/*.tpl
|
|
148
|
+
test/fixtures/.gitkeep
|
|
149
|
+
|
|
150
|
+
# 測試檔 / test files · 兩類共用 / shared
|
|
151
|
+
# testing
|
|
152
|
+
.nyc_output
|
|
153
|
+
coverage
|
|
154
|
+
.mocharc.yml
|
|
155
|
+
*.spec.d.ts
|
|
156
|
+
*.spec.js
|
|
157
|
+
|
|
158
|
+
# IDE 與編輯器設定 / IDE & editor settings · 兩類共用 / shared
|
|
159
|
+
.idea
|
|
160
|
+
.vscode
|
|
161
|
+
*.suo
|
|
162
|
+
*.ntvs*
|
|
163
|
+
*.njsproj
|
|
164
|
+
*.sln
|
|
165
|
+
*.sw?
|
|
166
|
+
|
|
167
|
+
# 環境設定 / environment settings · git 專用 / git only
|
|
168
|
+
*.pem
|
|
169
|
+
.env.development.local
|
|
170
|
+
.env.test.local
|
|
171
|
+
.env.production.local
|
|
172
|
+
.nvmrc
|
|
173
|
+
.node-version
|
|
174
|
+
/now.json
|
|
175
|
+
.nowignore
|
|
176
|
+
/certificates
|
|
177
|
+
|
|
178
|
+
# 環境設定 / environment settings · 兩類共用 / shared
|
|
179
|
+
# local env files
|
|
180
|
+
.env.local
|
|
181
|
+
# vercel
|
|
182
|
+
.vercel
|
|
183
|
+
.env.*.local
|
|
184
|
+
|
|
185
|
+
# 未分類 / unclassified · git 專用 / git only
|
|
186
|
+
# misc
|
|
187
|
+
.DS_Store
|
|
188
|
+
.opt-in
|
|
189
|
+
.opt-out
|
|
190
|
+
.agentbridge
|
|
191
|
+
|
|
192
|
+
# 未分類 / unclassified · 兩類共用 / shared
|
|
193
|
+
~ci.list.txt
|
|
194
|
+
~ci.log.txt
|
|
195
|
+
~ci.errors.txt
|
|
196
|
+
*.stackdump
|
|
197
|
+
*.bak
|
|
198
|
+
*.old
|
|
199
|
+
*.stat
|
|
200
|
+
.codenomad
|
|
201
|
+
.logs
|
|
202
|
+
|
|
203
|
+
# 白名單例外 / whitelist exceptions · git 專用 / git only
|
|
204
|
+
!test/tsconfig.json
|
|
205
|
+
!tsconfig.json
|
|
206
|
+
!.eslintrc.json
|
|
207
|
+
!.forestry
|
|
208
|
+
!.vuepress
|
|
209
|
+
!.gitee
|
|
210
|
+
!.gitlab
|
|
211
|
+
!/.nvmrc
|
|
212
|
+
!/.node-version
|
|
213
|
+
!/.github
|
|
214
|
+
!npm-shrinkwrap.json
|
|
215
|
+
!/.yarnrc.yml
|
|
216
|
+
!/.run/
|
|
217
|
+
!/.storybook/
|
|
218
|
+
!.clinerules
|
|
219
|
+
!.kilocode
|
|
220
|
+
!.cline
|
|
221
|
+
!.junie
|
|
222
|
+
!.gemini
|
|
223
|
+
!.copilot
|
|
224
|
+
!.claude
|
|
225
|
+
!.agents
|
|
226
|
+
!.aiassistant
|
|
227
|
+
!/api-extractor*.json
|
|
228
|
+
!__mocks__
|
|
229
|
+
!__mocks__/
|
|
230
|
+
!__mocks__/*
|
|
231
|
+
!test/__root-core.cjs
|
|
232
|
+
!test/__root-core.d.ts
|
|
233
|
+
!test/__root-core.mts
|
|
234
|
+
!test/__root-core.d.cts
|
|
235
|
+
!test/__root-core.d.mts
|
|
236
|
+
!test/__root-core.mjs
|
|
237
|
+
!__root-core.cjs
|
|
238
|
+
!__root-core.mjs
|
|
239
|
+
!__root-core.d.cts
|
|
240
|
+
!__root-core.d.mts
|
|
241
|
+
!__root-core.d.ts
|
|
242
|
+
!__root-core.ts
|