create-yarn-workspaces 3.0.53 → 3.0.55
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 +28 -0
- package/lib/index.js +2 -5
- package/lib/index.js.map +1 -1
- package/lib/package.demo.json +1 -1
- package/package.json +9 -9
- package/yargs-setting.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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.55](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@3.0.54...create-yarn-workspaces@3.0.55) (2026-11-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🛠 Build System
|
|
11
|
+
|
|
12
|
+
* **cache:** update cache-versions ([24a7d0d](https://github.com/bluelovers/ws-yarn-workspaces/commit/24a7d0da1e8fe92000779683c98f092b35240aaf))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [3.0.54](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@3.0.53...create-yarn-workspaces@3.0.54) (2026-11-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* **@yarn-tool/pkg-entry-util:** 新增自動化腳本處理邏輯並整合至各工具模組
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### 📦 Code Refactoring
|
|
25
|
+
|
|
26
|
+
* **@yarn-tool/pkg-entry-util:** 新增自動化腳本處理邏輯並整合至各工具模組 ([20a533e](https://github.com/bluelovers/ws-yarn-workspaces/commit/20a533e36b08d5a797dbdd6ee1df0f615af64ba9))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### 🔖 Miscellaneous
|
|
30
|
+
|
|
31
|
+
* . ([9c9eaf5](https://github.com/bluelovers/ws-yarn-workspaces/commit/9c9eaf51d3f3e778b6a019f8c519043a09bf0e99))
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
## [3.0.53](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@3.0.52...create-yarn-workspaces@3.0.53) (2026-11-20)
|
|
7
35
|
|
|
8
36
|
**Note:** Version bump only for package create-yarn-workspaces
|
package/lib/index.js
CHANGED
|
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getDefaultPackageJson = getDefaultPackageJson;
|
|
4
4
|
exports.getDefaultTsconfig = getDefaultTsconfig;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const
|
|
7
|
-
const dummy_1 = require("@yarn-tool/pkg-entry-util/lib/preset/scripts/dummy");
|
|
6
|
+
const scripts_auto_1 = require("@yarn-tool/pkg-entry-util/lib/field/scripts-auto");
|
|
8
7
|
// @ts-ignore
|
|
9
8
|
const package_demo_json_1 = require("./package.demo.json");
|
|
10
9
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
@@ -27,7 +26,7 @@ function getDefaultPackageJson(name) {
|
|
|
27
26
|
keywords: [
|
|
28
27
|
"create-by-yarn-tool",
|
|
29
28
|
],
|
|
30
|
-
"scripts": (0,
|
|
29
|
+
"scripts": (0, scripts_auto_1.createWorkspaceRootScripts)(),
|
|
31
30
|
dependencies: package_demo_json_1.dependencies,
|
|
32
31
|
devDependencies: package_demo_json_1.devDependencies,
|
|
33
32
|
peerDependencies: package_demo_json_1.peerDependencies,
|
|
@@ -55,8 +54,6 @@ function getDefaultPackageJson(name) {
|
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
}
|
|
58
|
-
/** 補上 workspaces 專用的預設腳本(已存在的腳本不會被覆蓋)。 */
|
|
59
|
-
(0, dummy_1.fillDummyScripts)(json.scripts, 'workspaces');
|
|
60
57
|
return json;
|
|
61
58
|
}
|
|
62
59
|
/**
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAYA,sDAsDC;AAQD,gDAKC;;AA9ED,mFAA8F;AAC9F,aAAa;AACb,2DAAsF;AACtF,2EAAmC;AAEnC;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,IAAa;IAElD,IAAI,IAAI,GAAiB;QACxB,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,OAAO;QAClB,SAAS,EAAE,IAAI;QACf,oCAAoC;QACpC,YAAY,EAAE;YACb,YAAY;SACZ;QACD,wCAAwC;QACxC,QAAQ,EAAE;YACT,qBAAqB;SACrB;QACD,SAAS,EAAE,IAAA,yCAA0B,GAAE;QACvC,YAAY,EAAZ,gCAAY;QACZ,eAAe,EAAf,mCAAe;QACf,gBAAgB,EAAhB,oCAAgB;QAChB,qBAAqB;KACd,CAAC;IAET,yCAAyC;IACzC,KAAK,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,CAAU,EACnF,CAAC;QACA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EACf,CAAC;YACA,SAAS;QACV,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,sBAAI,CAAC,IAAI,CAAC,EAC/B,CAAC;YACA,SAAS;QACV,CAAC;QAED,2CAA2C;QAC3C,IAAI,CAAC,IAAI,CAAC,GAAG;YACZ,GAAG,IAAI,CAAC,IAAI,CAAC;SACb,CAAC;QAEF,IAAI;aACF,OAAO,CAAC,UAAU,GAAG;YAErB,+BAA+B;YAC/B,IAAI,sBAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EACnB,CAAC;gBACA,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,sBAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;YACnC,CAAC;QACF,CAAC,CAAC,CACF;IACF,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB;IAEjC,OAAO;QACN,OAAO,EAAE,uCAAuC;KAChD,CAAA;AACF,CAAC","sourcesContent":["import { IPackageJson } from '@ts-type/package-dts/package-json';\nimport { createWorkspaceRootScripts } from '@yarn-tool/pkg-entry-util/lib/field/scripts-auto';\n// @ts-ignore\nimport { dependencies, devDependencies, peerDependencies } from './package.demo.json';\nimport _pkg from '../package.json';\n\n/**\n * 取得新專案根目錄的預設 package.json 內容。\n *\n * @param name 套件名稱;未提供時保留 undefined 交由呼叫端補上。\n * @returns 含預設 scripts 與依賴的 package.json 物件。\n */\nexport function getDefaultPackageJson(name?: string): IPackageJson\n{\n\tlet json: IPackageJson = {\n\t\t\"name\": name,\n\t\t\"version\": \"1.0.0\",\n\t\t\"private\": true,\n\t\t// \"packageManager\": \"yarn@1.22.19\",\n\t\t\"workspaces\": [\n\t\t\t\"packages/*\",\n\t\t],\n\t\t/** 預設標記建立來源,方便日後辨識此專案由 yarn-tool 產生。 */\n\t\tkeywords: [\n\t\t\t\"create-by-yarn-tool\",\n\t\t],\n\t\t\"scripts\": createWorkspaceRootScripts(),\n\t\tdependencies,\n\t\tdevDependencies,\n\t\tpeerDependencies,\n\t\t// \"resolutions\": {},\n\t} as any;\n\n\t/** 以本套件自身的依賴版本覆寫範本版本,確保產生的專案與工具列版本一致。 */\n\tfor (const deps of ['dependencies', 'devDependencies', 'peerDependencies'] as const)\n\t{\n\t\tif (!json[deps])\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t\tconst keys = Object.keys(json[deps]);\n\n\t\t/** 範本沒有該依賴欄位、或本套件也未宣告時略過,避免憑空新增空的依賴區塊。 */\n\t\tif (!keys.length || !_pkg[deps])\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\n\t\t/** 複製一份再改寫,避免直接動到匯入的範本物件(其為模組快取中的共享實例)。 */\n\t\tjson[deps] = {\n\t\t\t...json[deps],\n\t\t};\n\n\t\tkeys\n\t\t\t.forEach(function (key)\n\t\t\t{\n\t\t\t\t/** 只覆寫本套件也宣告了的鍵,其餘保留範本預設版本。 */\n\t\t\t\tif (_pkg[deps][key])\n\t\t\t\t{\n\t\t\t\t\tjson[deps][key] = _pkg[deps][key];\n\t\t\t\t}\n\t\t\t})\n\t\t;\n\t}\n\n\treturn json;\n}\n\n/**\n * 取得新專案根目錄的預設 tsconfig 內容。\n *\n * @returns 繼承 @bluelovers/tsconfig 的 tsconfig 物件。\n * @deprecated\n */\nexport function getDefaultTsconfig()\n{\n\treturn {\n\t\textends: \"@bluelovers/tsconfig/esm/mapfile.json\",\n\t}\n}\n"]}
|
package/lib/package.demo.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-yarn-workspaces",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.55",
|
|
4
4
|
"description": "Quickly initialize a Workspaces project structure compatible with both Yarn and pnpm And Lerna",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"@ts-type/package-dts": "^3.0.15",
|
|
69
69
|
"@types/jest": "^30.0.0",
|
|
70
70
|
"@types/node": "^26.6.6",
|
|
71
|
-
"@yarn-tool/find-root": "^2.0.
|
|
72
|
-
"@yarn-tool/fix-all": "^3.0.
|
|
73
|
-
"@yarn-tool/pkg-entry-util": "^3.0.
|
|
74
|
-
"@yarn-tool/require-resolve": "^4.0.
|
|
75
|
-
"@yarn-tool/static-file": "^3.0.
|
|
76
|
-
"@yarn-tool/ws-find-up-paths": "^1.0.
|
|
71
|
+
"@yarn-tool/find-root": "^2.0.36",
|
|
72
|
+
"@yarn-tool/fix-all": "^3.0.46",
|
|
73
|
+
"@yarn-tool/pkg-entry-util": "^3.0.36",
|
|
74
|
+
"@yarn-tool/require-resolve": "^4.0.20",
|
|
75
|
+
"@yarn-tool/static-file": "^3.0.42",
|
|
76
|
+
"@yarn-tool/ws-find-up-paths": "^1.0.34",
|
|
77
77
|
"debug-color2": "^1.3.2",
|
|
78
78
|
"fast-glob": "^3.3.3",
|
|
79
79
|
"find-yarn-workspace-root2": "^1.2.61",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"yargs": "<18 >=17.7.2"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@yarn-tool/ncu": "^3.0.
|
|
90
|
+
"@yarn-tool/ncu": "^3.0.28",
|
|
91
91
|
"@yarn-tool/write-package-json": "^1.0.24"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "30a13590b101469f257326ffa3c566384b168035"
|
|
94
94
|
}
|