@yarn-tool/static-file 1.0.88 → 1.0.92
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 +44 -0
- package/file/changelog-option.js +12 -0
- package/file/github/workflows/action-yarnlock-dedupe.yml +1 -0
- package/file/github/workflows/build.yml +67 -0
- package/file/github/workflows/coverage.yml +4 -2
- package/file/jest.config.js +2 -0
- package/lib/const.d.ts +1 -1
- package/lib/const.js +3 -0
- package/lib/const.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### ✨ Features
|
|
10
|
+
|
|
11
|
+
* add `[@ts-ignore](https://github.com/ts-ignore)` for `jest.config.js` ([6393bad](https://github.com/bluelovers/ws-yarn-workspaces/commit/6393bad7b5d59f69fcc28d5653fac92e971eecf8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.0.91](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.90...@yarn-tool/static-file@1.0.91) (2022-01-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ✨ Features
|
|
21
|
+
|
|
22
|
+
* add `changelog-option.js` ([05d875f](https://github.com/bluelovers/ws-yarn-workspaces/commit/05d875f15fc5d9b527ffc09f298e17c0024fc9ea))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [1.0.90](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.89...@yarn-tool/static-file@1.0.90) (2022-01-25)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### ♻️ Chores
|
|
32
|
+
|
|
33
|
+
* **deps:** update deps ([9d91e96](https://github.com/bluelovers/ws-yarn-workspaces/commit/9d91e960a0e02ec2896b791cb5933f47d86b0bc5))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [1.0.89](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.88...@yarn-tool/static-file@1.0.89) (2022-01-13)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### ✨ Features
|
|
43
|
+
|
|
44
|
+
* add `workflow_dispatch` and `build.yml` ([7687f90](https://github.com/bluelovers/ws-yarn-workspaces/commit/7687f90b66504a1c7d7c55dae3456dcf235ecd05))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
## [1.0.88](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/static-file@1.0.87...@yarn-tool/static-file@1.0.88) (2022-01-02)
|
|
7
51
|
|
|
8
52
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- master
|
|
8
|
+
- main
|
|
9
|
+
# schedule:
|
|
10
|
+
## https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
|
|
11
|
+
## ┌───────────── minute (0 - 59)
|
|
12
|
+
## │ ┌───────────── hour (0 - 23)
|
|
13
|
+
## │ │ ┌───────────── day of the month (1 - 31)
|
|
14
|
+
## │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
|
15
|
+
## │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
|
16
|
+
## │ │ │ │ │
|
|
17
|
+
## │ │ │ │ │
|
|
18
|
+
## │ │ │ │ │
|
|
19
|
+
## * * * * *
|
|
20
|
+
# - cron: '* * 1 * *'
|
|
21
|
+
# - cron: '* * 15 * *'
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
build:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@master
|
|
29
|
+
- uses: actions/setup-node@master
|
|
30
|
+
with:
|
|
31
|
+
node-version: 17
|
|
32
|
+
- name: get yarn cache dir
|
|
33
|
+
id: yarn-cache
|
|
34
|
+
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
35
|
+
- name: set cache id
|
|
36
|
+
id: id-cache
|
|
37
|
+
run: echo "::set-output name=id::${GITHUB_SHA}"
|
|
38
|
+
- name: echo var
|
|
39
|
+
run: |
|
|
40
|
+
echo ${{ steps.yarn-cache.outputs.dir }}
|
|
41
|
+
echo ${{ steps.id-cache.outputs.id }}
|
|
42
|
+
echo ${GITHUB_SHA}
|
|
43
|
+
- name: yarn cache
|
|
44
|
+
uses: bluelovers/github-actions-cache@2020011001
|
|
45
|
+
with:
|
|
46
|
+
path: ${{ steps.yarn-cache.outputs.dir }}
|
|
47
|
+
key: ${{ runner.os }}-yarn-${{ steps.id-cache.outputs.id }}
|
|
48
|
+
restore-keys: |
|
|
49
|
+
${{ runner.os }}-yarn-
|
|
50
|
+
- name: setup git config
|
|
51
|
+
run: |
|
|
52
|
+
git config --local user.email "action@github.com"
|
|
53
|
+
git config --local user.name "GitHub Action"
|
|
54
|
+
- name: install deps
|
|
55
|
+
run: |
|
|
56
|
+
yarn install --frozen-lockfile
|
|
57
|
+
yarn run ci:install
|
|
58
|
+
# yarn add -W typescript@next jest ts-jest ts-node ynpx lerna
|
|
59
|
+
- name: run script
|
|
60
|
+
if: success()
|
|
61
|
+
# env:
|
|
62
|
+
run: yarn run ci:build
|
|
63
|
+
- name: Push changes
|
|
64
|
+
if: success()
|
|
65
|
+
uses: ad-m/github-push-action@master
|
|
66
|
+
with:
|
|
67
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
name: 'coverage'
|
|
2
2
|
on:
|
|
3
|
+
workflow_dispatch:
|
|
3
4
|
push:
|
|
4
5
|
branches:
|
|
5
6
|
- master
|
|
@@ -22,8 +23,9 @@ jobs:
|
|
|
22
23
|
- name: install
|
|
23
24
|
run: |
|
|
24
25
|
yarn install --frozen-lockfile
|
|
25
|
-
yarn
|
|
26
|
-
|
|
26
|
+
yarn run ci:install
|
|
27
|
+
# yarn add -W typescript@next jest ts-jest ts-node ynpx lerna
|
|
28
|
+
- uses: artiomtr/jest-coverage-report-action@v2.0.2
|
|
27
29
|
with:
|
|
28
30
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
29
31
|
package-manager: yarn
|
package/file/jest.config.js
CHANGED
|
@@ -11,6 +11,7 @@ function _requireResolve(name)
|
|
|
11
11
|
|
|
12
12
|
try
|
|
13
13
|
{
|
|
14
|
+
// @ts-ignore
|
|
14
15
|
const { requireResolveExtra, requireResolveCore } = require('@yarn-tool/require-resolve');
|
|
15
16
|
|
|
16
17
|
const paths = [
|
|
@@ -48,6 +49,7 @@ const testExt = [
|
|
|
48
49
|
*/
|
|
49
50
|
module.exports = {
|
|
50
51
|
clearMocks: true,
|
|
52
|
+
passWithNoTests: true,
|
|
51
53
|
moduleFileExtensions: [
|
|
52
54
|
'ts',
|
|
53
55
|
'tsx',
|
package/lib/const.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IStaticFilesMapArray } from './types';
|
|
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">;
|
|
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
3
|
export declare const defaultCopyStaticFilesRootOnly: IStaticFilesMapArray<"tsconfig.json" | ".eslintrc.json" | "lerna.json.tpl" | "pnpm-workspace.yaml.tpl">;
|
|
4
4
|
export declare const defaultCopyStaticFilesWsRootOnly: IStaticFilesMapArray<"tsc-multi.json.tpl">;
|
package/lib/const.js
CHANGED
|
@@ -23,14 +23,17 @@ const _defaultCopyStaticFiles = [
|
|
|
23
23
|
['tsc-multi.json.tpl', 'file/tsc-multi.json.tpl', 'tsc-multi.json'],
|
|
24
24
|
['test/__root.ts', 'file/test/__root.ts'],
|
|
25
25
|
['.editorconfig.tpl', 'file/tpl.editorconfig'],
|
|
26
|
+
['changelog-option.js.tpl', 'file/changelog-option.js', 'changelog-option.js'],
|
|
26
27
|
];
|
|
27
28
|
const _defaultCopyStaticFilesRootOnly = [
|
|
28
29
|
['lerna.json.tpl', 'file/lerna.json.tpl', 'lerna.json'],
|
|
29
30
|
['pnpm-workspace.yaml.tpl', 'file/pnpm-workspace.yaml', 'pnpm-workspace.yaml'],
|
|
30
31
|
['.github/workflows/coverage.yml', 'file/github/workflows/coverage.yml'],
|
|
31
32
|
['.github/workflows/action-yarnlock-dedupe.yml', 'file/github/workflows/action-yarnlock-dedupe.yml'],
|
|
33
|
+
['.github/workflows/build.yml', 'file/github/workflows/build.yml'],
|
|
32
34
|
['tsconfig.json', 'file/tsconfig.json.tpl', 'tsconfig.json'],
|
|
33
35
|
['.eslintrc.json', 'file/eslintrc.json.tpl', '.eslintrc.json'],
|
|
36
|
+
['changelog-option.js', 'file/changelog-option.js'],
|
|
34
37
|
];
|
|
35
38
|
const _defaultCopyStaticFilesWsRootOnly = [
|
|
36
39
|
['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,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;IAE/D,CAAC,oBAAoB,EAAE,yBAAyB,EAAE,gBAAgB,CAAC;IAEnE,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IAEzC,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;
|
|
1
|
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E,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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/static-file",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.92",
|
|
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": "
|
|
34
|
+
"gitHead": "25ae2a845acacd4dae1df33c5c263caa331f54e5"
|
|
35
35
|
}
|