@dword-design/base 12.0.10 → 12.0.11
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,13 @@ 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' ?
|
|
26
|
+
}), ...Object.keys(this.config.testRunner === 'playwright' ? {
|
|
27
|
+
'**/__image_snapshots__': true,
|
|
28
|
+
'**/__snapshots__': true,
|
|
29
|
+
'playwright.config.js': true
|
|
30
|
+
} : {
|
|
31
|
+
'**/*-snapshots/**': true // For some reason without the trailing ** didn't work
|
|
32
|
+
}), ...this.config.allowedMatches];
|
|
30
33
|
const unknownFiles = (_ref = (_globby = globby('**', {
|
|
31
34
|
dot: true,
|
|
32
35
|
gitignore: true,
|