@yarn-tool/static-file 3.0.33 → 3.0.35

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +2 -2
  3. package/file/gitignore +16 -13
  4. package/file/npmignore +79 -14
  5. package/lib/const.d.ts +18 -1
  6. package/lib/const.js +20 -2
  7. package/lib/const.js.map +1 -1
  8. package/lib/copyStaticFilesByRootData.d.ts +52 -0
  9. package/lib/copyStaticFilesByRootData.js +53 -0
  10. package/lib/copyStaticFilesByRootData.js.map +1 -0
  11. package/lib/root/getRootCopyStaticFiles.d.ts +2 -1
  12. package/lib/root/getRootCopyStaticFiles.js +10 -0
  13. package/lib/root/getRootCopyStaticFiles.js.map +1 -1
  14. package/package.json +5 -3
  15. package/playwright.config.js.map +1 -0
  16. package/test/copyStaticFiles.test.js.map +1 -1
  17. package/test/copyStaticFiles.test.ts.snapshot +2 -22
  18. package/test/copyStaticFilesByRootData.test.js.map +1 -0
  19. package/test/copyStaticFilesByRootData.test.ts.snapshot +639 -0
  20. package/test/fixtures/empty-pkg/package.json +4 -0
  21. package/test/fixtures/out/gitignore +16 -13
  22. package/test/fixtures/out/npmignore +79 -14
  23. package/test/fixtures/split/git/00-header.txt +1 -1
  24. package/test/fixtures/split/git/10-project.txt +1 -1
  25. package/test/fixtures/split/git/20-test.txt +1 -1
  26. package/test/fixtures/split/git/40-env.txt +1 -1
  27. package/test/fixtures/split/git/90-misc.txt +1 -1
  28. package/test/fixtures/split/git/99-whitelist.txt +1 -1
  29. package/test/fixtures/split/npm/01-hidden.txt +1 -1
  30. package/test/fixtures/split/npm/05-source.txt +1 -1
  31. package/test/fixtures/split/npm/10-project.txt +1 -1
  32. package/test/fixtures/split/npm/20-test.txt +3 -1
  33. package/test/fixtures/split/npm/30-ide.txt +1 -1
  34. package/test/fixtures/split/npm/40-env.txt +1 -1
  35. package/test/fixtures/split/npm/90-misc.txt +1 -1
  36. package/test/fixtures/split/other/90-duplicates.txt +2 -2
  37. package/test/fixtures/split/shared/10-project.txt +1 -1
  38. package/test/fixtures/split/shared/20-test.txt +4 -1
  39. package/test/fixtures/split/shared/30-ide.txt +1 -1
  40. package/test/fixtures/split/shared/40-env.txt +1 -1
  41. package/test/fixtures/split/shared/90-misc.txt +1 -1
  42. package/test/scripts/compose-split-ignore-files.js +1 -1
  43. package/test/scripts/compose-split-ignore-files.js.map +1 -1
  44. package/test/scripts/lib/ignore-split.d.ts +24 -64
  45. package/test/scripts/lib/ignore-split.js +41 -75
  46. package/test/scripts/lib/ignore-split.js.map +1 -1
  47. package/test/scripts/split-ignore-files.js +19 -19
  48. package/test/scripts/split-ignore-files.js.map +1 -1
  49. package/test/scripts/update-npmignore-static-files.js +25 -2
  50. package/test/scripts/update-npmignore-static-files.js.map +1 -1
  51. package/file/playwright.config.ts +0 -6
  52. package/file/test/__root.js.map +0 -1
  53. package/file/test/temp.js.map +0 -1
  54. package/file/tsdx/index.cjs.map +0 -1
  55. package/file/tsdx/index.js.map +0 -1
  56. package/file/ws-root/__root_ws.js.map +0 -1
