@dword-design/base 11.3.0 → 11.3.2

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.
@@ -1,11 +1,31 @@
1
1
  import { filter, fromPairs, keys, map } from '@dword-design/functions';
2
2
  import { globby } from 'globby';
3
3
  import ignore from 'ignore';
4
- import commonAllowedMatches from "./common-allowed-matches.js";
5
4
  import UnknownFilesError from "./unknown-files-error.js";
6
5
  export default async function () {
7
6
  var _this$generatedFiles, _ref, _globby;
8
- const allowedMatches = [...(_this$generatedFiles = this.generatedFiles, keys(_this$generatedFiles)), ...commonAllowedMatches, ...this.config.allowedMatches];
7
+ const allowedMatches = [...(_this$generatedFiles = this.generatedFiles, keys(_this$generatedFiles)), ...Object.keys({
8
+ '.baserc.json': true,
9
+ '.env.schema.json': true,
10
+ '.eslintrc.json': true,
11
+ '.git': true,
12
+ '.husky/_': true,
13
+ '.husky/commit-msg': true,
14
+ '.husky/post-checkout': true,
15
+ '.husky/post-commit': true,
16
+ '.husky/post-merge': true,
17
+ '.husky/pre-push': true,
18
+ 'CHANGELOG.md': true,
19
+ PRCHECKLIST: true,
20
+ __image_snapshots__: true,
21
+ __snapshots__: true,
22
+ demo: true,
23
+ doc: true,
24
+ 'global-test-hooks.js': true,
25
+ 'pnpm-lock.yaml': true,
26
+ 'pnpm-workspace.yaml': true,
27
+ 'types.d.ts': true
28
+ }), ...(this.config.testRunner === 'playwright' ? ['playwright.config.js'] : []), ...this.config.allowedMatches];
9
29
  const unknownFiles = (_ref = (_globby = globby('**', {
10
30
  dot: true,
11
31
  gitignore: true,
@@ -30,7 +30,7 @@ export default async function (options) {
30
30
  await this.depcheck();
31
31
  }
32
32
  const runDockerTests = !isCI() || !(_ref = ['win32', 'darwin'], includes(process.platform)(_ref));
33
- return execa(this.packageConfig.type === 'module' ? packageName`c8` : packageName`nyc`, this.config.testRunner === 'playwright' ? ['playwright', 'test', ...(options.updateSnapshots ? ['--update-snapshots'] : []), ...(options.ui ? ['--ui'] : []), ...(options.uiHost ? ['--ui-host', options.uiHost] : []), ...(options.grep ? ['--grep', options.grep] : []), '--timeout', 130000,
33
+ return execa(this.packageConfig.type === 'module' ? packageName`c8` : packageName`nyc`, this.config.testRunner === 'playwright' ? ['playwright', 'test', ...(options.updateSnapshots ? ['--update-snapshots'] : []), ...(options.ui ? ['--ui'] : []), ...(options.uiHost ? ['--ui-host', options.uiHost] : []), ...(options.grep ? ['--grep', options.grep] : []), '--timeout', 130000, '--trace', 'retain-on-failure',
34
34
  /**
35
35
  * Reporter set to dot in CI environments by default.
36
36
  * See https://github.com/microsoft/playwright/blob/42ade54975f6990c41cddc7b6e11c46a36648d0d/packages/playwright/src/common/config.ts#L301.
@@ -109,7 +109,8 @@ Object {
109
109
  "uses": "actions/upload-artifact@v4",
110
110
  "with": Object {
111
111
  "name": "Image Snapshot Diffs",
112
- "path": "**/__image_snapshots__/__diff_output__",
112
+ "path": "**/__image_snapshots__/__diff_output__
113
+ test-results",
113
114
  },
114
115
  },
115
116
  Object {
@@ -265,7 +266,8 @@ Object {
265
266
  "uses": "actions/upload-artifact@v4",
266
267
  "with": Object {
267
268
  "name": "Image Snapshot Diffs",
268
- "path": "**/__image_snapshots__/__diff_output__",
269
+ "path": "**/__image_snapshots__/__diff_output__
270
+ test-results",
269
271
  },
270
272
  },
271
273
  Object {
@@ -417,7 +419,8 @@ Object {
417
419
  "uses": "actions/upload-artifact@v4",
418
420
  "with": Object {
419
421
  "name": "Image Snapshot Diffs",
420
- "path": "**/__image_snapshots__/__diff_output__",
422
+ "path": "**/__image_snapshots__/__diff_output__
423
+ test-results",
421
424
  },
422
425
  },
423
426
  Object {
@@ -514,7 +517,8 @@ Object {
514
517
  "uses": "actions/upload-artifact@v4",
515
518
  "with": Object {
516
519
  "name": "Image Snapshot Diffs",
517
- "path": "**/__image_snapshots__/__diff_output__",
520
+ "path": "**/__image_snapshots__/__diff_output__
521
+ test-results",
518
522
  },
519
523
  },
520
524
  Object {
@@ -667,7 +671,8 @@ Object {
667
671
  "uses": "actions/upload-artifact@v4",
668
672
  "with": Object {
669
673
  "name": "Image Snapshot Diffs",
670
- "path": "**/__image_snapshots__/__diff_output__",
674
+ "path": "**/__image_snapshots__/__diff_output__
675
+ test-results",
671
676
  },
672
677
  },
673
678
  Object {
@@ -825,7 +830,8 @@ Object {
825
830
  "uses": "actions/upload-artifact@v4",
826
831
  "with": Object {
827
832
  "name": "Image Snapshot Diffs",
828
- "path": "**/__image_snapshots__/__diff_output__",
833
+ "path": "**/__image_snapshots__/__diff_output__
834
+ test-results",
829
835
  },
830
836
  },
831
837
  Object {
@@ -1075,7 +1081,8 @@ Object {
1075
1081
  "uses": "actions/upload-artifact@v4",
1076
1082
  "with": Object {
1077
1083
  "name": "Image Snapshot Diffs",
1078
- "path": "**/__image_snapshots__/__diff_output__",
1084
+ "path": "**/__image_snapshots__/__diff_output__
1085
+ test-results",
1079
1086
  },
1080
1087
  },
1081
1088
  Object {
@@ -1172,7 +1179,8 @@ Object {
1172
1179
  "uses": "actions/upload-artifact@v4",
1173
1180
  "with": Object {
1174
1181
  "name": "Image Snapshot Diffs",
1175
- "path": "**/__image_snapshots__/__diff_output__",
1182
+ "path": "**/__image_snapshots__/__diff_output__
1183
+ test-results",
1176
1184
  },
1177
1185
  },
1178
1186
  Object {
@@ -1,4 +1,4 @@
1
- import { fromPairs, keys, map } from '@dword-design/functions';
1
+ import { endent, fromPairs, keys, map } from '@dword-design/functions';
2
2
  import { constantCase } from 'change-case';
3
3
  import { findUpStop, findUpSync } from 'find-up';
4
4
  import fs from 'fs-extra';
@@ -30,7 +30,10 @@ export default () => {
30
30
  uses: gitHubAction`actions/upload-artifact@v4`,
31
31
  with: {
32
32
  name: 'Image Snapshot Diffs',
33
- path: '**/__image_snapshots__/__diff_output__'
33
+ path: endent`
34
+ **/__image_snapshots__/__diff_output__
35
+ test-results
36
+ `
34
37
  }
35
38
  }];
36
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "11.3.0",
3
+ "version": "11.3.2",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",
@@ -1,22 +0,0 @@
1
- export default Object.keys({
2
- '.baserc.json': true,
3
- '.env.schema.json': true,
4
- '.eslintrc.json': true,
5
- '.git': true,
6
- '.husky/_': true,
7
- '.husky/commit-msg': true,
8
- '.husky/post-checkout': true,
9
- '.husky/post-commit': true,
10
- '.husky/post-merge': true,
11
- '.husky/pre-push': true,
12
- 'CHANGELOG.md': true,
13
- PRCHECKLIST: true,
14
- __image_snapshots__: true,
15
- __snapshots__: true,
16
- demo: true,
17
- doc: true,
18
- 'global-test-hooks.js': true,
19
- 'pnpm-lock.yaml': true,
20
- 'pnpm-workspace.yaml': true,
21
- 'types.d.ts': true
22
- });