@yarn-tool/static-file 1.0.73 → 1.0.78

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,75 @@
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
+ ## [1.0.78](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.77...@yarn-tool/static-file@1.0.78) (2021-12-06)
7
+
8
+
9
+ ### ✨ Features
10
+
11
+ * mts cts ([15e3a9e](https://github.com/bluelovers/ws-yarn-workspaces/commit/15e3a9e756ce144a16f6410309ba83aa82a16ec8))
12
+ * update tsdx ([c46cfb0](https://github.com/bluelovers/ws-yarn-workspaces/commit/c46cfb054238f238c1a6735cb8b6b9b3ac09728a))
13
+
14
+
15
+
16
+
17
+
18
+ ## [1.0.77](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.76...@yarn-tool/static-file@1.0.77) (2021-11-28)
19
+
20
+
21
+ ### ✨ Features
22
+
23
+ * add `tsconfig.tsdx.json.tpl` ([d53c748](https://github.com/bluelovers/ws-yarn-workspaces/commit/d53c748ff24d6c302badf8323acf4bf6a3933d50))
24
+
25
+
26
+
27
+
28
+
29
+ ## [1.0.76](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.75...@yarn-tool/static-file@1.0.76) (2021-10-27)
30
+
31
+
32
+ ### ✨ Features
33
+
34
+ * add ignore snowpack ([336478c](https://github.com/bluelovers/ws-yarn-workspaces/commit/336478c31e1ab17114798589ff7a7f4e72b998f9))
35
+
36
+
37
+
38
+
39
+
40
+ ## [1.0.75](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.73...@yarn-tool/static-file@1.0.75) (2021-10-13)
41
+
42
+
43
+ ### ♻️ Chores
44
+
45
+ * update jest configuration ([a391312](https://github.com/bluelovers/ws-yarn-workspaces/commit/a391312479cf70690fd14406abcadc9ef761c13b))
46
+
47
+
48
+ ### 🔖 Miscellaneous
49
+
50
+ * . ([63e22aa](https://github.com/bluelovers/ws-yarn-workspaces/commit/63e22aa01cf59659e0c5eeecb9b08aa17e83a9b2))
51
+ * . ([07823f6](https://github.com/bluelovers/ws-yarn-workspaces/commit/07823f6759656a40c54a436c3e9b88e97f8d5b8c))
52
+ * . ([209d7d9](https://github.com/bluelovers/ws-yarn-workspaces/commit/209d7d9a18562f2ff201899c728c1fe326d16de6))
53
+
54
+
55
+
56
+
57
+
58
+ ## [1.0.74](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.73...@yarn-tool/static-file@1.0.74) (2021-10-13)
59
+
60
+
61
+ ### ♻️ Chores
62
+
63
+ * update jest configuration ([a391312](https://github.com/bluelovers/ws-yarn-workspaces/commit/a391312479cf70690fd14406abcadc9ef761c13b))
64
+
65
+
66
+ ### 🔖 Miscellaneous
67
+
68
+ * . ([07823f6](https://github.com/bluelovers/ws-yarn-workspaces/commit/07823f6759656a40c54a436c3e9b88e97f8d5b8c))
69
+ * . ([209d7d9](https://github.com/bluelovers/ws-yarn-workspaces/commit/209d7d9a18562f2ff201899c728c1fe326d16de6))
70
+
71
+
72
+
73
+
74
+
6
75
  ## [1.0.73](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.72...@yarn-tool/static-file@1.0.73) (2021-08-13)
7
76
 
8
77
 
package/file/gitignore CHANGED
@@ -68,6 +68,60 @@ bin/**/*.d.ts
68
68
  /packages/*/tests/*.js
69
69
  /packages/*/tests/*.d.ts
70
70
  /packages/*/tests/temp*
71
+
72
+ test/**/*.mjs
73
+ test/**/*.d.mts
74
+ test/*.mjs
75
+ test/*.d.mts
76
+ test/temp*
77
+ test/**/*.map
78
+ tests/**/*.mjs
79
+ tests/**/*.d.mts
80
+ tests/*.mjs
81
+ tests/*.d.mts
82
+ tests/temp*
83
+ tests/**/*.map
84
+ bin/*.d.mts
85
+ bin/**/*.d.mts
86
+ /packages/*/bin/*.d.mts
87
+ /packages/*/test/**/*.mjs
88
+ /packages/*/test/**/*.d.mts
89
+ /packages/*/test/*.mjs
90
+ /packages/*/test/*.d.mts
91
+ /packages/*/test/temp*
92
+ /packages/*/tests/**/*.mjs
93
+ /packages/*/tests/**/*.d.mts
94
+ /packages/*/tests/*.mjs
95
+ /packages/*/tests/*.d.mts
96
+ /packages/*/tests/temp*
97
+
98
+ test/**/*.cjs
99
+ test/**/*.d.cts
100
+ test/*.cjs
101
+ test/*.d.cts
102
+ test/temp*
103
+ test/**/*.map
104
+ tests/**/*.cjs
105
+ tests/**/*.d.cts
106
+ tests/*.cjs
107
+ tests/*.d.cts
108
+ tests/temp*
109
+ tests/**/*.map
110
+ bin/*.d.cts
111
+ bin/**/*.d.cts
112
+ /packages/*/bin/*.d.cts
113
+ /packages/*/test/**/*.cjs
114
+ /packages/*/test/**/*.d.cts
115
+ /packages/*/test/*.cjs
116
+ /packages/*/test/*.d.cts
117
+ /packages/*/test/temp*
118
+ /packages/*/tests/**/*.cjs
119
+ /packages/*/tests/**/*.d.cts
120
+ /packages/*/tests/*.cjs
121
+ /packages/*/tests/*.d.cts
122
+ /packages/*/tests/temp*
123
+
124
+
71
125
  **/node_modules
72
126
  *.tgz
73
127
  /tsconfig.json.tpl
@@ -121,6 +175,11 @@ jest.config.d.ts
121
175
  jest.config.js.map
122
176
  /report.*.json
123
177
  *.js.map
178
+ *.cjs.map
179
+ *.mjs.map
180
+ *.ts.map
181
+ *.cts.map
182
+ *.mts.map
124
183
  /now.json
125
184
  .nyc_output
126
185
  .coverage-cache
@@ -136,3 +195,14 @@ jest.config.js.map
136
195
  /test/tsconfig.json.tpl
137
196
  /tsconfig.json.tpl
138
197
  /report.json
198
+
199
+ .opt-in
200
+ .opt-out
201
+ /gradle
202
+ .gradle
203
+ /out
204
+ /build
205
+
206
+ /_*/
207
+ _snowpack
208
+ web_modules
@@ -1,3 +1,10 @@
1
+ // @ts-check
2
+
3
+ /**
4
+ * @param {string} name
5
+ * @returns {string}
6
+ * @private
7
+ */
1
8
  function _requireResolve(name)
2
9
  {
3
10
  let result;
@@ -25,16 +32,41 @@ function _requireResolve(name)
25
32
  return result || require.resolve(name)
26
33
  }
27
34
 
35
+ const testExt = [
36
+ 'ts',
37
+ 'tsx',
38
+ //'js',
39
+ //'jsx',
40
+ ].join('|');
41
+
28
42
  /**
29
43
  * @type { import('@jest/types').Config.InitialOptions }
30
44
  */
31
45
  module.exports = {
32
46
  clearMocks: true,
33
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
47
+ moduleFileExtensions: [
48
+ 'ts',
49
+ 'tsx',
50
+ 'js',
51
+ 'jsx',
52
+ 'json',
53
+ 'node',
54
+ ],
34
55
  testEnvironment: 'node',
35
56
  //testMatch: ['**/*.test.ts', '**/*.spec.ts'],
36
57
  testMatch: void 0,
37
- testRegex: ['\\.(tests?|spec)\\.(ts|tsx)$'],
58
+ testRegex: [
59
+ `\\.(tests?|spec)\\.(${testExt})$`,
60
+ `__tests__\/\.*\\.(${testExt})$`,
61
+ ],
62
+ testPathIgnorePatterns: [
63
+ '/node_modules/',
64
+ '/__fixtures__/',
65
+ '/fixtures/',
66
+ '/__tests__/helpers/',
67
+ '/__tests__/utils/',
68
+ '__mocks__',
69
+ ],
38
70
  //testRunner: 'jest-circus/runner',
39
71
  setupFilesAfterEnv: [
40
72
  //"jest-chain",
@@ -52,6 +84,12 @@ module.exports = {
52
84
  */
53
85
  coverageProvider: 'v8',
54
86
  collectCoverage: false,
87
+ coveragePathIgnorePatterns: [
88
+ '/node_modules/',
89
+ '**/node_modules/',
90
+ '**/__snapshots__/',
91
+ '**/__tests__/',
92
+ ],
55
93
  /**
56
94
  * https://github.com/facebook/jest/issues/9771#issuecomment-872764344
57
95
  */
package/file/npmignore CHANGED
@@ -26,6 +26,15 @@ node_modules
26
26
  !*.d.ts
27
27
  /bin/**/*.d.ts
28
28
  /bin/*.d.ts
29
+
30
+ !*.d.mts
31
+ /bin/**/*.d.mts
32
+ /bin/*.d.mts
33
+
34
+ !*.d.cts
35
+ /bin/**/*.d.cts
36
+ /bin/*.d.cts
37
+
29
38
  *.tgz
30
39
  /tsconfig.json.tpl
31
40
  yarn-error.log
@@ -74,6 +83,15 @@ now.json
74
83
  *.spec.d.ts
75
84
  *.spec.js
76
85
  *.spec.ts
86
+
87
+ *.spec.d.cts
88
+ *.spec.cjs
89
+ *.spec.cts
90
+
91
+ *.spec.d.mts
92
+ *.spec.mjs
93
+ *.spec.mts
94
+
77
95
  *.spec.tsx
78
96
  __mocks__
79
97
  __tests__
@@ -85,3 +103,10 @@ npm-shrinkwrap.json
85
103
  .vercel
86
104
  tsdx.config.js
87
105
  /report.json
106
+
107
+ /_*/
108
+ _snowpack
109
+
110
+ /snowpack.config.js
111
+ web_modules
112
+ cz-adapter
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "@bluelovers/tsconfig/tsdx/index.json",
3
+ "compilerOptions": {
4
+ "importHelpers": true,
5
+ }
6
+ }
package/lib/const.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { IStaticFilesMapArray } from './types';
2
- export declare const defaultCopyStaticFiles: IStaticFilesMapArray<"tsconfig.json.tpl" | "test/tsconfig.json.tpl" | "tsconfig.esm.json.tpl" | ".eslintrc.json.tpl" | "now.json.tpl" | ".npmrc.tpl" | "tsdx.config.js.tpl">;
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">;
3
3
  export declare const defaultCopyStaticFilesRootOnly: IStaticFilesMapArray<"tsconfig.json" | "lerna.json.tpl" | "pnpm-workspace.yaml.tpl">;
package/lib/const.js CHANGED
@@ -10,6 +10,7 @@ const _defaultCopyStaticFiles = [
10
10
  ['tsconfig.json.tpl', 'file/tsconfig.json.tpl', 'tsconfig.json'],
11
11
  ['test/tsconfig.json.tpl', 'file/test/tsconfig.json.tpl', 'test/tsconfig.json'],
12
12
  ['tsconfig.esm.json.tpl', 'file/tsconfig.esm.json.tpl', 'tsconfig.esm.json'],
13
+ ['tsconfig.tsdx.json.tpl', 'file/tsconfig.tsdx.json.tpl', 'tsconfig.tsdx.json'],
13
14
  ['.eslintrc.json.tpl', 'file/eslintrc.json.tpl', '.eslintrc.json'],
14
15
  ['README.md', 'file/README.md'],
15
16
  ['.nycrc', 'file/nycrc'],
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,EAAE,oBAAoB,CAAC;IAE/E,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,mBAAmB,CAAC;IAE5E,CAAC,oBAAoB,EAAE,wBAAwB,EAAE,gBAAgB,CAAC;IAElE,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAE/B,CAAC,QAAQ,EAAE,YAAY,CAAC;IAExB,CAAC,cAAc,EAAE,kBAAkB,CAAC;IACpC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IAEzC,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAEhC,CAAC,cAAc,EAAE,mBAAmB,EAAE,UAAU,CAAC;IAEjD,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,CAAC;IAEtC,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,gBAAgB,CAAC;CAEtD,CAAC;AAEX,MAAM,+BAA+B,GAAG;IAEvC,CAAC,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,CAAC;IAEvD,CAAC,yBAAyB,EAAE,0BAA0B,EAAE,qBAAqB,CAAC;IAE9E,CAAC,gCAAgC,EAAE,oCAAoC,CAAC;IAExE,CAAC,8CAA8C,EAAE,kDAAkD,CAAC;IAEpG,CAAC,eAAe,EAAE,wBAAwB,EAAE,eAAe,CAAC;CAEnD,CAAC;AAEE,QAAA,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAsE,CAAC;AAErI,QAAA,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAA8E,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['.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] 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['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],\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"]}
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,EAAE,oBAAoB,CAAC;IAE/E,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,mBAAmB,CAAC;IAE5E,CAAC,wBAAwB,EAAE,6BAA6B,EAAE,oBAAoB,CAAC;IAE/E,CAAC,oBAAoB,EAAE,wBAAwB,EAAE,gBAAgB,CAAC;IAElE,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAE/B,CAAC,QAAQ,EAAE,YAAY,CAAC;IAExB,CAAC,cAAc,EAAE,kBAAkB,CAAC;IACpC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IAEzC,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAEhC,CAAC,cAAc,EAAE,mBAAmB,EAAE,UAAU,CAAC;IAEjD,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,CAAC;IAEtC,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,gBAAgB,CAAC;CAEtD,CAAC;AAEX,MAAM,+BAA+B,GAAG;IAEvC,CAAC,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,CAAC;IAEvD,CAAC,yBAAyB,EAAE,0BAA0B,EAAE,qBAAqB,CAAC;IAE9E,CAAC,gCAAgC,EAAE,oCAAoC,CAAC;IAExE,CAAC,8CAA8C,EAAE,kDAAkD,CAAC;IAEpG,CAAC,eAAe,EAAE,wBAAwB,EAAE,eAAe,CAAC;CAEnD,CAAC;AAEE,QAAA,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAsE,CAAC;AAErI,QAAA,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAA8E,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] 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['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/static-file",
3
- "version": "1.0.73",
3
+ "version": "1.0.78",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/bluelovers/ws-yarn-workspaces#readme",
6
6
  "bugs": {
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "11bf46372a217c3abffeeecd85c1ce9426823139"
34
+ "gitHead": "335ba673db3c1c8782d7dc231b043427d750c88d"
35
35
  }