@dword-design/base 11.1.2 → 11.2.1

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 (23) hide show
  1. package/dist/commands/check-unknown-files/common-allowed-matches.js +2 -2
  2. package/dist/commands/prepare/__snapshots__/index.spec.js.snap +2 -1
  3. package/dist/commands/test-docker/index.js +1 -1
  4. package/dist/commands/test-raw/package-json-schema.js +7 -2
  5. package/dist/get-generated-files/__snapshots__/index.spec.js.snap +1 -0
  6. package/dist/get-generated-files/common-editor-ignore.js +1 -1
  7. package/dist/get-generated-files/get-editor-ignore/__snapshots__/index.spec.js.snap +1 -1
  8. package/dist/get-generated-files/get-github-codespaces/__snapshots__/index.spec.js.snap +1 -1
  9. package/dist/get-generated-files/get-github-codespaces/index.js +1 -1
  10. package/dist/get-generated-files/get-github-workflow/__snapshots__/index.spec.js.snap +95 -50
  11. package/dist/get-generated-files/get-github-workflow/steps/check-unknown-files.js +1 -1
  12. package/dist/get-generated-files/get-github-workflow/steps/get-release.js +2 -2
  13. package/dist/get-generated-files/get-github-workflow/steps/get-test.js +1 -1
  14. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +7 -3
  15. package/dist/get-generated-files/get-github-workflow/strategies/simple.js +3 -1
  16. package/dist/get-generated-files/get-gitpod/__snapshots__/index.spec.js.snap +6 -3
  17. package/dist/get-generated-files/get-gitpod/index.js +5 -2
  18. package/dist/get-generated-files/get-gitpod-dockerfile.js +0 -2
  19. package/dist/get-generated-files/get-package-config/index.js +1 -0
  20. package/dist/get-generated-files/get-vscode/__snapshots__/index.spec.js.snap +1 -1
  21. package/dist/get-generated-files/index.js +2 -0
  22. package/dist/get-generated-files/npmrc.js +1 -0
  23. package/package.json +6 -8
@@ -16,6 +16,6 @@ export default Object.keys({
16
16
  demo: true,
17
17
  doc: true,
18
18
  'global-test-hooks.js': true,
19
- 'types.d.ts': true,
20
- 'yarn.lock': true
19
+ 'pnpm-lock.yaml': true,
20
+ 'types.d.ts': true
21
21
  });