@@ -0,0 +1,639 @@
1
+ exports[`快照 > <ws-yarn-workspaces> 1`] = `
2
+ {
3
+ "rootData": {
4
+ "cwd": "<ws-yarn-workspaces>",
5
+ "pkg": "<ws-yarn-workspaces>",
6
+ "ws": "<ws-yarn-workspaces>",
7
+ "hasWorkspace": true,
8
+ "isWorkspace": true,
9
+ "root": "<ws-yarn-workspaces>",
10
+ "isRoot": true,
11
+ "isPkg": false
12
+ },
13
+ "options": {
14
+ "cwd": "<ws-yarn-workspaces>",
15
+ "file_map": [
16
+ [
17
+ "tsconfig.json",
18
+ "file/tsconfig.json.tpl"
19
+ ],
20
+ [
21
+ "lerna.json",
22
+ "file/lerna.json.tpl",
23
+ "lerna.json"
24
+ ],
25
+ [
26
+ "pnpm-workspace.yaml",
27
+ "file/pnpm-workspace.yaml"
28
+ ],
29
+ [
30
+ ".npmignore",
31
+ "file/npmignore"
32
+ ],
33
+ [
34
+ ".gitignore",
35
+ "file/gitignore"
36
+ ],
37
+ [
38
+ ".eslintignore",
39
+ "file/eslintignore"
40
+ ],
41
+ [
42
+ "tsconfig.json.tpl",
43
+ "file/tsconfig.json.tpl"
44
+ ],
45
+ [
46
+ "test/tsconfig.json.tpl",
47
+ "file/test/tsconfig.json.tpl",
48
+ "test/tsconfig.json"
49
+ ],
50
+ [
51
+ "tsconfig.esm.json.tpl",
52
+ "file/tsconfig.esm.json.tpl",
53
+ "tsconfig.esm.json"
54
+ ],
55
+ [
56
+ "tsconfig.tsdx.json.tpl",
57
+ "file/tsconfig.tsdx.json.tpl",
58
+ "tsconfig.tsdx.json"
59
+ ],
60
+ [
61
+ ".eslintrc.json.tpl",
62
+ "file/eslintrc.json.tpl",
63
+ ".eslintrc.json"
64
+ ],
65
+ [
66
+ "README.md",
67
+ "file/README.md"
68
+ ],
69
+ [
70
+ ".mocharc.yml.tpl",
71
+ "file/mocharc.yml"
72
+ ],
73
+ [
74
+ "jest.config.js",
75
+ "file/jest.config.auto.js"
76
+ ],
77
+ [
78
+ ".nowignore",
79
+ "file/nowignore"
80
+ ],
81
+ [
82
+ "now.json.tpl",
83
+ "file/now.json.tpl",
84
+ "now.json"
85
+ ],
86
+ [
87
+ "tsdx.config.js.tpl",
88
+ "file/tsdx.config.js",
89
+ "tsdx.config.js"
90
+ ],
91
+ [
92
+ "test/temp.ts",
93
+ "file/test/temp.ts"
94
+ ],
95
+ [
96
+ "test/__root.ts",
97
+ "file/test/__root.ts"
98
+ ],
99
+ [
100
+ "test/__root-core.cjs",
101
+ "file/test/__root-core.cjs"
102
+ ],
103
+ [
104
+ "test/__root-core.mjs",
105
+ "file/test/__root-core.mjs"
106
+ ],
107
+ [
108
+ "test/__root-core.d.cts",
109
+ "file/test/__root-core.d.cts"
110
+ ],
111
+ [
112
+ "test/__root-core.d.mts",
113
+ "file/test/__root-core.d.mts"
114
+ ],
115
+ [
116
+ "test/__root-core.d.ts",
117
+ "file/test/__root-core.d.ts"
118
+ ],
119
+ [
120
+ "test/fixtures/.gitkeep",
121
+ "file/test/fixtures/.gitkeep"
122
+ ],
123
+ [
124
+ "lerna.json.tpl",
125
+ "file/lerna.json.tpl",
126
+ "lerna.json"
127
+ ],
128
+ [
129
+ "pnpm-workspace.yaml.tpl",
130
+ "file/pnpm-workspace.yaml"
131
+ ],
132
+ [
133
+ ".github/workflows/build-pnpm.yml",
134
+ "file/github/workflows/build-pnpm.yml"
135
+ ],
136
+ [
137
+ ".github/workflows/build-yarn.yml",
138
+ "file/github/workflows/build-yarn.yml"
139
+ ],
140
+ [
141
+ ".github/dependabot.yml",
142
+ "file/github/dependabot.yml"
143
+ ],
144
+ [
145
+ ".github/commit-convention.md",
146
+ "file/github/commit-convention.md"
147
+ ],
148
+ [
149
+ ".node-version.tpl",
150
+ "file/nvmrc"
151
+ ],
152
+ [
153
+ ".nvmrc.tpl",
154
+ "file/nvmrc"
155
+ ],
156
+ [
157
+ ".eslintrc.json",
158
+ "file/eslintrc.json.tpl",
159
+ ".eslintrc.json"
160
+ ],
161
+ [
162
+ ".yarnrc.yml.tpl",
163
+ "file/root/yarnrc.yml",
164
+ ".yarnrc.yml"
165
+ ],
166
+ [
167
+ ".npmrc.tpl",
168
+ "file/npmrc",
169
+ ".npmrc"
170
+ ],
171
+ [
172
+ ".env.tpl",
173
+ "file/env"
174
+ ],
175
+ [
176
+ "jest.config.auto.js.tpl",
177
+ "file/jest.config.auto.js"
178
+ ],
179
+ [
180
+ ".editorconfig.tpl",
181
+ "file/tpl.editorconfig"
182
+ ],
183
+ [
184
+ ".editorconfig",
185
+ "file/tpl.editorconfig"
186
+ ],
187
+ [
188
+ "global.tsdx.d.ts",
189
+ "file/root/global.tsdx.d.ts"
190
+ ],
191
+ [
192
+ ".browserslistrc",
193
+ "file/ws-root/browserslistrc"
194
+ ],
195
+ [
196
+ "lerna.json.tpl",
197
+ "file/lerna.json.tpl"
198
+ ],
199
+ [
200
+ "__root_ws.ts",
201
+ "file/ws-root/__root_ws.ts"
202
+ ],
203
+ [
204
+ "jest.config.js",
205
+ "file/ws-root/jest.config.js"
206
+ ],
207
+ [
208
+ "jest-preset.js",
209
+ "file/ws-root/jest-preset.js"
210
+ ],
211
+ [
212
+ "jest.config.js.tpl",
213
+ "file/ws-root/jest.config.js"
214
+ ],
215
+ [
216
+ ".run/lerna_publish_yes.run.xml",
217
+ "file/ws-root/.run/lerna_publish_yes.run.xml"
218
+ ]
219
+ ]
220
+ }
221
+ }
222
+ `;
223
+
224
+ exports[`快照 > <ws-yarn-workspaces>/packages/@yarn-tool/static-file 1`] = `
225
+ {
226
+ "rootData": {
227
+ "cwd": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file",
228
+ "pkg": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file",
229
+ "ws": "<ws-yarn-workspaces>",
230
+ "hasWorkspace": true,
231
+ "isWorkspace": false,
232
+ "root": "<ws-yarn-workspaces>",
233
+ "isRoot": false,
234
+ "isPkg": true
235
+ },
236
+ "options": {
237
+ "cwd": "<ws-yarn-workspaces>",
238
+ "file_map": [
239
+ [
240
+ "tsconfig.json",
241
+ "file/tsconfig.json.tpl"
242
+ ],
243
+ [
244
+ "lerna.json",
245
+ "file/lerna.json.tpl",
246
+ "lerna.json"
247
+ ],
248
+ [
249
+ "pnpm-workspace.yaml",
250
+ "file/pnpm-workspace.yaml"
251
+ ],
252
+ [
253
+ ".npmignore",
254
+ "file/npmignore"
255
+ ],
256
+ [
257
+ ".gitignore",
258
+ "file/gitignore"
259
+ ],
260
+ [
261
+ ".eslintignore",
262
+ "file/eslintignore"
263
+ ],
264
+ [
265
+ "tsconfig.json.tpl",
266
+ "file/tsconfig.json.tpl"
267
+ ],
268
+ [
269
+ "test/tsconfig.json.tpl",
270
+ "file/test/tsconfig.json.tpl",
271
+ "test/tsconfig.json"
272
+ ],
273
+ [
274
+ "tsconfig.esm.json.tpl",
275
+ "file/tsconfig.esm.json.tpl",
276
+ "tsconfig.esm.json"
277
+ ],
278
+ [
279
+ "tsconfig.tsdx.json.tpl",
280
+ "file/tsconfig.tsdx.json.tpl",
281
+ "tsconfig.tsdx.json"
282
+ ],
283
+ [
284
+ ".eslintrc.json.tpl",
285
+ "file/eslintrc.json.tpl",
286
+ ".eslintrc.json"
287
+ ],
288
+ [
289
+ "README.md",
290
+ "file/README.md"
291
+ ],
292
+ [
293
+ ".mocharc.yml.tpl",
294
+ "file/mocharc.yml"
295
+ ],
296
+ [
297
+ "jest.config.js",
298
+ "file/jest.config.auto.js"
299
+ ],
300
+ [
301
+ ".nowignore",
302
+ "file/nowignore"
303
+ ],
304
+ [
305
+ "now.json.tpl",
306
+ "file/now.json.tpl",
307
+ "now.json"
308
+ ],
309
+ [
310
+ "tsdx.config.js.tpl",
311
+ "file/tsdx.config.js",
312
+ "tsdx.config.js"
313
+ ],
314
+ [
315
+ "test/temp.ts",
316
+ "file/test/temp.ts"
317
+ ],
318
+ [
319
+ "test/__root.ts",
320
+ "file/test/__root.ts"
321
+ ],
322
+ [
323
+ "test/__root-core.cjs",
324
+ "file/test/__root-core.cjs"
325
+ ],
326
+ [
327
+ "test/__root-core.mjs",
328
+ "file/test/__root-core.mjs"
329
+ ],
330
+ [
331
+ "test/__root-core.d.cts",
332
+ "file/test/__root-core.d.cts"
333
+ ],
334
+ [
335
+ "test/__root-core.d.mts",
336
+ "file/test/__root-core.d.mts"
337
+ ],
338
+ [
339
+ "test/__root-core.d.ts",
340
+ "file/test/__root-core.d.ts"
341
+ ],
342
+ [
343
+ "test/fixtures/.gitkeep",
344
+ "file/test/fixtures/.gitkeep"
345
+ ],
346
+ [
347
+ "lerna.json.tpl",
348
+ "file/lerna.json.tpl",
349
+ "lerna.json"
350
+ ],
351
+ [
352
+ "pnpm-workspace.yaml.tpl",
353
+ "file/pnpm-workspace.yaml"
354
+ ],
355
+ [
356
+ ".github/workflows/build-pnpm.yml",
357
+ "file/github/workflows/build-pnpm.yml"
358
+ ],
359
+ [
360
+ ".github/workflows/build-yarn.yml",
361
+ "file/github/workflows/build-yarn.yml"
362
+ ],
363
+ [
364
+ ".github/dependabot.yml",
365
+ "file/github/dependabot.yml"
366
+ ],
367
+ [
368
+ ".github/commit-convention.md",
369
+ "file/github/commit-convention.md"
370
+ ],
371
+ [
372
+ ".node-version.tpl",
373
+ "file/nvmrc"
374
+ ],
375
+ [
376
+ ".nvmrc.tpl",
377
+ "file/nvmrc"
378
+ ],
379
+ [
380
+ ".eslintrc.json",
381
+ "file/eslintrc.json.tpl",
382
+ ".eslintrc.json"
383
+ ],
384
+ [
385
+ ".yarnrc.yml.tpl",
386
+ "file/root/yarnrc.yml",
387
+ ".yarnrc.yml"
388
+ ],
389
+ [
390
+ ".npmrc.tpl",
391
+ "file/npmrc",
392
+ ".npmrc"
393
+ ],
394
+ [
395
+ ".env.tpl",
396
+ "file/env"
397
+ ],
398
+ [
399
+ "jest.config.auto.js.tpl",
400
+ "file/jest.config.auto.js"
401
+ ],
402
+ [
403
+ ".editorconfig.tpl",
404
+ "file/tpl.editorconfig"
405
+ ],
406
+ [
407
+ ".editorconfig",
408
+ "file/tpl.editorconfig"
409
+ ],
410
+ [
411
+ "global.tsdx.d.ts",
412
+ "file/root/global.tsdx.d.ts"
413
+ ],
414
+ [
415
+ ".browserslistrc",
416
+ "file/ws-root/browserslistrc"
417
+ ],
418
+ [
419
+ "lerna.json.tpl",
420
+ "file/lerna.json.tpl"
421
+ ],
422
+ [
423
+ "__root_ws.ts",
424
+ "file/ws-root/__root_ws.ts"
425
+ ],
426
+ [
427
+ "jest.config.js",
428
+ "file/ws-root/jest.config.js"
429
+ ],
430
+ [
431
+ "jest-preset.js",
432
+ "file/ws-root/jest-preset.js"
433
+ ],
434
+ [
435
+ "jest.config.js.tpl",
436
+ "file/ws-root/jest.config.js"
437
+ ],
438
+ [
439
+ ".run/lerna_publish_yes.run.xml",
440
+ "file/ws-root/.run/lerna_publish_yes.run.xml"
441
+ ]
442
+ ]
443
+ }
444
+ }
445
+ `;
446
+
447
+ exports[`快照 > <ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/fixtures/empty-pkg 1`] = `
448
+ {
449
+ "rootData": {
450
+ "cwd": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/fixtures/empty-pkg",
451
+ "pkg": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/fixtures/empty-pkg",
452
+ "hasWorkspace": false,
453
+ "isWorkspace": false,
454
+ "root": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/fixtures/empty-pkg",
455
+ "isRoot": true,
456
+ "isPkg": true
457
+ },
458
+ "options": {
459
+ "cwd": "<ws-yarn-workspaces>/packages/@yarn-tool/static-file/test/fixtures/empty-pkg",
460
+ "file_map": [
461
+ [
462
+ ".npmignore",
463
+ "file/npmignore"
464
+ ],
465
+ [
466
+ ".gitignore",
467
+ "file/gitignore"
468
+ ],
469
+ [
470
+ ".eslintignore",
471
+ "file/eslintignore"
472
+ ],
473
+ [
474
+ "tsconfig.json",
475
+ "file/tsconfig.json.tpl"
476
+ ],
477
+ [
478
+ "tsconfig.json.tpl",
479
+ "file/tsconfig.json.tpl"
480
+ ],
481
+ [
482
+ "test/tsconfig.json.tpl",
483
+ "file/test/tsconfig.json.tpl",
484
+ "test/tsconfig.json"
485
+ ],
486
+ [
487
+ "tsconfig.esm.json.tpl",
488
+ "file/tsconfig.esm.json.tpl",
489
+ "tsconfig.esm.json"
490
+ ],
491
+ [
492
+ "tsconfig.tsdx.json.tpl",
493
+ "file/tsconfig.tsdx.json.tpl",
494
+ "tsconfig.tsdx.json"
495
+ ],
496
+ [
497
+ ".eslintrc.json.tpl",
498
+ "file/eslintrc.json.tpl",
499
+ ".eslintrc.json"
500
+ ],
501
+ [
502
+ "README.md",
503
+ "file/README.md"
504
+ ],
505
+ [
506
+ ".mocharc.yml.tpl",
507
+ "file/mocharc.yml"
508
+ ],
509
+ [
510
+ "jest.config.js",
511
+ "file/jest.config.auto.js"
512
+ ],
513
+ [
514
+ ".nowignore",
515
+ "file/nowignore"
516
+ ],
517
+ [
518
+ "now.json.tpl",
519
+ "file/now.json.tpl",
520
+ "now.json"
521
+ ],
522
+ [
523
+ "tsdx.config.js.tpl",
524
+ "file/tsdx.config.js",
525
+ "tsdx.config.js"
526
+ ],
527
+ [
528
+ "test/temp.ts",
529
+ "file/test/temp.ts"
530
+ ],
531
+ [
532
+ "test/__root.ts",
533
+ "file/test/__root.ts"
534
+ ],
535
+ [
536
+ "test/__root-core.cjs",
537
+ "file/test/__root-core.cjs"
538
+ ],
539
+ [
540
+ "test/__root-core.mjs",
541
+ "file/test/__root-core.mjs"
542
+ ],
543
+ [
544
+ "test/__root-core.d.cts",
545
+ "file/test/__root-core.d.cts"
546
+ ],
547
+ [
548
+ "test/__root-core.d.mts",
549
+ "file/test/__root-core.d.mts"
550
+ ],
551
+ [
552
+ "test/__root-core.d.ts",
553
+ "file/test/__root-core.d.ts"
554
+ ],
555
+ [
556
+ "test/fixtures/.gitkeep",
557
+ "file/test/fixtures/.gitkeep"
558
+ ],
559
+ [
560
+ "lerna.json.tpl",
561
+ "file/lerna.json.tpl",
562
+ "lerna.json"
563
+ ],
564
+ [
565
+ "pnpm-workspace.yaml.tpl",
566
+ "file/pnpm-workspace.yaml"
567
+ ],
568
+ [
569
+ ".github/workflows/build-pnpm.yml",
570
+ "file/github/workflows/build-pnpm.yml"
571
+ ],
572
+ [
573
+ ".github/workflows/build-yarn.yml",
574
+ "file/github/workflows/build-yarn.yml"
575
+ ],
576
+ [
577
+ ".github/dependabot.yml",
578
+ "file/github/dependabot.yml"
579
+ ],
580
+ [
581
+ ".github/commit-convention.md",
582
+ "file/github/commit-convention.md"
583
+ ],
584
+ [
585
+ ".node-version.tpl",
586
+ "file/nvmrc"
587
+ ],
588
+ [
589
+ ".nvmrc.tpl",
590
+ "file/nvmrc"
591
+ ],
592
+ [
593
+ ".eslintrc.json",
594
+ "file/eslintrc.json.tpl",
595
+ ".eslintrc.json"
596
+ ],
597
+ [
598
+ ".yarnrc.yml.tpl",
599
+ "file/root/yarnrc.yml",
600
+ ".yarnrc.yml"
601
+ ],
602
+ [
603
+ ".npmrc.tpl",
604
+ "file/npmrc",
605
+ ".npmrc"
606
+ ],
607
+ [
608
+ ".env.tpl",
609
+ "file/env"
610
+ ],
611
+ [
612
+ "jest.config.auto.js.tpl",
613
+ "file/jest.config.auto.js"
614
+ ],
615
+ [
616
+ ".editorconfig.tpl",
617
+ "file/tpl.editorconfig"
618
+ ],
619
+ [
620
+ ".editorconfig",
621
+ "file/tpl.editorconfig"
622
+ ],
623
+ [
624
+ "global.tsdx.d.ts",
625
+ "file/root/global.tsdx.d.ts"
626
+ ],
627
+ [
628
+ ".browserslistrc",
629
+ "file/ws-root/browserslistrc"
630
+ ],
631
+ [
632
+ "playwright.config.ts",
633
+ "file/playwright.config.ts",
634
+ "playwright.config.js"
635
+ ]
636
+ ]
637
+ }
638
+ }
639
+ `;
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "empty-pkg",
3
+ "version": "1.0.0"
4
+ }