@yarn-tool/pkg-entry-util 2.0.19 → 2.0.20
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 +10 -0
- package/lib/preset/scripts/shared-root-scripts.d.ts +2 -0
- package/lib/preset/scripts/shared-root-scripts.js +3 -0
- package/lib/preset/scripts/shared-root-scripts.js.map +1 -1
- package/lib/preset/scripts/ws-root-scripts.d.ts +2 -1
- package/lib/preset/scripts/ws-root-scripts.js +0 -1
- package/lib/preset/scripts/ws-root-scripts.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.20](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.19...@yarn-tool/pkg-entry-util@2.0.20) (2022-09-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ✨ Features
|
|
11
|
+
|
|
12
|
+
* move `ws:fix-all` to shared root ([c833c6d](https://github.com/bluelovers/ws-yarn-workspaces/commit/c833c6d09145058aba4455c2e6c338697eab5ac0))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [2.0.19](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.18...@yarn-tool/pkg-entry-util@2.0.19) (2022-09-29)
|
|
7
17
|
|
|
8
18
|
|
|
@@ -11,10 +11,13 @@ function defaultSharedRootScripts() {
|
|
|
11
11
|
"ts-jest",
|
|
12
12
|
"jest",
|
|
13
13
|
"typescript@next",
|
|
14
|
+
'@bluelovers/jest-config',
|
|
14
15
|
].join(" ")}`,
|
|
15
16
|
"test:jest:clearCache": "jest --clearCache",
|
|
16
17
|
"install:resetLockfile": "yarn-tool install --reset-lockfile",
|
|
17
18
|
"install:frozenLockfile": "yarn-tool install --frozen-lockfile",
|
|
19
|
+
"ws:fix-all": "yarn-tool fix-all --overwriteHostedGitInfo",
|
|
20
|
+
"ws:fix-all:resetStaticFiles": "yarn run ws:fix-all -- --resetStaticFiles",
|
|
18
21
|
};
|
|
19
22
|
}
|
|
20
23
|
exports.defaultSharedRootScripts = defaultSharedRootScripts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-root-scripts.js","sourceRoot":"","sources":["shared-root-scripts.ts"],"names":[],"mappings":";;;AAAA,SAAgB,wBAAwB;IAEvC,OAAO;QACN,YAAY,EAAE,iDAAiD;YAC9D,WAAW;YACX,OAAO;YACP,MAAM;YACN,SAAS;YACT,SAAS;YACT,MAAM;YACN,iBAAiB;
|
|
1
|
+
{"version":3,"file":"shared-root-scripts.js","sourceRoot":"","sources":["shared-root-scripts.ts"],"names":[],"mappings":";;;AAAA,SAAgB,wBAAwB;IAEvC,OAAO;QACN,YAAY,EAAE,iDAAiD;YAC9D,WAAW;YACX,OAAO;YACP,MAAM;YACN,SAAS;YACT,SAAS;YACT,MAAM;YACN,iBAAiB;YACd,yBAAyB;SAC5B,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACb,sBAAsB,EAAE,mBAAmB;QAC3C,uBAAuB,EAAE,oCAAoC;QAC7D,wBAAwB,EAAE,qCAAqC;QAC7D,YAAY,EAAE,6CAA6C;QAC3D,6BAA6B,EAAE,2CAA2C;KAC5E,CAAA;AACF,CAAC;AAnBD,4DAmBC","sourcesContent":["export function defaultSharedRootScripts()\n{\n\treturn {\n\t\t\"ci:install\": `yarn install --frozen-lockfile && yarn add -W ${[\n\t\t\t\"yarn-tool\",\n\t\t\t\"lerna\",\n\t\t\t\"ynpx\",\n\t\t\t\"ts-node\",\n\t\t\t\"ts-jest\",\n\t\t\t\"jest\",\n\t\t\t\"typescript@next\",\n '@bluelovers/jest-config',\n\t\t].join(\" \")}`,\n\t\t\"test:jest:clearCache\": \"jest --clearCache\",\n\t\t\"install:resetLockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\"install:frozenLockfile\": \"yarn-tool install --frozen-lockfile\",\n \"ws:fix-all\": \"yarn-tool fix-all --overwriteHostedGitInfo\",\n \"ws:fix-all:resetStaticFiles\": \"yarn run ws:fix-all -- --resetStaticFiles\",\n\t}\n}"]}
|
|
@@ -19,7 +19,6 @@ export declare function defaultWorkspaceRootScripts(): {
|
|
|
19
19
|
postpublishOnly: string;
|
|
20
20
|
"postpublishOnly:ws-root-changelog": string;
|
|
21
21
|
"install:reset-lockfile": string;
|
|
22
|
-
"ws:fix-all": string;
|
|
23
22
|
"tsc:showConfig": string;
|
|
24
23
|
"lint:all": string;
|
|
25
24
|
"lint:since": string;
|
|
@@ -40,4 +39,6 @@ export declare function defaultWorkspaceRootScripts(): {
|
|
|
40
39
|
"test:jest:clearCache": string;
|
|
41
40
|
"install:resetLockfile": string;
|
|
42
41
|
"install:frozenLockfile": string;
|
|
42
|
+
"ws:fix-all": string;
|
|
43
|
+
"ws:fix-all:resetStaticFiles": string;
|
|
43
44
|
};
|
|
@@ -40,7 +40,6 @@ function defaultWorkspaceRootScripts() {
|
|
|
40
40
|
"postpublishOnly": "yarn run postpublishOnly:ws-root-changelog & echo postpublishOnly",
|
|
41
41
|
"postpublishOnly:ws-root-changelog": "ynpx ws-root-changelog & git add ./CHANGELOG.md & git commit ./CHANGELOG.md -m \"chore(changelog): update changelog toc in workspaces root\" & echo update changelog toc in workspaces root",
|
|
42
42
|
"install:reset-lockfile": "yarn-tool install --reset-lockfile",
|
|
43
|
-
"ws:fix-all": "yarn-tool fix-all --overwriteHostedGitInfo",
|
|
44
43
|
"tsc:showConfig": "ynpx get-current-tsconfig -p",
|
|
45
44
|
};
|
|
46
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-root-scripts.js","sourceRoot":"","sources":["ws-root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE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ared-root-scripts';\nimport { EnumScriptsEntry } from '../../field/scripts';\n\nexport function _runAllOrSince<T extends string>(script: T)\n{\n\tconst all = `${script}:all` as const;\n\tconst since = `${script}:since` as const;\n\n\treturn {\n\t\t[all]: `yarn-tool ws run ${script} --concurrency 1`,\n\t\t[since]: `yarn run ${script}:all -- --since`,\n\t} as ({\n\t\t[x in `${T}:all`]: string;\n\t} & {\n\t\t[y in `${T}:since`]: string;\n\t})\n}\n\nexport function defaultWorkspaceRootScripts()\n{\n\treturn {\n\t\t...defaultSharedRootScripts(),\n\n\t\t\"test\": \"yarn run test:since\",\n\n\t\t..._runAllOrSince('test'),\n\t\t..._runAllOrSince('test:tsd'),\n\t\t..._runAllOrSince('test:snapshot'),\n\t\t..._runAllOrSince('build'),\n\t\t..._runAllOrSince('review'),\n\t\t..._runAllOrSince('coverage'),\n\t\t..._runAllOrSince('lint'),\n\n\t\t\"preversion\": EnumScriptsEntry.preversion,\n\t\t\"postversion\": \"yarn-tool fix-all\",\n\t\t\"lerna:publish\": \"yarn run prepublishOnly:root && lerna publish && yarn run postpublishOnly\",\n\t\t\"lerna:publish:yes\": \"yarn run prepublishOnly:root && lerna publish --yes --bump patch && yarn run postpublishOnly\",\n\t\t\"prepublishOnly:root\": \"yarn run prepublishOnly:check-bin && yarn run prepare:fix-ws-links\",\n\t\t\"prepublishOnly:lockfile\": \"ynpx --quiet sync-lockfile\",\n\t\t\"prepublishOnly:check-bin\": \"ynpx --quiet @yarn-tool/check-pkg-bin\",\n\t\t\"prepare:fix-ws-links\": \"ynpx --quiet @yarn-tool/fix-ws-links\",\n\t\t\"prepublishOnly:update\": \"yarn run ncu && yarn run sort-package-json\",\n\t\t\"ncu\": \"yarn run ncu:ws\",\n\t\t\"ncu:root\": \"yarn-tool ncu -u\",\n\t\t\"ncu:ws\": \"yarn-tool ncu -u --AA\",\n\t\t\"sort-package-json\": \"yarn run sort-package-json:root && yarn run sort-package-json:ws\",\n\t\t\"sort-package-json:root\": \"yarn-tool sort\",\n\t\t\"sort-package-json:ws\": \"yarn-tool ws sort\",\n\t\t\"postpublishOnly\": \"yarn run postpublishOnly:ws-root-changelog & echo postpublishOnly\",\n\t\t\"postpublishOnly:ws-root-changelog\": \"ynpx ws-root-changelog & git add ./CHANGELOG.md & git commit ./CHANGELOG.md -m \\\"chore(changelog): update changelog toc in workspaces root\\\" & echo update changelog toc in workspaces root\",\n\t\t\"install:reset-lockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\"tsc:showConfig\": \"ynpx get-current-tsconfig -p\",\n\t}\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/pkg-entry-util",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yarn",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "bd0713d11a5ada119d8b6b4ab3a3f6a4e08ba4bf"
|
|
70
70
|
}
|