@@ -17,6 +17,7 @@ Object {
17
17
  ".gitpod.Dockerfile": true,
18
18
  ".gitpod.yml": true,
19
19
  ".husky": true,
20
+ ".npmrc": true,
20
21
  ".releaserc.json": true,
21
22
  ".renovaterc.json": true,
22
23
  ".test.env.json": true,
@@ -25,8 +26,8 @@ Object {
25
26
  "LICENSE.md": true,
26
27
  "README.md": true,
27
28
  "package.json": true,
29
+ "pnpm-lock.yaml": true,
28
30
  "src": true,
29
- "yarn.lock": true,
30
31
  }
31
32
  `;
32
33
 
@@ -20,7 +20,7 @@ export default async function (options) {
20
20
  const userInfo = os.userInfo();
21
21
  try {
22
22
  var _ref4, _envVariableNames, _ref5;
23
- return await execa('docker', ['run', '--rm', '--tty', ...(_ref4 = (_envVariableNames = envVariableNames, filter(name => process.env[name] !== undefined)(_envVariableNames)), flatMap(name => ['--env', `${name}=${process.env[name]}`])(_ref4)), '-v', `${process.cwd()}:/app`, '-v', `${volumeName}:/app/node_modules`, 'dworddesign/testing:latest', 'bash', '-c', (_ref5 = ['yarn --frozen-lockfile', '&&', 'yarn test:raw', ...(options.updateSnapshots ? [' --update-snapshots'] : []), ...options.patterns, ...(options.grep ? [`-g "${options.grep}"`] : [])], join(' ')(_ref5))], options.log ? {
23
+ return await execa('docker', ['run', '--rm', ...(_ref4 = (_envVariableNames = envVariableNames, filter(name => process.env[name] !== undefined)(_envVariableNames)), flatMap(name => ['--env', `${name}=${process.env[name]}`])(_ref4)), '-v', `${process.cwd()}:/app`, '-v', `${volumeName}:/app/node_modules`, 'dworddesign/testing:latest', 'bash', '-c', (_ref5 = ['pnpm install --frozen-lockfile', '&&', 'pnpm test:raw', ...(options.updateSnapshots ? [' --update-snapshots'] : []), ...options.patterns.map(pattern => `"${pattern}"`), ...(options.grep ? [`-g "${options.grep}"`] : [])], join(' ')(_ref5))], options.log ? {
24
24
  stdio: 'inherit'
25
25
  } : {
26
26
  all: true
@@ -1,4 +1,5 @@
1
1
  import packageNameRegex from 'package-name-regex';
2
+ const distPattern = /^\.\/dist\//;
2
3
  export default {
3
4
  properties: {
4
5
  baseConfig: {
@@ -14,10 +15,11 @@ export default {
14
15
  },
15
16
  bin: {
16
17
  additionalProperties: {
17
- pattern: /^\.\/dist\//.source,
18
+ pattern: distPattern.source,
18
19
  type: 'string'
19
20
  },
20
- type: 'object'
21
+ pattern: distPattern.source,
22
+ type: ['object', 'string']
21
23
  },
22
24
  dependencies: {
23
25
  additionalProperties: {
@@ -44,6 +46,9 @@ export default {
44
46
  pattern: packageNameRegex.source,
45
47
  type: 'string'
46
48
  },
49
+ packageManager: {
50
+ type: 'string'
51
+ },
47
52
  version: {
48
53
  type: 'string'
49
54
  }
@@ -45,6 +45,7 @@ Array [
45
45
  ".gitignore",
46
46
  ".gitpod.Dockerfile",
47
47
  ".gitpod.yml",
48
+ ".npmrc",
48
49
  ".releaserc.json",
49
50
  ".renovaterc.json",
50
51
  ".vscode/settings.json",
@@ -1 +1 @@
1
- export default ['.babelrc.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', '.eslintrc.json', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'yarn.lock'];
1
+ export default ['.babelrc.json', '.commitlintrc.json', '.cz.json', '.devcontainer', '.editorconfig', '.eslintrc.json', '.gitattributes', '.github', '.gitignore', '.gitpod.Dockerfile', '.gitpod.yml', '.husky', '.nyc_output', '.releaserc.json', '.renovaterc.json', '.vscode', 'CHANGELOG.md', 'coverage', 'LICENSE.md', 'node_modules', 'pnpm-lock.yaml'];
@@ -23,6 +23,6 @@ Array [
23
23
  "coverage",
24
24
  "foo",
25
25
  "node_modules",
26
- "yarn.lock",
26
+ "pnpm-lock.yaml",
27
27
  ]
28
28
  `;
@@ -6,6 +6,6 @@ Object {
6
6
  "ghcr.io/devcontainers/features/docker-in-docker:2": Object {},
7
7
  },
8
8
  "image": "mcr.microsoft.com/devcontainers/javascript-node:1-18",
9
- "updateContentCommand": "yarn --frozen-lockfile",
9
+ "updateContentCommand": "pnpm install --frozen-lockfile",
10
10
  }
