@dword-design/base 12.0.10 → 12.0.12

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.
@@ -5,9 +5,6 @@ import UnknownFilesError from "./unknown-files-error.js";
5
5
  export default async function () {
6
6
  var _this$generatedFiles, _ref, _globby;
7
7
  const allowedMatches = [...(_this$generatedFiles = this.generatedFiles, keys(_this$generatedFiles)), ...Object.keys({
8
- '**/*-snapshots': true,
9
- '**/__image_snapshots__': true,
10
- '**/__snapshots__': true,
11
8
  '.baserc.json': true,
12
9
  '.env.schema.json': true,
13
10
  '.git': true,
@@ -26,7 +23,14 @@ export default async function () {
26
23
  'pnpm-lock.yaml': true,
27
24
  'pnpm-workspace.yaml': true,
28
25
  'types.d.ts': true
29
- }), ...(this.config.testRunner === 'playwright' ? ['playwright.config.js'] : []), ...this.config.allowedMatches];
26
+ }), ...Object.keys(this.config.testRunner === 'playwright' ? {
27
+ '**/*-snapshots/**': true,
28
+ // For some reason without the trailing ** didn't work
29
+ 'playwright.config.js': true
30
+ } : {
31
+ '**/__image_snapshots__': true,
32
+ '**/__snapshots__': true
33
+ }), ...this.config.allowedMatches];
30
34
  const unknownFiles = (_ref = (_globby = globby('**', {
31
35
  dot: true,
32
36
  gitignore: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "12.0.10",
3
+ "version": "12.0.12",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",