@yarn-tool/pkg-entry-util 3.0.0 → 3.0.1

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,21 @@
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
+ ## [3.0.1](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@3.0.0...@yarn-tool/pkg-entry-util@3.0.1) (2024-02-28)
7
+
8
+
9
+
10
+ ### ✨ Features
11
+
12
+ * sort semver release type ([df4aec1](https://github.com/bluelovers/ws-yarn-workspaces/commit/df4aec11272e125af14776937a549fa3b1715ae7))
13
+
14
+
15
+ ### 📌 Dependencies
16
+
17
+ * update deps ([d48c90a](https://github.com/bluelovers/ws-yarn-workspaces/commit/d48c90a1f35e626fb9a4dcbb7bad5c5e1164dce1))
18
+
19
+
20
+
6
21
  # [3.0.0](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.25...@yarn-tool/pkg-entry-util@3.0.0) (2023-10-10)
7
22
 
8
23
 
@@ -1,14 +1,14 @@
1
1
  export declare function defaultRootScripts(): {
2
- "prepublishOnly:check-bin": string;
3
- "version:bump": string;
4
- "npm:publish": string;
5
- "npm:publish:bump": string;
6
2
  "postpublish:git:commit": string;
7
3
  "postpublish:git:tag": string;
8
4
  "postpublish:changelog": string;
9
5
  "postpublish:git:push": string;
10
6
  postpublish: string;
11
7
  ncu: string;
8
+ "prepublishOnly:check-bin": string;
9
+ "version:bump": string;
10
+ "npm:publish": string;
11
+ "npm:publish:bump": string;
12
12
  "ci:install": string;
13
13
  "test:jest:clearCache": string;
14
14
  "install:resetLockfile": string;
@@ -4,13 +4,30 @@ exports.defaultRootScripts = void 0;
4
4
  const shared_root_scripts_1 = require("./shared-root-scripts");
5
5
  const pkg_scripts_1 = require("./pkg-scripts");
6
6
  function defaultRootScripts() {
7
+ const bumpVersion = (bump) => {
8
+ return [
9
+ `yarn run version:bump` + (bump ? `:${bump}` : ''),
10
+ `npm publish`,
11
+ ].join(' && ');
12
+ };
7
13
  return {
8
14
  ...(0, pkg_scripts_1.defaultPkgScripts)(),
9
15
  ...(0, shared_root_scripts_1.defaultSharedRootScripts)(),
10
16
  "prepublishOnly:check-bin": "ynpx --quiet @yarn-tool/check-pkg-bin",
11
17
  "version:bump": "yarn-tool version",
12
18
  "npm:publish": "npm publish",
13
- "npm:publish:bump": "yarn run version:bump && npm publish",
19
+ //"npm:publish:bump": "yarn run version:bump && npm publish",
20
+ "npm:publish:bump": bumpVersion(),
21
+ ...[
22
+ 'patch',
23
+ 'minor',
24
+ 'major',
25
+ 'prerelease',
26
+ ].reduce((a, bump, idx) => {
27
+ a[`version:bump:${bump}`] = `yarn run version:bump` + (bump ? ` -- --bump ${bump}` : '');
28
+ a[`npm:publish:bump:${bump}`] = bumpVersion(bump);
29
+ return a;
30
+ }, {}),
14
31
  "postpublish:git:commit": `git commit -m "chore(release): publish" . & echo postpublish:git:commit`,
15
32
  "postpublish:git:tag": `ynpx --quiet @yarn-tool/tag`,
16
33
  "postpublish:changelog": `ynpx --quiet @yarn-tool/changelog && git add ./CHANGELOG.md`,
@@ -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;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"]}
1
+ {"version":3,"file":"root-scripts.js","sourceRoot":"","sources":["root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AACjE,+CAAkD;AAElD,SAAgB,kBAAkB;IAEjC,MAAM,WAAW,GAAG,CAAC,IAAiD,EAAE,EAAE;QAEzE,OAAO;YACN,uBAAuB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAClD,aAAa;SACb,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACf,CAAC,CAAA;IAED,OAAO;QACN,GAAG,IAAA,+BAAiB,GAAE;QACtB,GAAG,IAAA,8CAAwB,GAAE;QAC7B,0BAA0B,EAAE,uCAAuC;QACnE,cAAc,EAAE,mBAAmB;QACnC,aAAa,EAAE,aAAa;QAC5B,6DAA6D;QAC7D,kBAAkB,EAAE,WAAW,EAAE;QAEjC,GAAI;YACH,OAAO;YACP,OAAO;YACP,OAAO;YACP,YAAY;SACF,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;YAEnC,CAAC,CAAC,gBAAgB,IAAI,EAAE,CAAC,GAAG,uBAAuB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACzF,CAAC,CAAC,oBAAoB,IAAI,EAAE,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YAClD,OAAO,CAAC,CAAA;QACT,CAAC,EAAE,EAA4B,CAAC;QAEhC,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;AAtCD,gDAsCC","sourcesContent":["import { defaultSharedRootScripts } from './shared-root-scripts';\nimport { defaultPkgScripts } from './pkg-scripts';\n\nexport function defaultRootScripts()\n{\n\tconst bumpVersion = (bump?: 'major' | 'minor' | 'patch' | 'prerelease') =>\n\t{\n\t\treturn [\n\t\t\t`yarn run version:bump` + (bump ? `:${bump}` : ''),\n\t\t\t`npm publish`,\n\t\t].join(' && ')\n\t}\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\"npm:publish:bump\": bumpVersion(),\n\n\t\t...([\n\t\t\t'patch',\n\t\t\t'minor',\n\t\t\t'major',\n\t\t\t'prerelease',\n\t\t] as const).reduce((a, bump, idx) =>\n\t\t{\n\t\t\ta[`version:bump:${bump}`] = `yarn run version:bump` + (bump ? ` -- --bump ${bump}` : '');\n\t\t\ta[`npm:publish:bump:${bump}`] = bumpVersion(bump);\n\t\t\treturn a\n\t\t}, {} as Record<string, string>),\n\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/pkg-entry-util",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "yarn",
@@ -59,7 +59,7 @@
59
59
  "@ts-type/package-dts": "^2.0.8",
60
60
  "@yarn-tool/find-root": "^2.0.13",
61
61
  "@yarn-tool/resolve-package": "^2.0.11",
62
- "fs-extra": "^11.1.1",
62
+ "fs-extra": "^11.2.0",
63
63
  "tslib": ">=2",
64
64
  "upath2": "^3.1.19"
65
65
  },
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "2b9ea5ea131c1852988b3270d38d594ad3e70559"
70
+ "gitHead": "920c374dcedfbddfb32ae1f1f14033deefd2f80f"
71
71
  }