@dword-design/base 11.3.1 → 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)), ...
|
|
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,
|
package/package.json
CHANGED
|
@@ -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
|
-
});
|