@yarn-tool/static-file 1.0.103 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,45 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.2](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@2.0.1...@yarn-tool/static-file@2.0.2) (2022-07-31)
7
+
8
+
9
+ ### ✨ Features
10
+
11
+ * update static files ([2da4c65](https://github.com/bluelovers/ws-yarn-workspaces/commit/2da4c65772856fa729bee66893dd4e347f7ede05))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.0.1](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@2.0.0...@yarn-tool/static-file@2.0.1) (2022-07-11)
18
+
19
+
20
+ ### ✨ Features
21
+
22
+ * Yarn Lock Changes ([0c3f6fc](https://github.com/bluelovers/ws-yarn-workspaces/commit/0c3f6fc1ec95dc310007958008e39b1d09b22e86))
23
+
24
+
25
+ ### 🔖 Miscellaneous
26
+
27
+ * . ([eb33254](https://github.com/bluelovers/ws-yarn-workspaces/commit/eb33254943fd54d5fe54f9c36989670ec0e44d1b))
28
+ * . ([9bf581b](https://github.com/bluelovers/ws-yarn-workspaces/commit/9bf581bf4951c76d9556e04f3c8c84989b217ba4))
29
+
30
+
31
+
32
+
33
+
34
+ # [2.0.0](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.103...@yarn-tool/static-file@2.0.0) (2022-07-07)
35
+
36
+
37
+ ### ✨ Features
38
+
39
+ * add `.yarnrc.yml` ([e611e7c](https://github.com/bluelovers/ws-yarn-workspaces/commit/e611e7ccf502b603b47a630d6266c56084875e81))
40
+
41
+
42
+
43
+
44
+
6
45
  ## [1.0.103](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.100...@yarn-tool/static-file@1.0.103) (2022-06-28)
7
46
 
8
47
 
@@ -0,0 +1,91 @@
1
+ ## Git Commit Message Convention
2
+
3
+ > This is adapted from [bluelovers's commit convention](https://github.com/bluelovers/conventional-changelog-bluelovers).
4
+
5
+ ### TL;DR:
6
+
7
+ 提交信息必須滿足以下正則表達式:
8
+
9
+ ```js
10
+ /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip|dep)(\(.+\))?: .{1,50}/
11
+ ```
12
+
13
+ ### Changelog
14
+
15
+ 後續會從 commit 信息自動生成 changelog
16
+
17
+ - feat: 新增/修改功能 (feature)。
18
+ - fix: 修補 bug (bug fix)。
19
+ - docs: 文件 (documentation)。
20
+ - style: 格式 (不影響程式碼運行的變動 white-space, formatting, missing semi colons, etc)。
21
+ - refactor: 重構 (既不是新增功能,也不是修補 bug 的程式碼變動)。
22
+ - perf: 改善效能 (A code change that improves performance)。
23
+ - test: 增加測試 (when adding missing tests)。
24
+ - chore: 建構程序或輔助工具的變動 (maintain)。
25
+ - revert: 撤銷回覆先前的 commit 例如:revert: type(scope): subject (回覆版本:xxxx)。
26
+
27
+ #### 注意
28
+
29
+ - 如果一次修改涉及到多個類型,選擇最貼切的。
30
+ - 對於涉及到某個或多個 issue 的修改,請在提交信息中附帶 `close #1234` 格式的標註。
31
+
32
+ ## Examples
33
+
34
+ ### 包含描述以及頁腳有重大變更的提交說明
35
+
36
+ ```conventionalcommit
37
+ feat: allow provided config object to extend other configs
38
+
39
+ BREAKING CHANGE: `extends` key in config file is now used for extending other config files
40
+ ```
41
+
42
+ ### 包含用以提示重大變更的 `!` 的提交說明
43
+
44
+ ```conventionalcommit
45
+ feat!: send an email to the customer when a product is shipped
46
+ ```
47
+
48
+ ### 包含作用範圍和提示重大變更的 `!` 的提交說明
49
+
50
+ ```conventionalcommit
51
+ feat(api)!: send an email to the customer when a product is shipped
52
+ ```
53
+
54
+ ### 包含 `!` 以及頁腳有重大變更的提交說明
55
+
56
+ ```conventionalcommit
57
+ chore!: drop support for Node 6
58
+
59
+ BREAKING CHANGE: use JavaScript features not available in Node 6.
60
+ ```
61
+
62
+ ### 不包含正文的提交說明
63
+
64
+ ```conventionalcommit
65
+ docs: correct spelling of CHANGELOG
66
+ ```
67
+
68
+ ### 包含作用範圍的提交說明
69
+
70
+ ```conventionalcommit
71
+ feat(lang): add polish language
72
+ ```
73
+
74
+ ### 正文有多段落以及有多個頁腳的提交說明
75
+
76
+ ```conventionalcommit
77
+ fix: prevent racing of requests
78
+
79
+ Introduce a request id and a reference to latest request. Dismiss
80
+ incoming responses other than from latest request.
81
+
82
+ Remove timeouts which were used to mitigate the racing issue but are
83
+ obsolete now.
84
+
85
+ Reviewed-by: Z
86
+ Refs: #123
87
+ ```
88
+
89
+ ## Reference
90
+
91
+ - https://www.conventionalcommits.org/zh-hant
@@ -14,6 +14,8 @@ on:
14
14
  - main
15
15
  - next
16
16
  - canary
17
+ paths:
18
+ - yarn.lock
17
19
 
18
20
  jobs:
19
21
  build:
@@ -0,0 +1,30 @@
1
+ name: Yarn Lock Changes
2
+ on:
3
+ pull_request:
4
+ paths:
5
+ - yarn.lock
6
+ # push:
7
+ # paths:
8
+ # - yarn.lock
9
+
10
+ jobs:
11
+ yarn_lock_changes:
12
+ runs-on: ubuntu-latest
13
+ # Permission overwrite is required for Dependabot PRs, see "Common issues" below.
14
+ permissions:
15
+ pull-requests: write
16
+ steps:
17
+ -
18
+ name: Checkout
19
+ uses: actions/checkout@v3
20
+ -
21
+ name: Yarn Lock Changes
22
+ # Please use `main` as version before the stable release will be published as `v1`.
23
+ uses: Simek/yarn-lock-changes@main
24
+ with:
25
+ token: ${{ secrets.GITHUB_TOKEN }}
26
+ # Optional inputs, can be deleted safely if you are happy with default values.
27
+ collapsibleThreshold: 25
28
+ failOnDowngrade: false
29
+ path: yarn.lock
30
+ updateComment: true
package/file/gitignore CHANGED
@@ -215,3 +215,6 @@ web_modules
215
215
  tsc-multi.json.tpl
216
216
 
217
217
  dist/*.umd.*.*s
218
+
219
+ /__root_ws.d.ts
220
+ /__root_ws.js
@@ -1,5 +1,9 @@
1
1
  // @ts-check
2
2
 
3
+ const { join } = require('path');
4
+ const { tryRealpath } = require('jest-util');
5
+ const { tmpdir } = require('os');
6
+
3
7
  /**
4
8
  * @param {string} name
5
9
  * @returns {string}
@@ -37,6 +41,27 @@ function _requireResolve(name)
37
41
  return result
38
42
  }
39
43
 
44
+ /**
45
+ * @returns {string}
46
+ * @see https://github.com/facebook/jest/blob/main/packages/jest-config/src/getCacheDirectory.ts
47
+ */
48
+ function getCacheDirectory()
49
+ {
50
+ const { getuid } = process;
51
+ const tmpdirPath = process.env['JEST_CACHE_DIRECTORY'] || join(tryRealpath(tmpdir()), 'jest');
52
+ if (getuid == null)
53
+ {
54
+ return tmpdirPath;
55
+ }
56
+ else
57
+ {
58
+ // On some platforms tmpdir() is `/tmp`, causing conflicts between different
59
+ // users and permission issues. Adding an additional subdivision by UID can
60
+ // help.
61
+ return `${tmpdirPath}_${getuid.call(process).toString(36)}`;
62
+ }
63
+ }
64
+
40
65
  const testExt = [
41
66
  'ts',
42
67
  'tsx',
@@ -48,20 +73,24 @@ const testExt = [
48
73
  // 'cjs',
49
74
  ].join('|');
50
75
 
76
+ const cacheDirectory = getCacheDirectory();
77
+
51
78
  console.info(`jest.config`);
52
79
  console.info(`- file: ${__filename}`);
53
80
  console.info(`- cwd: ${process.cwd()}`);
81
+ console.info(`- cacheDirectory: ${cacheDirectory}`);
54
82
 
55
83
  /**
56
84
  * // @type { import('@jest/types').Config.InitialOptions }
57
85
  * @type { import('ts-jest').InitialOptionsTsJest }
58
86
  */
59
- module.exports = {
87
+ const jestConfig = {
60
88
  globals: {
61
89
  'ts-jest': {
62
90
  //tsconfig: 'tsconfig.spec.json',
63
91
  },
64
92
  },
93
+ cacheDirectory,
65
94
  maxWorkers: 1,
66
95
  clearMocks: true,
67
96
  passWithNoTests: true,
@@ -91,6 +120,7 @@ module.exports = {
91
120
  '/__tests__/helpers/',
92
121
  '/__tests__/utils/',
93
122
  '__mocks__',
123
+ '/dist/',
94
124
  ],
95
125
  //testRunner: 'jest-circus/runner',
96
126
  setupFilesAfterEnv: [
@@ -118,12 +148,31 @@ module.exports = {
118
148
  '/node_modules/',
119
149
  '/__snapshots__/',
120
150
  '/__tests__/',
151
+ '/__test__/',
121
152
  //'**/node_modules/',
122
153
  //'**/__snapshots__/',
123
154
  //'**/__tests__/',
155
+ '/dist/',
156
+ '/test/',
157
+ '/fixture/',
124
158
  ],
125
159
  /**
126
160
  * https://github.com/facebook/jest/issues/9771#issuecomment-872764344
127
161
  */
128
162
  //resolver: 'jest-node-exports-resolver',
129
163
  }
164
+
165
+ try
166
+ {
167
+ let result = require.resolve('@bluelovers/jest-config');
168
+ if (result && !jestConfig.preset)
169
+ {
170
+ jestConfig.preset = result;
171
+ }
172
+ }
173
+ catch (e)
174
+ {
175
+
176
+ }
177
+
178
+ module.exports = jestConfig
package/file/npmignore CHANGED
@@ -35,12 +35,18 @@ node_modules
35
35
  /bin/**/*.d.cts
36
36
  /bin/*.d.cts
37
37
 
38
+ !./src/**/*.ts
39
+ !./src/**/*.cts
40
+ !./src/**/*.mts
41
+ !./src/**/*.tsx
42
+
38
43
  /src/**/*.d.ts
39
44
  /src/**/*.js
40
45
  /src/**/*.d.cts
41
46
  /src/**/*.d.mts
42
47
  /src/**/*.cjs
43
48
  /src/**/*.mjs
49
+ /src/**/*.jsx
44
50
 
45
51
  *.tgz
46
52
  /tsconfig.json.tpl
@@ -99,7 +105,9 @@ now.json
99
105
  *.spec.mjs
100
106
  *.spec.mts
101
107
 
108
+ *.spec.d.tsx
102
109
  *.spec.tsx
110
+
103
111
  __mocks__
104
112
  __tests__
105
113
  __snapshots__
@@ -0,0 +1,2 @@
1
+ #npmRegistryServer: "https://registry.npmjs.org/"
2
+ nodeLinker: node-modules
@@ -1,2 +1,2 @@
1
- export declare const __root: string;
1
+ export declare const __ROOT: string;
2
2
  export declare const isWin: boolean;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isWin = exports.__root = void 0;
3
+ exports.isWin = exports.__ROOT = void 0;
4
4
  const path_1 = require("path");
5
- exports.__root = (0, path_1.join)(__dirname, '..');
5
+ exports.__ROOT = (0, path_1.join)(__dirname, '..');
6
6
  exports.isWin = process.platform === "win32";
7
7
  //# sourceMappingURL=__root.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"__root.js","sourceRoot":"","sources":["__root.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAEf,QAAA,MAAM,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAE/B,QAAA,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC","sourcesContent":["import { join } from \"path\";\n\nexport const __root = join(__dirname, '..');\n\nexport const isWin = process.platform === \"win32\";\n"]}
1
+ {"version":3,"file":"__root.js","sourceRoot":"","sources":["__root.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAEf,QAAA,MAAM,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAE/B,QAAA,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC","sourcesContent":["import { join } from \"path\";\n\nexport const __ROOT = join(__dirname, '..');\n\nexport const isWin = process.platform === \"win32\";\n"]}
@@ -1,5 +1,5 @@
1
1
  import { join } from "path";
2
2
 
3
- export const __root = join(__dirname, '..');
3
+ export const __ROOT = join(__dirname, '..');
4
4
 
5
5
  export const isWin = process.platform === "win32";
@@ -1,2 +1,2 @@
1
- export declare const __root_ws: string;
1
+ export declare const __ROOT_WS: string;
2
2
  export declare const isWin: boolean;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isWin = exports.__root_ws = void 0;
3
+ exports.isWin = exports.__ROOT_WS = void 0;
4
4
  const path_1 = require("path");
5
- exports.__root_ws = (0, path_1.join)(__dirname);
5
+ exports.__ROOT_WS = (0, path_1.join)(__dirname);
6
6
  exports.isWin = process.platform === "win32";
7
7
  //# sourceMappingURL=__root_ws.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"__root_ws.js","sourceRoot":"","sources":["__root_ws.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAEf,QAAA,SAAS,GAAG,IAAA,WAAI,EAAC,SAAS,CAAC,CAAC;AAE5B,QAAA,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC","sourcesContent":["import { join } from \"path\";\n\nexport const __root_ws = join(__dirname);\n\nexport const isWin = process.platform === \"win32\";\n"]}
1
+ {"version":3,"file":"__root_ws.js","sourceRoot":"","sources":["__root_ws.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAEf,QAAA,SAAS,GAAG,IAAA,WAAI,EAAC,SAAS,CAAC,CAAC;AAE5B,QAAA,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC","sourcesContent":["import { join } from \"path\";\n\nexport const __ROOT_WS = join(__dirname);\n\nexport const isWin = process.platform === \"win32\";\n"]}
@@ -1,5 +1,5 @@
1
1
  import { join } from "path";
2
2
 
3
- export const __root_ws = join(__dirname);
3
+ export const __ROOT_WS = join(__dirname);
4
4
 
5
5
  export const isWin = process.platform === "win32";
package/lib/const.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { IStaticFilesMapArray } from './types';
2
2
  export declare const defaultCopyStaticFiles: IStaticFilesMapArray<"tsconfig.json.tpl" | "test/tsconfig.json.tpl" | "tsconfig.esm.json.tpl" | "tsconfig.tsdx.json.tpl" | ".eslintrc.json.tpl" | "now.json.tpl" | ".npmrc.tpl" | "tsdx.config.js.tpl" | "tsc-multi.json.tpl">;
3
- export declare const defaultCopyStaticFilesRootOnly: IStaticFilesMapArray<"tsconfig.json" | ".eslintrc.json" | "lerna.json.tpl" | "pnpm-workspace.yaml.tpl">;
3
+ export declare const defaultCopyStaticFilesRootOnly: IStaticFilesMapArray<"tsconfig.json" | ".eslintrc.json" | "lerna.json.tpl" | "pnpm-workspace.yaml.tpl" | ".yarnrc.yml.tpl">;
4
4
  export declare const defaultCopyStaticFilesWsRootOnly: IStaticFilesMapArray<"tsc-multi.json.tpl">;
package/lib/const.js CHANGED
@@ -31,9 +31,12 @@ const _defaultCopyStaticFilesRootOnly = [
31
31
  ['.github/workflows/coverage.yml', 'file/github/workflows/coverage.yml'],
32
32
  ['.github/workflows/action-yarnlock-dedupe.yml', 'file/github/workflows/action-yarnlock-dedupe.yml'],
33
33
  ['.github/workflows/build.yml', 'file/github/workflows/build.yml'],
34
+ ['.github/workflows/yarn-lock-changes.yml', 'file/github/workflows/yarn-lock-changes.yml'],
35
+ ['.github/commit-convention.md', 'file/github/commit-convention.md'],
34
36
  ['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],
35
37
  ['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],
36
38
  //['changelog-option.js', 'file/changelog-option.js', 'changelog-option.js.tpl'],
39
+ ['.yarnrc.yml.tpl', 'file/root/yarnrc.yml', '.yarnrc.yml'],
37
40
  ];
38
41
  const _defaultCopyStaticFilesWsRootOnly = [
39
42
  ['lerna.json.tpl', 'file/lerna.json.tpl'],
package/lib/const.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"const.js","sourceRoot":"","sources":["const.ts"],"names":[],"mappings":";;;AAEA,MAAM,uBAAuB,GAAG;IAE/B,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAChC,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAEhC,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAEtC,CAAC,QAAQ,EAAE,YAAY,CAAC;IACxB,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;IAE1C,CAAC,mBAAmB,EAAE,wBAAwB,EAAE,eAAe,CAAC;IAEhE,CAAC,wBAAwB,EAAE,6BAA6B,E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,eAAe,EAAE,wBAAwB,CAAC;IAE3C,CAAC,oBAAoB,EAAE,yBAAyB,EAAE,gBAAgB,CAAC;IAEnE,CAAC,cAAc,EAAE,2BAA2B,CAAC;CAEpC,CAAC;AAEE,QAAA,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAsE,CAAC;AAErI,QAAA,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAA8E,CAAC;AAE7J,QAAA,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiC,CAAgF,CAAC","sourcesContent":["import { _Key, IStaticFilesKey, IStaticFilesMapArray } from './types';\n\nconst _defaultCopyStaticFiles = [\n\n\t['.npmignore', 'file/npmignore'],\n\t['.gitignore', 'file/gitignore'],\n\n\t['.eslintignore', 'file/eslintignore'],\n\n\t['.nvmrc', 'file/nvmrc'],\n\t['.browserslistrc', 'file/browserslistrc'],\n\n\t['tsconfig.json.tpl', 'file/tsconfig.json.tpl', 'tsconfig.json'],\n\n\t['test/tsconfig.json.tpl', 'file/test/tsconfig.json.tpl', 'test/tsconfig.json'],\n\n\t['tsconfig.esm.json.tpl', 'file/tsconfig.esm.json.tpl', 'tsconfig.esm.json'],\n\n\t['tsconfig.tsdx.json.tpl', 'file/tsconfig.tsdx.json.tpl', 'tsconfig.tsdx.json'],\n\n\t['.eslintrc.json.tpl', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t['README.md', 'file/README.md'],\n\n\t['.nycrc', 'file/nycrc'],\n\n\t['.mocharc.yml', 'file/mocharc.yml'],\n\t['jest.config.js', 'file/jest.config.js'],\n\n\t['.nowignore', 'file/nowignore'],\n\n\t['now.json.tpl', 'file/now.json.tpl', 'now.json'],\n\n\t['.npmrc.tpl', 'file/npmrc', '.npmrc'],\n\n\t['tsdx.config.js.tpl', 'file/tsdx.config.js', 'tsdx.config.js'],\n\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t['test/__root.ts', 'file/test/__root.ts'],\n\n\t['.editorconfig.tpl', 'file/tpl.editorconfig'],\n\n\t//['changelog-option.js.tpl', 'file/changelog-option.js', 'changelog-option.js'],\n\n] as const;\n\nconst _defaultCopyStaticFilesRootOnly = [\n\n\t['lerna.json.tpl', 'file/lerna.json.tpl', 'lerna.json'],\n\n\t['pnpm-workspace.yaml.tpl', 'file/pnpm-workspace.yaml', 'pnpm-workspace.yaml'],\n\n\t['.github/workflows/coverage.yml', 'file/github/workflows/coverage.yml'],\n\n\t['.github/workflows/action-yarnlock-dedupe.yml', 'file/github/workflows/action-yarnlock-dedupe.yml'],\n\n\t['.github/workflows/build.yml', 'file/github/workflows/build.yml'],\n\n\t['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],\n\n\t['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t//['changelog-option.js', 'file/changelog-option.js', 'changelog-option.js.tpl'],\n\n] as const;\n\nconst _defaultCopyStaticFilesWsRootOnly = [\n\n\t['lerna.json.tpl', 'file/lerna.json.tpl'],\n\n\t['pnpm-workspace.yaml', 'file/pnpm-workspace.yaml'],\n\n\t['tsconfig.json', 'file/tsconfig.json.tpl'],\n\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t['__root_ws.ts', 'file/ws-root/__root_ws.ts'],\n\n] as const;\n\nexport const defaultCopyStaticFiles = Object.freeze(_defaultCopyStaticFiles) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFiles>>;\n\nexport const defaultCopyStaticFilesRootOnly = Object.freeze(_defaultCopyStaticFilesRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesRootOnly>>;\n\nexport const defaultCopyStaticFilesWsRootOnly = Object.freeze(_defaultCopyStaticFilesWsRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesWsRootOnly>>;\n"]}
1
+ {"version":3,"file":"const.js","sourceRoot":"","s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;IAExE,CAAC,8CAA8C,EAAE,kDAAkD,CAAC;IAEpG,CAAC,6BAA6B,EAAE,iCAAiC,CAAC;IAElE,CAAC,yCAAyC,EAAE,6CAA6C,CAAC;IAE1F,CAAC,8BAA8B,EAAE,kCAAkC,CAAC;IAEpE,CAAC,eAAe,EAAE,wBAAwB,EAAE,eAAe,CAAC;IAE5D,CAAC,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,CAAC;IAE9D,iFAAiF;IAEjF,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC;CAEjD,CAAC;AAEX,MAAM,iCAAiC,GAAG;IAEzC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IAEzC,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;IAEnD,CAAC,eAAe,EAAE,wBAAwB,CAAC;IAE3C,CAAC,oBAAoB,EAAE,yBAAyB,EAAE,gBAAgB,CAAC;IAEnE,CAAC,cAAc,EAAE,2BAA2B,CAAC;CAEpC,CAAC;AAEE,QAAA,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAsE,CAAC;AAErI,QAAA,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAA8E,CAAC;AAE7J,QAAA,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiC,CAAgF,CAAC","sourcesContent":["import { _Key, IStaticFilesKey, IStaticFilesMapArray } from './types';\n\nconst _defaultCopyStaticFiles = [\n\n\t['.npmignore', 'file/npmignore'],\n\t['.gitignore', 'file/gitignore'],\n\n\t['.eslintignore', 'file/eslintignore'],\n\n\t['.nvmrc', 'file/nvmrc'],\n\t['.browserslistrc', 'file/browserslistrc'],\n\n\t['tsconfig.json.tpl', 'file/tsconfig.json.tpl', 'tsconfig.json'],\n\n\t['test/tsconfig.json.tpl', 'file/test/tsconfig.json.tpl', 'test/tsconfig.json'],\n\n\t['tsconfig.esm.json.tpl', 'file/tsconfig.esm.json.tpl', 'tsconfig.esm.json'],\n\n\t['tsconfig.tsdx.json.tpl', 'file/tsconfig.tsdx.json.tpl', 'tsconfig.tsdx.json'],\n\n\t['.eslintrc.json.tpl', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t['README.md', 'file/README.md'],\n\n\t['.nycrc', 'file/nycrc'],\n\n\t['.mocharc.yml', 'file/mocharc.yml'],\n\t['jest.config.js', 'file/jest.config.js'],\n\n\t['.nowignore', 'file/nowignore'],\n\n\t['now.json.tpl', 'file/now.json.tpl', 'now.json'],\n\n\t['.npmrc.tpl', 'file/npmrc', '.npmrc'],\n\n\t['tsdx.config.js.tpl', 'file/tsdx.config.js', 'tsdx.config.js'],\n\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t['test/__root.ts', 'file/test/__root.ts'],\n\n\t['.editorconfig.tpl', 'file/tpl.editorconfig'],\n\n\t//['changelog-option.js.tpl', 'file/changelog-option.js', 'changelog-option.js'],\n\n] as const;\n\nconst _defaultCopyStaticFilesRootOnly = [\n\n\t['lerna.json.tpl', 'file/lerna.json.tpl', 'lerna.json'],\n\n\t['pnpm-workspace.yaml.tpl', 'file/pnpm-workspace.yaml', 'pnpm-workspace.yaml'],\n\n\t['.github/workflows/coverage.yml', 'file/github/workflows/coverage.yml'],\n\n\t['.github/workflows/action-yarnlock-dedupe.yml', 'file/github/workflows/action-yarnlock-dedupe.yml'],\n\n\t['.github/workflows/build.yml', 'file/github/workflows/build.yml'],\n\n\t['.github/workflows/yarn-lock-changes.yml', 'file/github/workflows/yarn-lock-changes.yml'],\n\n\t['.github/commit-convention.md', 'file/github/commit-convention.md'],\n\n\t['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],\n\n\t['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],\n\n\t//['changelog-option.js', 'file/changelog-option.js', 'changelog-option.js.tpl'],\n\n\t['.yarnrc.yml.tpl', 'file/root/yarnrc.yml', '.yarnrc.yml'],\n\n] as const;\n\nconst _defaultCopyStaticFilesWsRootOnly = [\n\n\t['lerna.json.tpl', 'file/lerna.json.tpl'],\n\n\t['pnpm-workspace.yaml', 'file/pnpm-workspace.yaml'],\n\n\t['tsconfig.json', 'file/tsconfig.json.tpl'],\n\n\t['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],\n\n\t['__root_ws.ts', 'file/ws-root/__root_ws.ts'],\n\n] as const;\n\nexport const defaultCopyStaticFiles = Object.freeze(_defaultCopyStaticFiles) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFiles>>;\n\nexport const defaultCopyStaticFilesRootOnly = Object.freeze(_defaultCopyStaticFilesRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesRootOnly>>;\n\nexport const defaultCopyStaticFilesWsRootOnly = Object.freeze(_defaultCopyStaticFilesWsRootOnly) as any as IStaticFilesMapArray<_Key<typeof _defaultCopyStaticFilesWsRootOnly>>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/static-file",
3
- "version": "1.0.103",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/static-file#readme",
6
6
  "bugs": {
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "a260a5883751a75c98c5adfa1ba237f8b6d24e67"
34
+ "gitHead": "ff2ab47cbd966bfa7f8eca7378e29571c1b53c1c"
35
35
  }