@yarn-tool/pkg-entry-util 1.0.4 → 1.0.5

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,22 @@
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.5](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@1.0.4...@yarn-tool/pkg-entry-util@1.0.5) (2022-01-13)
7
+
8
+
9
+ ### 📦 Code Refactoring
10
+
11
+ * move to shared preset ([158218f](https://github.com/bluelovers/ws-yarn-workspaces/commit/158218f4e58cfb97a40bed485a46deec8978f454))
12
+
13
+
14
+ ### ♻️ Chores
15
+
16
+ * **deps:** update deps ([7658604](https://github.com/bluelovers/ws-yarn-workspaces/commit/7658604e5cabfa61ed92c2579ecae3d37d3fd737))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.4](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@1.0.3...@yarn-tool/pkg-entry-util@1.0.4) (2022-01-01)
7
23
 
8
24
 
@@ -18,6 +18,9 @@ function fillDummyScripts(scripts, prefix) {
18
18
  'prepack',
19
19
  'pack',
20
20
  'postpack',
21
+ 'pretest',
22
+ 'ci:build',
23
+ 'ci:install',
21
24
  ].forEach(k => {
22
25
  var _a;
23
26
  // @ts-ignore
@@ -1 +1 @@
1
- {"version":3,"file":"dummy.js","sourceRoot":"","sources":["dummy.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB,CAAmC,OAAW,EAAE,MAAe;IAE9F,aAAa;IACb,OAAO,aAAP,OAAO,cAAP,OAAO,IAAP,OAAO,GAAK,EAAE,EAAC;IAEf,IAAI,IAAI,GAAG,QAAQ,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IAExC;QACA,YAAY;QACZ,SAAS;QACT,gBAAgB;QAChB,aAAa;QACb,SAAS;QACT,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,SAAS;QACT,SAAS;QACT,MAAM;QACN,UAAU;KACA,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;;QAEvB,aAAa;QACb,MAAA,OAAO,CAAC,CAAC,qCAAT,OAAO,CAAC,CAAC,IAAM,GAAG,IAAI,IAAI,CAAC,EAAE,EAAA;IAC9B,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AAChB,CAAC;AA1BD,4CA0BC","sourcesContent":["export function fillDummyScripts<T extends Record<string, string>>(scripts?: T, prefix?: string)\n{\n\t// @ts-ignore\n\tscripts ??= {};\n\n\tlet text = `echo ${prefix ?? ''}`.trim();\n\n\t([\n\t\t'preversion',\n\t\t'version',\n\t\t'prepublishOnly',\n\t\t'postversion',\n\t\t'publish',\n\t\t'prepublish',\n\t\t'postpublish',\n\t\t'postpublishOnly',\n\t\t'prepare',\n\t\t'prepack',\n\t\t'pack',\n\t\t'postpack',\n\t] as const).forEach(k =>\n\t{\n\t\t// @ts-ignore\n\t\tscripts[k] ??= `${text} ${k}`\n\t});\n\treturn scripts;\n}\n"]}
1
+ {"version":3,"file":"dummy.js","sourceRoot":"","sources":["dummy.ts"],"names":[],"mappings":";;;AAAA,SAAgB,gBAAgB,CAAmC,OAAW,EAAE,MAAe;IAE9F,aAAa;IACb,OAAO,aAAP,OAAO,cAAP,OAAO,IAAP,OAAO,GAAK,EAAE,EAAC;IAEf,IAAI,IAAI,GAAG,QAAQ,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IAExC;QACA,YAAY;QACZ,SAAS;QACT,gBAAgB;QAChB,aAAa;QACb,SAAS;QACT,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,SAAS;QACT,SAAS;QACT,MAAM;QACN,UAAU;QACV,SAAS;QACT,UAAU;QACV,YAAY;KACF,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;;QAEvB,aAAa;QACb,MAAA,OAAO,CAAC,CAAC,qCAAT,OAAO,CAAC,CAAC,IAAM,GAAG,IAAI,IAAI,CAAC,EAAE,EAAA;IAC9B,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AAChB,CAAC;AA7BD,4CA6BC","sourcesContent":["export function fillDummyScripts<T extends Record<string, string>>(scripts?: T, prefix?: string)\n{\n\t// @ts-ignore\n\tscripts ??= {};\n\n\tlet text = `echo ${prefix ?? ''}`.trim();\n\n\t([\n\t\t'preversion',\n\t\t'version',\n\t\t'prepublishOnly',\n\t\t'postversion',\n\t\t'publish',\n\t\t'prepublish',\n\t\t'postpublish',\n\t\t'postpublishOnly',\n\t\t'prepare',\n\t\t'prepack',\n\t\t'pack',\n\t\t'postpack',\n\t\t'pretest',\n\t\t'ci:build',\n\t\t'ci:install',\n\t] as const).forEach(k =>\n\t{\n\t\t// @ts-ignore\n\t\tscripts[k] ??= `${text} ${k}`\n\t});\n\treturn scripts;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ export declare function defaultRootScripts(): {
2
+ "prepublishOnly:check-bin": string;
3
+ "version:bump": string;
4
+ "npm:publish": string;
5
+ "npm:publish:bump": string;
6
+ "postpublish:git:commit": string;
7
+ "postpublish:git:tag": string;
8
+ "postpublish:changelog": string;
9
+ "postpublish:git:push": string;
10
+ postpublish: string;
11
+ "ci:install": string;
12
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultRootScripts = void 0;
4
+ const shared_root_scripts_1 = require("./shared-root-scripts");
5
+ function defaultRootScripts() {
6
+ return {
7
+ ...(0, shared_root_scripts_1.defaultSharedRootScripts)(),
8
+ "prepublishOnly:check-bin": "ynpx --quiet @yarn-tool/check-pkg-bin",
9
+ "version:bump": "yarn-tool version",
10
+ "npm:publish": "npm publish",
11
+ "npm:publish:bump": "yarn run version:bump && npm publish",
12
+ "postpublish:git:commit": `git commit -m "chore(release): publish" . & echo postpublish:git:commit`,
13
+ "postpublish:git:tag": `ynpx --quiet @yarn-tool/tag`,
14
+ "postpublish:changelog": `ynpx --quiet @yarn-tool/changelog && git add ./CHANGELOG.md`,
15
+ "postpublish:git:push": `git push --follow-tags`,
16
+ "postpublish": `yarn run postpublish:changelog && yarn run postpublish:git:commit && yarn run postpublish:git:tag && yarn run postpublish:git:push`,
17
+ };
18
+ }
19
+ exports.defaultRootScripts = defaultRootScripts;
20
+ //# sourceMappingURL=root-scripts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-scripts.js","sourceRoot":"","sources":["root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAEjE,SAAgB,kBAAkB;IAEjC,OAAO;QACN,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;AAdD,gDAcC","sourcesContent":["import { defaultSharedRootScripts } from './shared-root-scripts';\n\nexport function defaultRootScripts()\n{\n\treturn {\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"]}
@@ -0,0 +1,3 @@
1
+ export declare function defaultSharedRootScripts(): {
2
+ "ci:install": string;
3
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultSharedRootScripts = void 0;
4
+ function defaultSharedRootScripts() {
5
+ return {
6
+ "ci:install": "yarn add -W typescript@next jest ts-jest ts-node ynpx lerna",
7
+ };
8
+ }
9
+ exports.defaultSharedRootScripts = defaultSharedRootScripts;
10
+ //# sourceMappingURL=shared-root-scripts.js.map
@@ -0,0 +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,6DAA6D;KAC3E,CAAA;AACF,CAAC;AALD,4DAKC","sourcesContent":["export function defaultSharedRootScripts()\n{\n\treturn {\n\t\t\"ci:install\": \"yarn add -W typescript@next jest ts-jest ts-node ynpx lerna\",\n\t}\n}\n"]}
@@ -24,4 +24,5 @@ export declare function defaultWorkspaceRootScripts(): {
24
24
  "install:reset-lockfile": string;
25
25
  "ws:fix-all": string;
26
26
  "tsc:showConfig": string;
27
+ "ci:install": string;
27
28
  };
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultWorkspaceRootScripts = void 0;
4
+ const shared_root_scripts_1 = require("./shared-root-scripts");
4
5
  function defaultWorkspaceRootScripts() {
5
6
  return {
7
+ ...(0, shared_root_scripts_1.defaultSharedRootScripts)(),
6
8
  "test:all": "lerna run test --concurrency 1",
7
9
  "build:all": "lerna run build --concurrency 1",
8
10
  "review:all": "lerna run review --concurrency 1",
@@ -1 +1 @@
1
- {"version":3,"file":"ws-root-scripts.js","sourceRoot":"","sources":["ws-root-scripts.ts"],"names":[],"mappings":";;;AAAA,SAAgB,2BAA2B;IAE1C,OAAO;QACN,UAAU,EAAE,gCAAgC;QAC5C,WAAW,EAAE,iCAAiC;QAC9C,YAAY,EAAE,kCAAkC;QAChD,cAAc,EAAE,oCAAoC;QACpD,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE,gBAAgB;QAC9B,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,sCAAsC;QAC7C,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,uCAAuC;QACjD,mBAAmB,EAAE,kEAAkE;QACvF,wBAAwB,EAAE,gBAAgB;QAC1C,sBAAsB,EAAE,mBAAmB;QAC3C,iBAAiB,EAAE,mEAAmE;QACtF,mCAAmC,EAAE,6LAA6L;QAClO,MAAM,EAAE,uBAAuB;QAC/B,wBAAwB,EAAE,oCAAoC;QAC9D,YAAY,EAAC,6CAA6C;QAC1D,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AA7BD,kEA6BC","sourcesContent":["export function defaultWorkspaceRootScripts()\n{\n\treturn {\n\t\t\"test:all\": \"lerna run test --concurrency 1\",\n\t\t\"build:all\": \"lerna run build --concurrency 1\",\n\t\t\"review:all\": \"lerna run review --concurrency 1\",\n\t\t\"coverage:all\": \"lerna run coverage --concurrency 1\",\n\t\t\"lint:all\": \"lerna run lint --concurrency 1\",\n\t\t\"preversion\": \"yt ws run test\",\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:root && yarn run ncu:ws\",\n\t\t\"ncu:root\": \"yarn-tool ncu -u\",\n\t\t\"ncu:ws\": \"yarn-tool ws exec yarn-tool ncu -- -u\",\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\"test\": \"yarn-tool ws run test\",\n\t\t\"install:reset-lockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\"ws:fix-all\":\"yarn-tool fix-all --overwriteHostedGitInfo\",\n\t\t\"tsc:showConfig\": \"ynpx get-current-tsconfig -p\",\n\t}\n}\n"]}
1
+ {"version":3,"file":"ws-root-scripts.js","sourceRoot":"","sources":["ws-root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAEjE,SAAgB,2BAA2B;IAE1C,OAAO;QACN,GAAG,IAAA,8CAAwB,GAAE;QAC7B,UAAU,EAAE,gCAAgC;QAC5C,WAAW,EAAE,iCAAiC;QAC9C,YAAY,EAAE,kCAAkC;QAChD,cAAc,EAAE,oCAAoC;QACpD,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE,gBAAgB;QAC9B,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,sCAAsC;QAC7C,UAAU,EAAE,kBAAkB;QAC9B,QAAQ,EAAE,uCAAuC;QACjD,mBAAmB,EAAE,kEAAkE;QACvF,wBAAwB,EAAE,gBAAgB;QAC1C,sBAAsB,EAAE,mBAAmB;QAC3C,iBAAiB,EAAE,mEAAmE;QACtF,mCAAmC,EAAE,6LAA6L;QAClO,MAAM,EAAE,uBAAuB;QAC/B,wBAAwB,EAAE,oCAAoC;QAC9D,YAAY,EAAC,6CAA6C;QAC1D,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AA9BD,kEA8BC","sourcesContent":["import { defaultSharedRootScripts } from './shared-root-scripts';\n\nexport function defaultWorkspaceRootScripts()\n{\n\treturn {\n\t\t...defaultSharedRootScripts(),\n\t\t\"test:all\": \"lerna run test --concurrency 1\",\n\t\t\"build:all\": \"lerna run build --concurrency 1\",\n\t\t\"review:all\": \"lerna run review --concurrency 1\",\n\t\t\"coverage:all\": \"lerna run coverage --concurrency 1\",\n\t\t\"lint:all\": \"lerna run lint --concurrency 1\",\n\t\t\"preversion\": \"yt ws run test\",\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:root && yarn run ncu:ws\",\n\t\t\"ncu:root\": \"yarn-tool ncu -u\",\n\t\t\"ncu:ws\": \"yarn-tool ws exec yarn-tool ncu -- -u\",\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\"test\": \"yarn-tool ws run test\",\n\t\t\"install:reset-lockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\"ws:fix-all\":\"yarn-tool fix-all --overwriteHostedGitInfo\",\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": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "yarn",
@@ -51,8 +51,8 @@
51
51
  "tsc:showConfig": "ynpx get-current-tsconfig -p"
52
52
  },
53
53
  "dependencies": {
54
- "@ts-type/package-dts": "^1.0.56",
55
- "@yarn-tool/find-root": "^1.0.60",
54
+ "@ts-type/package-dts": "^1.0.58",
55
+ "@yarn-tool/find-root": "^1.0.61",
56
56
  "fs-extra": "^10.0.0",
57
57
  "tslib": "^2.3.1",
58
58
  "upath2": "^3.1.12"
@@ -61,5 +61,5 @@
61
61
  "access": "public"
62
62
  },
63
63
  "packageManager": "yarn@^1.22.11",
64
- "gitHead": "8064859970d5e7ab3e0568475c804767fc70f382"
64
+ "gitHead": "fbb93ec93e0baf2b76dac0e29a19376ce46652e1"
65
65
  }