11
11
  `;
@@ -4,6 +4,6 @@ export default function () {
4
4
  'ghcr.io/devcontainers/features/docker-in-docker:2': {}
5
5
  },
6
6
  image: `mcr.microsoft.com/devcontainers/javascript-node:1-${this.config.nodeVersion}`,
7
- updateContentCommand: 'yarn --frozen-lockfile'
7
+ updateContentCommand: 'pnpm install --frozen-lockfile'
8
8
  };
9
9
  }
@@ -32,6 +32,9 @@ Object {
32
32
  "node-version": 20,
33
33
  },
34
34
  },
35
+ Object {
36
+ "run": "corepack enable",
37
+ },
35
38
  Object {
36
39
  "run": "git config --global user.email \\"actions@github.com\\"",
37
40
  },
@@ -39,13 +42,13 @@ Object {
39
42
  "run": "git config --global user.name \\"GitHub Actions\\"",
40
43
  },
41
44
  Object {
42
- "run": "yarn --frozen-lockfile",
45
+ "run": "pnpm install --frozen-lockfile",
43
46
  },
44
47
  Object {
45
- "run": "yarn checkUnknownFiles",
48
+ "run": "pnpm checkUnknownFiles",
46
49
  },
47
50
  Object {
48
- "run": "yarn lint",
51
+ "run": "pnpm lint",
49
52
  },
50
53
  Object {
51
54
  "env": Object {
@@ -53,7 +56,7 @@ Object {
53
56
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
54
57
  },
55
58
  "name": "Push changed files",
56
- "run": "yarn dw-ci push-changed-files",
59
+ "run": "pnpm dw-ci push-changed-files",
57
60
  },
58
61
  Object {
59
62
  "env": Object {
@@ -61,7 +64,7 @@ Object {
61
64
  },
62
65
  "if": "github.ref == 'refs/heads/master'",
63
66
  "name": "Release",
64
- "run": "yarn semantic-release",
67
+ "run": "pnpm semantic-release",
65
68
  },
66
69
  ],
67
70
  },
@@ -83,13 +86,16 @@ Object {
83
86
  },
84
87
  },
85
88
  Object {
86
- "run": "yarn --frozen-lockfile",
89
+ "run": "corepack enable",
90
+ },
91
+ Object {
92
+ "run": "pnpm install --frozen-lockfile",
87
93
  },
88
94
  Object {
89
95
  "env": Object {
90
96
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
91
97
  },
92
- "run": "yarn test",
98
+ "run": "pnpm test",
93
99
  },
94
100
  Object {
95
101
  "if": "failure()",
@@ -175,6 +181,9 @@ Object {
175
181
  "node-version": 20,
176
182
  },
177
183
  },
184
+ Object {
185
+ "run": "corepack enable",
186
+ },
178
187
  Object {
179
188
  "run": "git config --global user.email \\"actions@github.com\\"",
180
189
  },
@@ -182,13 +191,13 @@ Object {
182
191
  "run": "git config --global user.name \\"GitHub Actions\\"",
183
192
  },
184
193
  Object {
185
- "run": "yarn --frozen-lockfile",
194
+ "run": "pnpm install --frozen-lockfile",
186
195
  },
187
196
  Object {
188
- "run": "yarn checkUnknownFiles",
197
+ "run": "pnpm checkUnknownFiles",
189
198
  },
190
199
  Object {
191
- "run": "yarn lint",
200
+ "run": "pnpm lint",
192
201
  },
193
202
  Object {
194
203
  "env": Object {
@@ -196,7 +205,7 @@ Object {
196
205
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
197
206
  },
198
207
  "name": "Push changed files",
199
- "run": "yarn dw-ci push-changed-files",
208
+ "run": "pnpm dw-ci push-changed-files",
200
209
  },
201
210
  Object {
202
211
  "env": Object {
@@ -204,7 +213,7 @@ Object {
204
213
  },
205
214
  "if": "github.ref == 'refs/heads/master'",
206
215
  "name": "Release",
207
- "run": "yarn semantic-release",
216
+ "run": "pnpm semantic-release",
208
217
  },
209
218
  ],
210
219
  },
@@ -226,13 +235,16 @@ Object {
226
235
  },
227
236
  },
228
237
  Object {
229
- "run": "yarn --frozen-lockfile",
238
+ "run": "corepack enable",
239
+ },
240
+ Object {
241
+ "run": "pnpm install --frozen-lockfile",
230
242
  },
231
243
  Object {
232
244
  "env": Object {
233
245
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
234
246
  },
235
- "run": "yarn test",
247
+ "run": "pnpm test",
236
248
  },
237
249
  Object {
238
250
  "if": "failure()",
@@ -314,6 +326,9 @@ Object {
314
326
  "node-version": 20,
315
327
  },
316
328
  },
329
+ Object {
330
+ "run": "corepack enable",
331
+ },
317
332
  Object {
318
333
  "run": "git config --global user.email \\"actions@github.com\\"",
319
334
  },
@@ -321,13 +336,13 @@ Object {
321
336
  "run": "git config --global user.name \\"GitHub Actions\\"",
322
337
  },
323
338
  Object {
324
- "run": "yarn --frozen-lockfile",
339
+ "run": "pnpm install --frozen-lockfile",
325
340
  },
326
341
  Object {
327
- "run": "yarn checkUnknownFiles",
342
+ "run": "pnpm checkUnknownFiles",
328
343
  },
329
344
  Object {
330
- "run": "yarn lint",
345
+ "run": "pnpm lint",
331
346
  },
332
347
  Object {
333
348
  "env": Object {
@@ -335,7 +350,7 @@ Object {
335
350
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
336
351
  },
337
352
  "name": "Push changed files",
338
- "run": "yarn dw-ci push-changed-files",
353
+ "run": "pnpm dw-ci push-changed-files",
339
354
  },
340
355
  Object {
341
356
  "env": Object {
@@ -343,7 +358,7 @@ Object {
343
358
  },
344
359
  "if": "github.ref == 'refs/heads/master'",
345
360
  "name": "Release",
346
- "run": "yarn semantic-release",
361
+ "run": "pnpm semantic-release",
347
362
  },
348
363
  ],
349
364
  },
@@ -365,13 +380,16 @@ Object {
365
380
  },
366
381
  },
367
382
  Object {
368
- "run": "yarn --frozen-lockfile",
383
+ "run": "corepack enable",
384
+ },
385
+ Object {
386
+ "run": "pnpm install --frozen-lockfile",
369
387
  },
370
388
  Object {
371
389
  "env": Object {
372
390
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
373
391
  },
374
- "run": "yarn test",
392
+ "run": "pnpm test",
375
393
  },
376
394
  Object {
377
395
  "if": "failure()",
@@ -448,6 +466,9 @@ Object {
448
466
  "node-version": 20,
449
467
  },
450
468
  },
469
+ Object {
470
+ "run": "corepack enable",
471
+ },
451
472
  Object {
452
473
  "run": "git config --global user.email \\"actions@github.com\\"",
453
474
  },
@@ -455,13 +476,13 @@ Object {
455
476
  "run": "git config --global user.name \\"GitHub Actions\\"",
456
477
  },
457
478
  Object {
458
- "run": "yarn --frozen-lockfile",
479
+ "run": "pnpm install --frozen-lockfile",
459
480
  },
460
481
  Object {
461
482
  "env": Object {
462
483
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
463
484
  },
464
- "run": "yarn test",
485
+ "run": "pnpm test",
465
486
  },
466
487
  Object {
467
488
  "if": "failure()",
@@ -478,7 +499,7 @@ Object {
478
499
  },
479
500
  },
480
501
  Object {
481
- "run": "yarn checkUnknownFiles",
502
+ "run": "pnpm checkUnknownFiles",
482
503
  },
483
504
  Object {
484
505
  "env": Object {
@@ -486,7 +507,7 @@ Object {
486
507
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
487
508
  },
488
509
  "name": "Push changed files",
489
- "run": "yarn dw-ci push-changed-files",
510
+ "run": "pnpm dw-ci push-changed-files",
490
511
  },
491
512
  Object {
492
513
  "env": Object {
@@ -494,7 +515,7 @@ Object {
494
515
  },
495
516
  "if": "github.ref == 'refs/heads/master'",
496
517
  "name": "Release",
497
- "run": "yarn semantic-release",
518
+ "run": "pnpm semantic-release",
498
519
  },
499
520
  ],
500
521
  },
@@ -543,6 +564,9 @@ Object {
543
564
  "node-version": 20,
544
565
  },
545
566
  },
567
+ Object {
568
+ "run": "corepack enable",
569
+ },
546
570
  Object {
547
571
  "run": "git config --global user.email \\"actions@github.com\\"",
548
572
  },
@@ -550,13 +574,13 @@ Object {
550
574
  "run": "git config --global user.name \\"GitHub Actions\\"",
551
575
  },
552
576
  Object {
553
- "run": "yarn --frozen-lockfile",
577
+ "run": "pnpm install --frozen-lockfile",
554
578
  },
555
579
  Object {
556
- "run": "yarn checkUnknownFiles",
580
+ "run": "pnpm checkUnknownFiles",
557
581
  },
558
582
  Object {
559
- "run": "yarn lint",
583
+ "run": "pnpm lint",
560
584
  },
561
585
  Object {
562
586
  "env": Object {
@@ -564,7 +588,7 @@ Object {
564
588
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
565
589
  },
566
590
  "name": "Push changed files",
567
- "run": "yarn dw-ci push-changed-files",
591
+ "run": "pnpm dw-ci push-changed-files",
568
592
  },
569
593
  Object {
570
594
  "env": Object {
@@ -573,7 +597,7 @@ Object {
573
597
  },
574
598
  "if": "github.ref == 'refs/heads/master'",
575
599
  "name": "Release",
576
- "run": "yarn semantic-release",
600
+ "run": "pnpm semantic-release",
577
601
  },
578
602
  ],
579
603
  },
@@ -595,13 +619,16 @@ Object {
595
619
  },
596
620
  },
597
621
  Object {
598
- "run": "yarn --frozen-lockfile",
622
+ "run": "corepack enable",
623
+ },
624
+ Object {
625
+ "run": "pnpm install --frozen-lockfile",
599
626
  },
600
627
  Object {
601
628
  "env": Object {
602
629
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
603
630
  },
604
- "run": "yarn test",
631
+ "run": "pnpm test",
605
632
  },
606
633
  Object {
607
634
  "if": "failure()",
@@ -687,6 +714,9 @@ Object {
687
714
  "node-version": 20,
688
715
  },
689
716
  },
717
+ Object {
718
+ "run": "corepack enable",
719
+ },
690
720
  Object {
691
721
  "run": "git config --global user.email \\"actions@github.com\\"",
692
722
  },
@@ -694,13 +724,13 @@ Object {
694
724
  "run": "git config --global user.name \\"GitHub Actions\\"",
695
725
  },
696
726
  Object {
697
- "run": "yarn --frozen-lockfile",
727
+ "run": "pnpm install --frozen-lockfile",
698
728
  },
699
729
  Object {
700
- "run": "yarn checkUnknownFiles",
730
+ "run": "pnpm checkUnknownFiles",
701
731
  },
702
732
  Object {
703
- "run": "yarn lint",
733
+ "run": "pnpm lint",
704
734
  },
705
735
  Object {
706
736
  "env": Object {
@@ -708,7 +738,7 @@ Object {
708
738
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
709
739
  },
710
740
  "name": "Push changed files",
711
- "run": "yarn dw-ci push-changed-files",
741
+ "run": "pnpm dw-ci push-changed-files",
712
742
  },
713
743
  Object {
714
744
  "env": Object {
@@ -717,7 +747,7 @@ Object {
717
747
  },
718
748
  "if": "github.ref == 'refs/heads/master'",
719
749
  "name": "Release",
720
- "run": "yarn semantic-release",
750
+ "run": "pnpm semantic-release",
721
751
  },
722
752
  ],
723
753
  },
@@ -739,14 +769,17 @@ Object {
739
769
  },
740
770
  },
741
771
  Object {
742
- "run": "yarn --frozen-lockfile",
772
+ "run": "corepack enable",
773
+ },
774
+ Object {
775
+ "run": "pnpm install --frozen-lockfile",
743
776
  },
744
777
  Object {
745
778
  "env": Object {
746
779
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
747
780
  "TEST_FOO": "\${{ secrets.TEST_FOO }}",
748
781
  },
749
- "run": "yarn test",
782
+ "run": "pnpm test",
750
783
  },
751
784
  Object {
752
785
  "if": "failure()",
@@ -826,6 +859,9 @@ Object {
826
859
  "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
827
860
  },
828
861
  },
862
+ Object {
863
+ "run": "corepack enable",
864
+ },
829
865
  Object {
830
866
  "uses": "actions/setup-node@v4",
831
867
  "with": Object {
@@ -877,6 +913,9 @@ Object {
877
913
  "lfs": true,
878
914
  },
879
915
  },
916
+ Object {
917
+ "run": "corepack enable",
918
+ },
880
919
  Object {
881
920
  "uses": "actions/setup-node@v4",
882
921
  "with": Object {
@@ -968,6 +1007,9 @@ Object {
968
1007
  "node-version": 14,
969
1008
  },
970
1009
  },
1010
+ Object {
1011
+ "run": "corepack enable",
1012
+ },
971
1013
  Object {
972
1014
  "run": "git config --global user.email \\"actions@github.com\\"",
973
1015
  },
@@ -975,7 +1017,7 @@ Object {
975
1017
  "run": "git config --global user.name \\"GitHub Actions\\"",
976
1018
  },
977
1019
  Object {
978
- "run": "yarn --frozen-lockfile",
1020
+ "run": "pnpm install --frozen-lockfile",
979
1021
  },
980
1022
  Object {
981
1023
  "env": Object {
@@ -983,7 +1025,7 @@ Object {
983
1025
  "TEST_BAR": "\${{ secrets.TEST_BAR }}",
984
1026
  "TEST_FOO": "\${{ secrets.TEST_FOO }}",
985
1027
  },
986
- "run": "yarn test",
1028
+ "run": "pnpm test",
987
1029
  },
988
1030
  Object {
989
1031
  "if": "failure()",
@@ -1000,7 +1042,7 @@ Object {
1000
1042
  },
1001
1043
  },
1002
1044
  Object {
1003
- "run": "yarn checkUnknownFiles",
1045
+ "run": "pnpm checkUnknownFiles",
1004
1046
  },
1005
1047
  Object {
1006
1048
  "env": Object {
@@ -1008,7 +1050,7 @@ Object {
1008
1050
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1009
1051
  },
1010
1052
  "name": "Push changed files",
1011
- "run": "yarn dw-ci push-changed-files",
1053
+ "run": "pnpm dw-ci push-changed-files",
1012
1054
  },
1013
1055
  Object {
1014
1056
  "env": Object {
@@ -1016,7 +1058,7 @@ Object {
1016
1058
  },
1017
1059
  "if": "github.ref == 'refs/heads/master'",
1018
1060
  "name": "Release",
1019
- "run": "yarn semantic-release",
1061
+ "run": "pnpm semantic-release",
1020
1062
  },
1021
1063
  ],
1022
1064
  },
@@ -1060,6 +1102,9 @@ Object {
1060
1102
  "node-version": 14,
1061
1103
  },
1062
1104
  },
1105
+ Object {
1106
+ "run": "corepack enable",
1107
+ },
1063
1108
  Object {
1064
1109
  "run": "git config --global user.email \\"actions@github.com\\"",
1065
1110
  },
@@ -1067,13 +1112,13 @@ Object {
1067
1112
  "run": "git config --global user.name \\"GitHub Actions\\"",
1068
1113
  },
1069
1114
  Object {
1070
- "run": "yarn --frozen-lockfile",
1115
+ "run": "pnpm install --frozen-lockfile",
1071
1116
  },
1072
1117
  Object {
1073
1118
  "env": Object {
1074
1119
  "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1075
1120
  },
1076
- "run": "yarn test",
1121
+ "run": "pnpm test",
1077
1122
  },
1078
1123
  Object {
1079
1124
  "if": "failure()",
@@ -1090,7 +1135,7 @@ Object {
1090
1135
  },
1091
1136
  },
1092
1137
  Object {
1093
- "run": "yarn checkUnknownFiles",
1138
+ "run": "pnpm checkUnknownFiles",
1094
1139
  },
1095
1140
  Object {
1096
1141
  "env": Object {
@@ -1098,7 +1143,7 @@ Object {
1098
1143
  "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1099
1144
  },
1100
1145
  "name": "Push changed files",
1101
- "run": "yarn dw-ci push-changed-files",
1146
+ "run": "pnpm dw-ci push-changed-files",
1102
1147
  },
1103
1148
  Object {
1104
1149
  "env": Object {
@@ -1106,7 +1151,7 @@ Object {
1106
1151
  },
1107
1152
  "if": "github.ref == 'refs/heads/master'",
1108
1153
  "name": "Release",
1109
- "run": "yarn semantic-release",
1154
+ "run": "pnpm semantic-release",
1110
1155
  },
1111
1156
  ],
1112
1157
  },
@@ -1,3 +1,3 @@
1
1
  export default [{
2
- run: 'yarn checkUnknownFiles'
2
+ run: 'pnpm checkUnknownFiles'
3
3
  }];
@@ -10,7 +10,7 @@ export default (config => {
10
10
  GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
11
11
  },
12
12
  name: 'Push changed files',
13
- run: `yarn ${ci} push-changed-files`
13
+ run: `pnpm ${ci} push-changed-files`
14
14
  }, ...(_ref = [...config.preDeploySteps, {
15
15
  env: {
16
16
  GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}',
@@ -20,7 +20,7 @@ export default (config => {
20
20
  ...config.deployEnv
21
21
  },
22
22
  name: 'Release',
23
- run: 'yarn semantic-release'
23
+ run: 'pnpm semantic-release'
24
24
  }], map(step => ({
25
25
  if: "github.ref == 'refs/heads/master'",
26
26
  ...step
@@ -24,7 +24,7 @@ export default (() => {
24
24
  ...(_ref3 = (_envVariableNames = envVariableNames, map(name => [name, `\${{ secrets.${name} }}`])(_envVariableNames)), fromPairs(_ref3)),
25
25
  GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
26
26
  },
27
- run: 'yarn test'
27
+ run: 'pnpm test'
28
28
  }, {
29
29
  if: 'failure()',
30
30
  uses: gitHubAction`actions/upload-artifact@v3`,
@@ -27,14 +27,16 @@ export default (config => {
27
27
  with: {
28
28
  'node-version': config.nodeVersion
29
29
  }
30
+ }, {
31
+ run: 'corepack enable'
30
32
  }, {
31
33
  run: 'git config --global user.email "actions@github.com"'
32
34
  }, {
33
35
  run: 'git config --global user.name "GitHub Actions"'
34
36
  }, {
35
- run: 'yarn --frozen-lockfile'
37
+ run: 'pnpm install --frozen-lockfile'
36
38
  }, ...checkUnknownFilesSteps, {
37
- run: 'yarn lint'
39
+ run: 'pnpm lint'
38
40
  }, ...getReleaseSteps(config)]
39
41
  },
40
42
  test: {
@@ -52,7 +54,9 @@ export default (config => {
52
54
  'node-version': '${{ matrix.node }}'
53
55
  }
54
56
  }, {
55
- run: 'yarn --frozen-lockfile'
57
+ run: 'corepack enable'
58
+ }, {
59
+ run: 'pnpm install --frozen-lockfile'
56
60
  }, ...getTestSteps(), ...(_coverageSteps = coverageSteps, map(step => ({
57
61
  if: `matrix.os == 'ubuntu-latest' && matrix.node == ${config.nodeVersion}`,
58
62
  ...step
@@ -20,12 +20,14 @@ export default (config => ({
20
20
  with: {
21
21
  'node-version': config.nodeVersion
22
22
  }
23
+ }, {
24
+ run: 'corepack enable'
23
25
  }, {
24
26
  run: 'git config --global user.email "actions@github.com"'
25
27
  }, {
26
28
  run: 'git config --global user.name "GitHub Actions"'
27
29
  }, {
28
- run: 'yarn --frozen-lockfile'
30
+ run: 'pnpm install --frozen-lockfile'
29
31
  }, ...getTestSteps(), ...coverageSteps, ...checkUnknownFilesSteps, ...getReleaseSteps(config)]
30
32
  }
31
33
  }));
@@ -7,13 +7,16 @@ Object {
7
7
  },
8
8
  "tasks": Array [
9
9
  Object {
10
- "before": "echo \\"export PUPPETEER_CACHE_DIR=/workspace/foo/node_modules/.cache/puppeteer\\" >> /home/gitpod/.bashrc
10
+ "before": "echo \\"corepack enable\\" >> /home/gitpod/.bashrc
11
+ echo \\"export COREPACK_ENABLE_DOWNLOAD_PROMPT=0\\" >> /home/gitpod/.bashrc
12
+ gitpod-env-per-project >> /home/gitpod/.bashrc
13
+ echo \\"export PUPPETEER_CACHE_DIR=/workspace/foo/node_modules/.cache/puppeteer\\" >> /home/gitpod/.bashrc
11
14
  echo \\"export PLAYWRIGHT_BROWSERS_PATH=0\\" >> /home/gitpod/.bashrc
12
- gitpod-env-per-project >> /home/gitpod/.bashrc && source /home/gitpod/.bashrc",
15
+ source /home/gitpod/.bashrc",
13
16
  "init": "git config --global user.name \\"Sebastian Landwehr\\"
14
17
  git config diff.lfs.textconv cat
15
18
  git lfs pull
16
- yarn --frozen-lockfile",
19
+ pnpm install --frozen-lockfile",
17
20
  },
18
21
  ],
19
22
  "vscode": Object {
@@ -12,15 +12,18 @@ export default function () {
12
12
  // after restarts, we need to store it in the workspace folder
13
13
  // https://www.gitpod.io/docs/configure/workspaces/workspace-lifecycle#workspace-stopped
14
14
  before: endent`
