@yarn-tool/static-file 1.0.92 → 1.0.96

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,60 @@
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.96](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.95...@yarn-tool/static-file@1.0.96) (2022-02-19)
7
+
8
+
9
+ ### ✨ Features
10
+
11
+ * add `fetch-depth` ([2be8500](https://github.com/bluelovers/ws-yarn-workspaces/commit/2be8500b42010151204744a7f52cb5248e5c7b06))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.0.95](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.94...@yarn-tool/static-file@1.0.95) (2022-02-12)
18
+
19
+
20
+ ### 🐛 Bug Fixes
21
+
22
+ * `npmignore` add `changelog-option.js` ([36bcd85](https://github.com/bluelovers/ws-yarn-workspaces/commit/36bcd857fb9b369146b4d8e3637b099a39497023))
23
+
24
+
25
+ ### 🔖 Miscellaneous
26
+
27
+ * . ([18b0ed5](https://github.com/bluelovers/ws-yarn-workspaces/commit/18b0ed5ea9e5a5b350e3d541b13aff468297c8de))
28
+
29
+
30
+
31
+
32
+
33
+ ## [1.0.94](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.93...@yarn-tool/static-file@1.0.94) (2022-02-05)
34
+
35
+
36
+ ### ⚙️ Continuous Integration
37
+
38
+ * add paths-ignore ([d5e0f74](https://github.com/bluelovers/ws-yarn-workspaces/commit/d5e0f74669ab5d8fa653bc7b55380fb6ca22c7bd))
39
+
40
+
41
+
42
+
43
+
44
+ ## [1.0.93](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.92...@yarn-tool/static-file@1.0.93) (2022-02-01)
45
+
46
+
47
+ ### ♻️ Chores
48
+
49
+ * use import('ts-jest').InitialOptionsTsJest ([13a111b](https://github.com/bluelovers/ws-yarn-workspaces/commit/13a111b1427dd128732b3c40341efdee43212cf1))
50
+
51
+
52
+ ### 🔖 Miscellaneous
53
+
54
+ * . ([c3a1167](https://github.com/bluelovers/ws-yarn-workspaces/commit/c3a116723a031e4b8ed68e659d7643e418f4ba37))
55
+
56
+
57
+
58
+
59
+
6
60
  ## [1.0.92](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.91...@yarn-tool/static-file@1.0.92) (2022-01-31)
7
61
 
8
62
 
@@ -6,6 +6,12 @@ on:
6
6
  branches:
7
7
  - master
8
8
  - main
9
+ paths-ignore:
10
+ - 'test/**'
11
+ - '.run/**'
12
+ - '.github/**'
13
+ - '/*.*'
14
+ - '/.*'
9
15
  # schedule:
10
16
  ## https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
11
17
  ## ┌───────────── minute (0 - 59)
@@ -26,6 +32,8 @@ jobs:
26
32
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
27
33
  steps:
28
34
  - uses: actions/checkout@master
35
+ with:
36
+ fetch-depth: 2
29
37
  - uses: actions/setup-node@master
30
38
  with:
31
39
  node-version: 17
@@ -30,7 +30,11 @@ function _requireResolve(name)
30
30
 
31
31
  }
32
32
 
33
- return result || require.resolve(name)
33
+ result = result || require.resolve(name);
34
+
35
+ console.info('[require.resolve]', name, '=>', result)
36
+
37
+ return result
34
38
  }
35
39
 
36
40
  const testExt = [
@@ -44,10 +48,20 @@ const testExt = [
44
48
  // 'cjs',
45
49
  ].join('|');
46
50
 
51
+ console.info(`jest.config`);
52
+ console.info(`- file: ${__filename}`);
53
+ console.info(`- cwd: ${process.cwd()}`);
54
+
47
55
  /**
48
- * @type { import('@jest/types').Config.InitialOptions }
56
+ * // @type { import('@jest/types').Config.InitialOptions }
57
+ * @type { import('ts-jest').InitialOptionsTsJest }
49
58
  */
50
59
  module.exports = {
60
+ globals: {
61
+ 'ts-jest': {
62
+
63
+ },
64
+ },
51
65
  clearMocks: true,
52
66
  passWithNoTests: true,
53
67
  moduleFileExtensions: [
package/file/npmignore CHANGED
@@ -120,3 +120,5 @@ cz-adapter
120
120
 
121
121
  tsc-multi.json.tpl
122
122
  tsc-multi.json
123
+
124
+ changelog-option.js
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" | "changelog-option.js.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" | "changelog-option.js" | "lerna.json.tpl" | "pnpm-workspace.yaml.tpl">;
4
4
  export declare const defaultCopyStaticFilesWsRootOnly: IStaticFilesMapArray<"tsc-multi.json.tpl">;
package/lib/const.js CHANGED
@@ -33,7 +33,7 @@ const _defaultCopyStaticFilesRootOnly = [
33
33
  ['.github/workflows/build.yml', 'file/github/workflows/build.yml'],
34
34
  ['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],
35
35
  ['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],
36
- ['changelog-option.js', 'file/changelog-option.js'],
36
+ ['changelog-option.js', 'file/changelog-option.js', 'changelog-option.js.tpl'],
37
37
  ];
38
38
  const _defaultCopyStaticFilesWsRootOnly = [
39
39
  ['lerna.json.tpl', 'file/lerna.json.tpl'],
package/lib/const.js.map CHANGED
@@ -1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AAyB,EAAE,0BAA0B,EAAE,qBAAqB,CAAC;IAE9E,CAAC,gCAAgC,EAAE,oCAAoC,CAAC;IAExE,CAAC,8CAA8C,EAAE,kDAAkD,CAAC;IAEpG,CAAC,6BAA6B,EAAE,iCAAiC,CAAC;IAElE,CAAC,eAAe,EAAE,wBAAwB,EAAE,eAAe,CAAC;IAE5D,CAAC,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,CAAC;IAE9D,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;CAE1C,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['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'],\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":"","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,EA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FilesKey, 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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/static-file",
3
- "version": "1.0.92",
3
+ "version": "1.0.96",
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": "25ae2a845acacd4dae1df33c5c263caa331f54e5"
34
+ "gitHead": "b7e0db984fe5afa1876445cd29dc5e536b3ff400"
35
35
  }