@yarn-tool/pkg-entry-util 2.0.22 → 2.0.24

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,24 @@
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.24](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.23...@yarn-tool/pkg-entry-util@2.0.24) (2022-11-14)
7
+
8
+ **Note:** Version bump only for package @yarn-tool/pkg-entry-util
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.0.23](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.22...@yarn-tool/pkg-entry-util@2.0.23) (2022-11-04)
15
+
16
+
17
+
18
+ ### ✨ Features
19
+
20
+ * update default scripts ([34a8007](https://github.com/bluelovers/ws-yarn-workspaces/commit/34a80070bca51daf8097a17c83fe692477dbe63d))
21
+
22
+
23
+
6
24
  ## [2.0.22](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.21...@yarn-tool/pkg-entry-util@2.0.22) (2022-10-28)
7
25
 
8
26
 
@@ -1,10 +1,13 @@
1
1
  import { EnumScriptsEntry } from '../../field/scripts';
2
2
  export declare function defaultPkgScripts(): {
3
+ test: string;
3
4
  coverage: string;
4
5
  "test:jest": EnumScriptsEntry;
5
6
  "test:snapshot": string;
6
7
  "test:jest:snapshot": string;
8
+ "test:jest:coverage": string;
7
9
  "test:tsd": string;
10
+ "tsc:showConfig": string;
8
11
  };
9
12
  export declare function defaultPkgNotOldExists(): {
10
13
  "test:mocha": string;
@@ -20,9 +23,15 @@ export declare function defaultPkgNotOldExists(): {
20
23
  review: string;
21
24
  "review:test": string;
22
25
  "review:coverage": string;
26
+ "sort-package-json": string;
27
+ "tsc:default": string;
28
+ "tsc:esm": string;
29
+ test: string;
23
30
  coverage: string;
24
31
  "test:jest": EnumScriptsEntry;
25
32
  "test:snapshot": string;
26
33
  "test:jest:snapshot": string;
34
+ "test:jest:coverage": string;
27
35
  "test:tsd": string;
36
+ "tsc:showConfig": string;
28
37
  };
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultPkgNotOldExists = exports.defaultPkgScripts = void 0;
4
4
  function defaultPkgScripts() {
5
5
  return {
6
+ "test": "yarn run test:jest",
6
7
  "coverage": "yarn run test -- --coverage",
7
8
  "test:jest": "jest --passWithNoTests" /* EnumScriptsEntry.JEST_TEST */,
8
9
  "test:snapshot": "yarn run test -- -u",
9
10
  "test:jest:snapshot": "yarn run test:jest -- -u",
11
+ "test:jest:coverage": "yarn run test:jest -- --coverage",
10
12
  "test:tsd": "ynpx tsd",
13
+ "tsc:showConfig": "ynpx get-current-tsconfig -p",
11
14
  };
12
15
  }
13
16
  exports.defaultPkgScripts = defaultPkgScripts;
@@ -26,7 +29,10 @@ function defaultPkgNotOldExists() {
26
29
  "lint:eslint": "ynpx eslint --ext .ts,.tsx,.mts,.cts ./",
27
30
  "review": "yarn run review:coverage",
28
31
  "review:test": "yarn run lint && yarn run test",
29
- "review:coverage": "yarn run lint && yarn run coverage"
32
+ "review:coverage": "yarn run lint && yarn run coverage",
33
+ "sort-package-json": "yarn-tool sort",
34
+ "tsc:default": "tsc -p tsconfig.json",
35
+ "tsc:esm": "tsc -p tsconfig.esm.json",
30
36
  };
31
37
  }
32
38
  exports.defaultPkgNotOldExists = defaultPkgNotOldExists;
@@ -1 +1 @@
1
- {"version":3,"file":"pkg-scripts.js","sourceRoot":"","sources":["pkg-scripts.ts"],"names":[],"mappings":";;;AAEA,SAAgB,iBAAiB;IAEhC,OAAO;QACN,UAAU,EAAE,6BAA6B;QACzC,WAAW,2DAA4B;QACvC,eAAe,EAAE,qBAAqB;QACtC,oBAAoB,EAAE,0BAA0B;QAChD,UAAU,EAAE,UAAU;KACtB,CAAA;AACF,CAAC;AATD,8CASC;AAED,SAAgB,sBAAsB;IAErC,OAAO;QACN,GAAG,iBAAiB,EAAE;QACtB,YAAY,EAAE,oHAAoH;QAClI,WAAW,EAAE,8CAA8C;QAC3D,kBAAkB,iLAAmC;QACrD,gBAAgB,EAAE,8DAA8D;QAChF,oBAAoB,EAAE,wDAAwD;QAC9E,eAAe,EAAE,wDAAwD;QACzE,YAAY,EAAE,wDAAwD;QACtE,mBAAmB,EAAE,gCAAgC;QACrD,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,yCAAyC;QACxD,QAAQ,EAAE,0BAA0B;QACpC,aAAa,EAAE,gCAAgC;QAC/C,iBAAiB,EAAE,oCAAoC;KACvD,CAAA;AACF,CAAC;AAlBD,wDAkBC","sourcesContent":["import { EnumScriptsEntry } from '../../field/scripts';\n\nexport function defaultPkgScripts()\n{\n\treturn {\n\t\t\"coverage\": \"yarn run test -- --coverage\",\n\t\t\"test:jest\": EnumScriptsEntry.JEST_TEST,\n\t\t\"test:snapshot\": \"yarn run test -- -u\",\n\t\t\"test:jest:snapshot\": \"yarn run test:jest -- -u\",\n\t\t\"test:tsd\": \"ynpx tsd\",\n\t}\n}\n\nexport function defaultPkgNotOldExists()\n{\n\treturn {\n\t\t...defaultPkgScripts(),\n\t\t\"test:mocha\": \"ynpx --quiet -p ts-node -p mocha mocha -- --require ts-node/register \\\"!(node_modules)/**/*.{test,spec}.{ts,tsx}\\\"\",\n\t\t\"test:tsdx\": \"ynpx @bluelovers/tsdx test --passWithNoTests\",\n\t\t\"build:dts:bundle\": EnumScriptsEntry.BUILD_DTS_BUNDLE,\n\t\t\"build:dts:copy\": \"copy .\\\\src\\\\index.d.ts .\\\\dist\\\\index.d.ts & echo build:dts\",\n\t\t\"build:dts:tsc:emit\": \"tsc --emitDeclarationOnly --declaration --noEmit false\",\n\t\t\"build:dts:tsc\": \"yarn run build:dts:tsc:emit && yarn run build:dts:copy\",\n\t\t\"build:tsdx\": \"ynpx @bluelovers/tsdx build --target node --name index\",\n\t\t\"build:microbundle\": \"ynpx microbundle --target node\",\n\t\t\"lint\": \"yarn run lint:eslint\",\n\t\t\"lint:eslint\": \"ynpx eslint --ext .ts,.tsx,.mts,.cts ./\",\n\t\t\"review\": \"yarn run review:coverage\",\n\t\t\"review:test\": \"yarn run lint && yarn run test\",\n\t\t\"review:coverage\": \"yarn run lint && yarn run coverage\"\n\t}\n}\n"]}
1
+ {"version":3,"file":"pkg-scripts.js","sourceRoot":"","sources":["pkg-scripts.ts"],"names":[],"mappings":";;;AAEA,SAAgB,iBAAiB;IAEhC,OAAO;QACN,MAAM,EAAE,oBAAoB;QAC5B,UAAU,EAAE,6BAA6B;QACzC,WAAW,2DAA4B;QACvC,eAAe,EAAE,qBAAqB;QACtC,oBAAoB,EAAE,0BAA0B;QAChD,oBAAoB,EAAE,kCAAkC;QACxD,UAAU,EAAE,UAAU;QACtB,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AAZD,8CAYC;AAED,SAAgB,sBAAsB;IAErC,OAAO;QACN,GAAG,iBAAiB,EAAE;QACtB,YAAY,EAAE,oHAAoH;QAClI,WAAW,EAAE,8CAA8C;QAC3D,kBAAkB,iLAAmC;QACrD,gBAAgB,EAAE,8DAA8D;QAChF,oBAAoB,EAAE,wDAAwD;QAC9E,eAAe,EAAE,wDAAwD;QACzE,YAAY,EAAE,wDAAwD;QACtE,mBAAmB,EAAE,gCAAgC;QACrD,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,yCAAyC;QACxD,QAAQ,EAAE,0BAA0B;QACpC,aAAa,EAAE,gCAAgC;QAC/C,iBAAiB,EAAE,oCAAoC;QACvD,mBAAmB,EAAE,gBAAgB;QACrC,aAAa,EAAE,sBAAsB;QACrC,SAAS,EAAE,0BAA0B;KACrC,CAAA;AACF,CAAC;AArBD,wDAqBC","sourcesContent":["import { EnumScriptsEntry } from '../../field/scripts';\n\nexport function defaultPkgScripts()\n{\n\treturn {\n\t\t\"test\": \"yarn run test:jest\",\n\t\t\"coverage\": \"yarn run test -- --coverage\",\n\t\t\"test:jest\": EnumScriptsEntry.JEST_TEST,\n\t\t\"test:snapshot\": \"yarn run test -- -u\",\n\t\t\"test:jest:snapshot\": \"yarn run test:jest -- -u\",\n\t\t\"test:jest:coverage\": \"yarn run test:jest -- --coverage\",\n\t\t\"test:tsd\": \"ynpx tsd\",\n\t\t\"tsc:showConfig\": \"ynpx get-current-tsconfig -p\",\n\t}\n}\n\nexport function defaultPkgNotOldExists()\n{\n\treturn {\n\t\t...defaultPkgScripts(),\n\t\t\"test:mocha\": \"ynpx --quiet -p ts-node -p mocha mocha -- --require ts-node/register \\\"!(node_modules)/**/*.{test,spec}.{ts,tsx}\\\"\",\n\t\t\"test:tsdx\": \"ynpx @bluelovers/tsdx test --passWithNoTests\",\n\t\t\"build:dts:bundle\": EnumScriptsEntry.BUILD_DTS_BUNDLE,\n\t\t\"build:dts:copy\": \"copy .\\\\src\\\\index.d.ts .\\\\dist\\\\index.d.ts & echo build:dts\",\n\t\t\"build:dts:tsc:emit\": \"tsc --emitDeclarationOnly --declaration --noEmit false\",\n\t\t\"build:dts:tsc\": \"yarn run build:dts:tsc:emit && yarn run build:dts:copy\",\n\t\t\"build:tsdx\": \"ynpx @bluelovers/tsdx build --target node --name index\",\n\t\t\"build:microbundle\": \"ynpx microbundle --target node\",\n\t\t\"lint\": \"yarn run lint:eslint\",\n\t\t\"lint:eslint\": \"ynpx eslint --ext .ts,.tsx,.mts,.cts ./\",\n\t\t\"review\": \"yarn run review:coverage\",\n\t\t\"review:test\": \"yarn run lint && yarn run test\",\n\t\t\"review:coverage\": \"yarn run lint && yarn run coverage\",\n\t\t\"sort-package-json\": \"yarn-tool sort\",\n\t\t\"tsc:default\": \"tsc -p tsconfig.json\",\n\t\t\"tsc:esm\": \"tsc -p tsconfig.esm.json\",\n\t}\n}\n"]}
@@ -8,15 +8,19 @@ export declare function defaultRootScripts(): {
8
8
  "postpublish:changelog": string;
9
9
  "postpublish:git:push": string;
10
10
  postpublish: string;
11
+ ncu: string;
11
12
  "ci:install": string;
12
13
  "test:jest:clearCache": string;
13
14
  "install:resetLockfile": string;
14
15
  "install:frozenLockfile": string;
15
16
  "ws:fix-all": string;
16
17
  "ws:fix-all:resetStaticFiles": string;
18
+ test: string;
17
19
  coverage: string;
18
20
  "test:jest": import("../../field/scripts").EnumScriptsEntry;
19
21
  "test:snapshot": string;
20
22
  "test:jest:snapshot": string;
23
+ "test:jest:coverage": string;
21
24
  "test:tsd": string;
25
+ "tsc:showConfig": string;
22
26
  };
@@ -16,6 +16,7 @@ function defaultRootScripts() {
16
16
  "postpublish:changelog": `ynpx --quiet @yarn-tool/changelog && git add ./CHANGELOG.md`,
17
17
  "postpublish:git:push": `git push --follow-tags`,
18
18
  "postpublish": `yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag && yarn run postpublish:git:push`,
19
+ "ncu": "yarn-tool ncu -u",
19
20
  };
20
21
  }
21
22
  exports.defaultRootScripts = defaultRootScripts;
@@ -1 +1 @@
1
- {"version":3,"file":"root-scripts.js","sourceRoot":"","sources":["root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AACjE,+CAAkD;AAElD,SAAgB,kBAAkB;IAEjC,OAAO;QACN,GAAG,IAAA,+BAAiB,GAAE;QACtB,GAAG,IAAA,8CAAwB,GAAE;QAC7B,0BAA0B,EAAE,uCAAuC;QACnE,cAAc,EAAE,mBAAmB;QACnC,aAAa,EAAE,aAAa;QAC5B,kBAAkB,EAAE,sCAAsC;QAC1D,wBAAwB,EAAE,yEAAyE;QACnG,qBAAqB,EAAE,6BAA6B;QACpD,uBAAuB,EAAE,6DAA6D;QACtF,sBAAsB,EAAE,wBAAwB;QAChD,aAAa,EAAE,oIAAoI;KACnJ,CAAA;AACF,CAAC;AAfD,gDAeC","sourcesContent":["import { defaultSharedRootScripts } from './shared-root-scripts';\nimport { defaultPkgScripts } from './pkg-scripts';\n\nexport function defaultRootScripts()\n{\n\treturn {\n\t\t...defaultPkgScripts(),\n\t\t...defaultSharedRootScripts(),\n\t\t\"prepublishOnly:check-bin\": \"ynpx --quiet @yarn-tool/check-pkg-bin\",\n\t\t\"version:bump\": \"yarn-tool version\",\n\t\t\"npm:publish\": \"npm publish\",\n\t\t\"npm:publish:bump\": \"yarn run version:bump && npm publish\",\n\t\t\"postpublish:git:commit\": `git commit -m \"chore(release): publish\" . & echo postpublish:git:commit`,\n\t\t\"postpublish:git:tag\": `ynpx --quiet @yarn-tool/tag`,\n\t\t\"postpublish:changelog\": `ynpx --quiet @yarn-tool/changelog && git add ./CHANGELOG.md`,\n\t\t\"postpublish:git:push\": `git push --follow-tags`,\n\t\t\"postpublish\": `yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag && yarn run postpublish:git:push`,\n\t}\n}\n"]}
1
+ {"version":3,"file":"root-scripts.js","sourceRoot":"","sources":["root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AACjE,+CAAkD;AAElD,SAAgB,kBAAkB;IAEjC,OAAO;QACN,GAAG,IAAA,+BAAiB,GAAE;QACtB,GAAG,IAAA,8CAAwB,GAAE;QAC7B,0BAA0B,EAAE,uCAAuC;QACnE,cAAc,EAAE,mBAAmB;QACnC,aAAa,EAAE,aAAa;QAC5B,kBAAkB,EAAE,sCAAsC;QAC1D,wBAAwB,EAAE,yEAAyE;QACnG,qBAAqB,EAAE,6BAA6B;QACpD,uBAAuB,EAAE,6DAA6D;QACtF,sBAAsB,EAAE,wBAAwB;QAChD,aAAa,EAAE,oIAAoI;QACnJ,KAAK,EAAE,kBAAkB;KACzB,CAAA;AACF,CAAC;AAhBD,gDAgBC","sourcesContent":["import { defaultSharedRootScripts } from './shared-root-scripts';\nimport { defaultPkgScripts } from './pkg-scripts';\n\nexport function defaultRootScripts()\n{\n\treturn {\n\t\t...defaultPkgScripts(),\n\t\t...defaultSharedRootScripts(),\n\t\t\"prepublishOnly:check-bin\": \"ynpx --quiet @yarn-tool/check-pkg-bin\",\n\t\t\"version:bump\": \"yarn-tool version\",\n\t\t\"npm:publish\": \"npm publish\",\n\t\t\"npm:publish:bump\": \"yarn run version:bump && npm publish\",\n\t\t\"postpublish:git:commit\": `git commit -m \"chore(release): publish\" . & echo postpublish:git:commit`,\n\t\t\"postpublish:git:tag\": `ynpx --quiet @yarn-tool/tag`,\n\t\t\"postpublish:changelog\": `ynpx --quiet @yarn-tool/changelog && git add ./CHANGELOG.md`,\n\t\t\"postpublish:git:push\": `git push --follow-tags`,\n\t\t\"postpublish\": `yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag && yarn run postpublish:git:push`,\n\t\t\"ncu\": \"yarn-tool ncu -u\",\n\t}\n}\n"]}
@@ -18,7 +18,6 @@ export declare function defaultWorkspaceRootScripts(): {
18
18
  "sort-package-json:ws": string;
19
19
  postpublishOnly: string;
20
20
  "postpublishOnly:ws-root-changelog": string;
21
- "install:reset-lockfile": string;
22
21
  "tsc:showConfig": string;
23
22
  "lint:all": string;
24
23
  "lint:since": string;
@@ -39,7 +39,6 @@ function defaultWorkspaceRootScripts() {
39
39
  "sort-package-json:ws": "yarn-tool ws sort",
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
- "install:reset-lockfile": "yarn-tool install --reset-lockfile",
43
42
  "tsc:showConfig": "ynpx get-current-tsconfig -p",
44
43
  };
45
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ws-root-scripts.js","sourceRoot":"","sources":["ws-root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGjE,SAAgB,cAAc,CAAmB,MAAS;IAEzD,MAAM,GAAG,GAAG,GAAG,MAAM,MAAe,CAAC;IACrC,MAAM,KAAK,GAAG,GAAG,MAAM,QAAiB,CAAC;IAEzC,OAAO;QACN,CAAC,GAAG,CAAC,EAAE,oBAAoB,MAAM,kBAAkB;QACnD,CAAC,KAAK,CAAC,EAAE,YAAY,MAAM,iBAAiB;KAK3C,CAAA;AACH,CAAC;AAbD,wCAaC;AAED,SAAgB,2BAA2B;IAE1C,OAAO;QACN,GAAG,IAAA,8CAAwB,GAAE;QAE7B,MAAM,EAAE,qBAAqB;QAE7B,GAAG,cAAc,CAAC,MAAM,CAAC;QACzB,GAAG,cAAc,CAAC,UAAU,CAAC;QAC7B,GAAG,cAAc,CAAC,eAAe,CAAC;QAClC,GAAG,cAAc,CAAC,OAAO,CAAC;QAC1B,GAAG,cAAc,CAAC,QAAQ,CAAC;QAC3B,GAAG,cAAc,CAAC,UAAU,CAAC;QAC7B,GAAG,cAAc,CAAC,MAAM,CAAC;QAEzB,YAAY,mDAA6B;QACzC,aAAa,EAAE,mBAAmB;QAClC,eAAe,EAAE,2EAA2E;QAC5F,mBAAmB,EAAE,8FAA8F;QACnH,qBAAqB,EAAE,oEAAoE;QAC3F,yBAAyB,EAAE,4BAA4B;QACvD,0BAA0B,EAAE,uCAAuC;QACnE,sBAAsB,EAAE,sCAAsC;QAC9D,uBAAuB,EAAE,4CAA4C;QACrE,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,uBAAuB;QACjC,mBAAmB,EAAE,kEAAkE;QACvF,wBAAwB,EAAE,gBAAgB;QAC1C,sBAAsB,EAAE,mBAAmB;QAC3C,iBAAiB,EAAE,mEAAmE;QACtF,mCAAmC,EAAE,6LAA6L;QAClO,wBAAwB,EAAE,oCAAoC;QAC9D,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AAnCD,kEAmCC","sourcesContent":["import { defaultSharedRootScripts } from './shared-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}"]}
1
+ {"version":3,"file":"ws-root-scripts.js","sourceRoot":"","sources":["ws-root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGjE,SAAgB,cAAc,CAAmB,MAAS;IAEzD,MAAM,GAAG,GAAG,GAAG,MAAM,MAAe,CAAC;IACrC,MAAM,KAAK,GAAG,GAAG,MAAM,QAAiB,CAAC;IAEzC,OAAO;QACN,CAAC,GAAG,CAAC,EAAE,oBAAoB,MAAM,kBAAkB;QACnD,CAAC,KAAK,CAAC,EAAE,YAAY,MAAM,iBAAiB;KAK3C,CAAA;AACH,CAAC;AAbD,wCAaC;AAED,SAAgB,2BAA2B;IAE1C,OAAO;QACN,GAAG,IAAA,8CAAwB,GAAE;QAE7B,MAAM,EAAE,qBAAqB;QAE7B,GAAG,cAAc,CAAC,MAAM,CAAC;QACzB,GAAG,cAAc,CAAC,UAAU,CAAC;QAC7B,GAAG,cAAc,CAAC,eAAe,CAAC;QAClC,GAAG,cAAc,CAAC,OAAO,CAAC;QAC1B,GAAG,cAAc,CAAC,QAAQ,CAAC;QAC3B,GAAG,cAAc,CAAC,UAAU,CAAC;QAC7B,GAAG,cAAc,CAAC,MAAM,CAAC;QAEzB,YAAY,mDAA6B;QACzC,aAAa,EAAE,mBAAmB;QAClC,eAAe,EAAE,2EAA2E;QAC5F,mBAAmB,EAAE,8FAA8F;QACnH,qBAAqB,EAAE,oEAAoE;QAC3F,yBAAyB,EAAE,4BAA4B;QACvD,0BAA0B,EAAE,uCAAuC;QACnE,sBAAsB,EAAE,sCAAsC;QAC9D,uBAAuB,EAAE,4CAA4C;QACrE,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,uBAAuB;QACjC,mBAAmB,EAAE,kEAAkE;QACvF,wBAAwB,EAAE,gBAAgB;QAC1C,sBAAsB,EAAE,mBAAmB;QAC3C,iBAAiB,EAAE,mEAAmE;QACtF,mCAAmC,EAAE,6LAA6L;QAClO,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AAlCD,kEAkCC","sourcesContent":["import { defaultSharedRootScripts } from './shared-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\"tsc:showConfig\": \"ynpx get-current-tsconfig -p\",\n\t}\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/pkg-entry-util",
3
- "version": "2.0.22",
3
+ "version": "2.0.24",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "yarn",
@@ -56,8 +56,8 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@ts-type/package-dts": "^2.0.8",
59
- "@yarn-tool/find-root": "^2.0.12",
60
- "@yarn-tool/resolve-package": "^2.0.10",
59
+ "@yarn-tool/find-root": "^2.0.13",
60
+ "@yarn-tool/resolve-package": "^2.0.11",
61
61
  "fs-extra": "^10.1.0",
62
62
  "tslib": ">=2",
63
63
  "upath2": "^3.1.19"
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "39eb95e4e4843dc78aca551c0ed3cddcf88438e1"
69
+ "gitHead": "8939271c9e56d8e75885a1b9c243031eee6a8271"
70
70
  }