15
+ echo "corepack enable" >> /home/gitpod/.bashrc
16
+ echo "export COREPACK_ENABLE_DOWNLOAD_PROMPT=0" >> /home/gitpod/.bashrc
17
+ gitpod-env-per-project >> /home/gitpod/.bashrc
15
18
  echo "export PUPPETEER_CACHE_DIR=/workspace/${packageName}/node_modules/.cache/puppeteer" >> /home/gitpod/.bashrc
16
19
  echo "export PLAYWRIGHT_BROWSERS_PATH=0" >> /home/gitpod/.bashrc
17
- gitpod-env-per-project >> /home/gitpod/.bashrc && source /home/gitpod/.bashrc
20
+ source /home/gitpod/.bashrc
18
21
  `,
19
22
  init: endent`
20
23
  git config --global user.name "${personalData.name}"
21
24
  git config diff.lfs.textconv cat
22
25
  git lfs pull
23
- yarn --frozen-lockfile
26
+ pnpm install --frozen-lockfile
24
27
  `
25
28
  }],
26
29
  vscode: {
@@ -13,8 +13,6 @@ export default function () {
13
13
  RUN bash -c 'source $HOME/.nvm/nvm.sh && nvm install ${this.config.nodeVersion}'
14
14
  RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
15
15
 
16
- RUN echo "\\nexport PATH=$(yarn global bin):\\$PATH" >> /home/gitpod/.bashrc
17
-
18
16
  RUN yarn global add gitpod-env-per-project @babel/node @babel/core
19
17
 
20
18
  RUN sudo apt-get install -y graphviz
@@ -28,6 +28,7 @@ export default function () {
28
28
  keywords: true,
29
29
  name: true,
30
30
  optionalDependencies: true,
31
+ packageManager: true,
31
32
  peerDependencies: true,
32
33
  private: true,
33
34
  publishConfig: true,
@@ -27,7 +27,7 @@ Object {
27
27
  "coverage": true,
28
28
  "foo": true,
29
29
  "node_modules": true,
30
- "yarn.lock": true,
30
+ "pnpm-lock.yaml": true,
31
31
  },
32
32
  "workbench.editor.enablePreview": false,
33
33
  }
@@ -12,6 +12,7 @@ import deprecatedDependenciesIssueTemplate from "./github-deprecated-dependencie
12
12
  import githubFunding from "./github-funding.js";
13
13
  import githubLabelsConfig from "./github-labels.js";
14
14
  import githubSyncLabelsConfig from "./github-sync-labels.js";
15
+ import npmrc from "./npmrc.js";
15
16
  export default function () {
16
17
  var _babelConfig, _commitlintConfig, _commitizenConfig, _this$getGithubCodesp, _this$getEslintConfig, _githubFunding, _sortKeys, _sortKeys2, _sortKeys3, _sortKeys4, _sortKeys5, _ref, _this$getGitignoreCon, _this$getGitpodConfig, _this$getReleaseConfi, _sortKeys6, _this$getVscodeConfig, _ref2, _packageConfig;
17
18
  const packageConfig = this.getPackageConfig();
@@ -53,6 +54,7 @@ export default function () {
53
54
  '.gitignore': (_ref = (_this$getGitignoreCon = this.getGitignoreConfig(), map(entry => `${entry}\n`)(_this$getGitignoreCon)), join('')(_ref)),
54
55
  '.gitpod.Dockerfile': this.getGitpodDockerfile(),
55
56
  '.gitpod.yml': (_this$getGitpodConfig = this.getGitpodConfig(), yaml.stringify(_this$getGitpodConfig)),
57
+ '.npmrc': `${npmrc}\n`,
56
58
  '.releaserc.json': `${(_this$getReleaseConfi = this.getReleaseConfig(), jsonToString({
57
59
  indent: 2
58
60
  })(_this$getReleaseConfi))}\n`,
@@ -0,0 +1 @@
1
+ export default 'node-linker=hoisted';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "11.1.2",
3
+ "version": "11.2.1",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -9,9 +9,7 @@
9
9
  "type": "module",
10
10
  "exports": "./dist/index.js",
11
11
  "main": "dist/index.js",
12
- "bin": {
13
- "base": "./dist/cli.js"
14
- },
12
+ "bin": "./dist/cli.js",
15
13
  "files": [
16
14
  "dist"
17
15
  ],
@@ -48,7 +46,7 @@
48
46
  "cosmiconfig": "^9.0.0",
49
47
  "cz-conventional-changelog": "^3.1.0",
50
48
  "deepmerge": "^4.2.2",
51
- "depcheck": "npm:@dword-design/depcheck",
49
+ "depcheck": "npm:@dword-design/depcheck@^0",
52
50
  "depcheck-detector-bin-name": "^1.0.0",
53
51
  "depcheck-detector-execa": "^4.0.0",
54
52
  "depcheck-detector-package-name": "^3.0.0",
@@ -67,14 +65,14 @@
67
65
  "jiti": "^1.16.0",
68
66
  "make-cli": "^4.0.0",
69
67
  "mocha": "^10.2.0",
70
- "mocha-spec-reporter-with-file-names": "npm:@dword-design/mocha-spec-reporter-with-file-names",
68
+ "mocha-spec-reporter-with-file-names": "npm:@dword-design/mocha-spec-reporter-with-file-names@^0",
71
69
  "mocha-ui-exports-auto-describe": "^3.0.0",
72
70
  "nyc": "^15.0.0",
73
71
  "output-files": "^2.0.0",
74
72
  "package-name-regex": "^4.0.0",
75
73
  "parse-git-config": "^3.0.0",
76
74
  "parse-packagejson-name": "^1.0.1",
77
- "plugin-name-to-package-name": "npm:@dword-design/plugin-name-to-package-name",
75
+ "plugin-name-to-package-name": "npm:@dword-design/plugin-name-to-package-name@^0",
78
76
  "safe-readfile": "^1.0.2",
79
77
  "semantic-release": "^22.0.12",
80
78
  "sort-keys": "^5.0.0",
@@ -90,13 +88,13 @@
90
88
  "@dword-design/chdir": "^3.0.0",
91
89
  "@dword-design/tester": "^2.0.0",
92
90
  "@dword-design/tester-plugin-tmp-dir": "^2.0.0",
93
- "is-docker": "^3.0.0",
94
91
  "node-version": "^3.0.0",
95
92
  "p-event": "^6.0.0",
96
93
  "rimraf": "^5.0.1",
97
94
  "sharp": "^0.32.1",
98
95
  "unify-mocha-output": "^2.0.0"
99
96
  },
97
+ "packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247",
100
98
  "engines": {
101
99
  "node": ">=18"
102
100
  },