@yarn-tool/workspaces-project 1.0.59 → 1.0.63
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 +38 -0
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/lib/util.js +1 -1
- package/lib/util.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.63](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/workspaces-project@1.0.62...@yarn-tool/workspaces-project@1.0.63) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @yarn-tool/workspaces-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.62](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/workspaces-project@1.0.61...@yarn-tool/workspaces-project@1.0.62) (2021-12-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @yarn-tool/workspaces-project
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.0.61](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/workspaces-project@1.0.60...@yarn-tool/workspaces-project@1.0.61) (2021-12-16)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### 🔖 Miscellaneous
|
|
26
|
+
|
|
27
|
+
* . ([104475f](https://github.com/bluelovers/ws-yarn-workspaces/commit/104475f2baa62e53dcc4cd6f3fb3a425cba1c88d))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [1.0.60](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/workspaces-project@1.0.59...@yarn-tool/workspaces-project@1.0.60) (2021-12-06)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### ♻️ Chores
|
|
37
|
+
|
|
38
|
+
* **deps:** update deps ([0377f3d](https://github.com/bluelovers/ws-yarn-workspaces/commit/0377f3da359fd07fb6cfaa86accaefaef993036c))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [1.0.59](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/workspaces-project@1.0.58...@yarn-tool/workspaces-project@1.0.59) (2021-11-28)
|
|
7
45
|
|
|
8
46
|
|
package/index.js
CHANGED
|
@@ -5,10 +5,10 @@ exports.WorkspacesProject = void 0;
|
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const project_1 = require("@lerna/project");
|
|
7
7
|
const upath2_1 = require("upath2");
|
|
8
|
-
const core_1 =
|
|
8
|
+
const core_1 = tslib_1.__importDefault(require("find-yarn-workspace-root2/core"));
|
|
9
9
|
const util_1 = require("./lib/util");
|
|
10
10
|
const lodash_1 = require("lodash");
|
|
11
|
-
const sort_object_keys2_1 =
|
|
11
|
+
const sort_object_keys2_1 = tslib_1.__importDefault(require("sort-object-keys2"));
|
|
12
12
|
const fs_extra_1 = require("fs-extra");
|
|
13
13
|
class WorkspacesProject {
|
|
14
14
|
constructor(cwd, options) {
|
|
@@ -38,13 +38,13 @@ class WorkspacesProject {
|
|
|
38
38
|
this._project.rootConfigLocation = (0, upath2_1.normalize)(this._project.rootConfigLocation);
|
|
39
39
|
}
|
|
40
40
|
_hasInternal(field) {
|
|
41
|
-
return field in
|
|
41
|
+
return field in tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f");
|
|
42
42
|
}
|
|
43
43
|
_getInternal(field) {
|
|
44
|
-
return
|
|
44
|
+
return tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f")[field];
|
|
45
45
|
}
|
|
46
46
|
_setInternal(field, value) {
|
|
47
|
-
return
|
|
47
|
+
return tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f")[field] = value;
|
|
48
48
|
}
|
|
49
49
|
get rootPath() {
|
|
50
50
|
return this._project.rootPath;
|
|
@@ -89,7 +89,7 @@ class WorkspacesProject {
|
|
|
89
89
|
if (!this.workspaces.includes(value)) {
|
|
90
90
|
throw new RangeError(`${value} not exists in ${this.workspaces}`);
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f").defaultWorkspace = value;
|
|
93
93
|
}
|
|
94
94
|
isIndependent() {
|
|
95
95
|
return this.version === "independent" /* independent */;
|
|
@@ -139,13 +139,13 @@ class WorkspacesProject {
|
|
|
139
139
|
get releaseConfig() {
|
|
140
140
|
var _a, _b, _c;
|
|
141
141
|
const command = this._project.config.command;
|
|
142
|
-
|
|
142
|
+
tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f").releaseConfig = (0, lodash_1.merge)(tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f").releaseConfig, command === null || command === void 0 ? void 0 : command.version, command === null || command === void 0 ? void 0 : command.publish, {
|
|
143
143
|
changelogPreset: this.changelogPreset,
|
|
144
144
|
bump: this.bump,
|
|
145
145
|
conventionalGraduate: (_b = (_a = command === null || command === void 0 ? void 0 : command.publish) === null || _a === void 0 ? void 0 : _a.conventionalGraduate) !== null && _b !== void 0 ? _b : (_c = command === null || command === void 0 ? void 0 : command.version) === null || _c === void 0 ? void 0 : _c.conventionalGraduate,
|
|
146
146
|
});
|
|
147
|
-
|
|
148
|
-
return
|
|
147
|
+
tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f").releaseConfig = (0, sort_object_keys2_1.default)(tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f").releaseConfig);
|
|
148
|
+
return tslib_1.__classPrivateFieldGet(this, _WorkspacesProject_internal, "f").releaseConfig;
|
|
149
149
|
}
|
|
150
150
|
existsLernaConfigFile() {
|
|
151
151
|
return (0, fs_extra_1.pathExistsSync)(this.lernaConfigLocation);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,4CAAyD;AACzD,mCAA4C;AAE5C,uFAA+D;AAC/D,qCAAwD;AAGxD,mCAA+B;AAC/B,uFAA+C;AAC/C,uCAA0C;AAE1C,MAAa,iBAAiB;IAY7B,YAAY,GAAY,EAAE,OAEzB;QAJD,sCAAwC,EAAS,EAAC;QAMjD,GAAG,GAAG,IAAA,gBAAO,EAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAEpC,IAAI,IAAI,GAAG,IAAA,cAAiB,EAAC,GAAG,CAAC,CAAC;QAElC,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAY,CAAC,GAAG,CAAC,CAAA;QACrC,IAAI,QAAQ,GAAW,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAE9C,QAAQ,IAAA,iBAAU,EAAC;YAClB,IAAI;YACJ,QAAQ;SACR,EAAE,OAAO,CAAC,EACX;YACC;gBACC,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAY,CAAC,IAAI,CAAC,CAAC;gBACvC,MAAM;YACP;gBACC,MAAM,IAAI,KAAK,CAAC,uDAAuD,GAAG,WAAW,IAAI,YAAY,QAAQ,EAAE,CAAC,CAAC;gBACjH,MAAM;SACP;QAED,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAChB;YACC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,KAAK,EACvF;gBACC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;gBACxB,IAAI,CAAC,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;aACjC;SACD;QA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AAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAA;QAE5C,oCAAA,IAAI,mCAAU,CAAC,aAAa,GAAG,IAAA,cAAK,EAAC,oCAAA,IAAI,mCAAU,CAAC,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE;YACtG,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,oBAAoB,EAAE,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,oBAAoB,mCAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,oBAAoB;SACtG,CAAC,CAAC;QAEH,oCAAA,IAAI,mCAAU,CAAC,aAAa,GAAG,IAAA,2BAAc,EAAC,oCAAA,IAAI,mCAAU,CAAC,aAAa,CAAQ,CAAA;QAElF,OAAO,oCAAA,IAAI,mCAAU,CAAC,aAAa,CAAA;IACpC,CAAC;IAED,qBAAqB;QAEpB,OAAO,IAAA,yBAAc,EAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IAChD,CAAC;CAED;AArOD,8CAqOC;;AAED,kBAAe,iBAAiB,CAAA","sourcesContent":["import { Project as LernaProject } from '@lerna/project';\nimport { resolve, normalize } from 'upath2';\nimport { IWorkspacesProjectInternal, EnumWorkspacesProject, IPackedManifest } from './lib/types';\nimport findWorkspaceRoot from 'find-yarn-workspace-root2/core';\nimport { checkPaths, EnumCheckPaths } from './lib/util';\nimport type { ILernaJson, IReleaseType } from '@ts-type/package-dts/lerna-json';\nimport type { IChangelogPreset } from '@yarn-tool/changelog';\nimport { merge } from 'lodash';\nimport sortObjectKeys from 'sort-object-keys2';\nimport { pathExistsSync } from 'fs-extra';\n\nexport class WorkspacesProject\n{\n\n\t/**\n\t * @see https://github.com/lerna/lerna/tree/master/core/project\n\t */\n\tprotected _project: LernaProject & {\n\t\tconfig: ILernaJson,\n\t};\n\n\t#internal: IWorkspacesProjectInternal = {} as any;\n\n\tconstructor(cwd?: string, options?: {\n\t\tskipStrictCheck?: boolean\n\t})\n\t{\n\t\tcwd = resolve(cwd || process.cwd());\n\n\t\tlet root = findWorkspaceRoot(cwd);\n\n\t\tthis._project = new LernaProject(cwd)\n\t\tlet rootPath: string = this._project.rootPath;\n\n\t\tswitch (checkPaths({\n\t\t\troot,\n\t\t\trootPath,\n\t\t}, options))\n\t\t{\n\t\t\tcase EnumCheckPaths.root:\n\t\t\t\tthis._project = new LernaProject(root);\n\t\t\t\tbreak;\n\t\t\tcase EnumCheckPaths.failed:\n\t\t\t\tthrow new Error(`lerna root is not match yarn workspaces root.\\ncwd: ${cwd}\\nyarn: ${root}\\nlerna: ${rootPath}`);\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (root?.length)\n\t\t{\n\t\t\tif (typeof this.config.npmClient === 'undefined' && this.config.useWorkspaces !== false)\n\t\t\t{\n\t\t\t\tthis.npmClient = 'yarn';\n\t\t\t\tthis.config.useWorkspaces = true;\n\t\t\t}\n\t\t}\n\n\t\tthis._project.rootPath = normalize(this._project.rootPath);\n\n\t\tthis._project.rootConfigLocation = normalize(this._project.rootConfigLocation);\n\t}\n\n\tprotected _hasInternal<K extends keyof IWorkspacesProjectInternal>(field: K)\n\t{\n\t\treturn field in this.#internal\n\t}\n\n\tprotected _getInternal<K extends keyof IWorkspacesProjectInternal>(field: K)\n\t{\n\t\treturn this.#internal[field]\n\t}\n\n\tprotected _setInternal<K extends keyof IWorkspacesProjectInternal>(field: K, value: IWorkspacesProjectInternal[K])\n\t{\n\t\treturn this.#internal[field] = value\n\t}\n\n\tget rootPath(): string\n\t{\n\t\treturn this._project.rootPath\n\t}\n\n\tget lernaConfigLocation(): string\n\t{\n\t\treturn this._project.rootConfigLocation\n\t}\n\n\tget npmClient(): string\n\t{\n\t\treturn this._project.config.npmClient\n\t}\n\n\tset npmClient(value: string)\n\t{\n\t\tthis._project.config.npmClient = value\n\t}\n\n\tget workspaces(): string[]\n\t{\n\t\tlet ws: string[];\n\n\t\tif (this._hasInternal('workspaces'))\n\t\t{\n\t\t\tws = this._getInternal('workspaces')\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tws = this._project.packageConfigs;\n\t\t\t}\n\t\t\tcatch (e)\n\t\t\t{\n\n\t\t\t}\n\n\t\t\tif (!ws?.length)\n\t\t\t{\n\t\t\t\tws = [EnumWorkspacesProject.workspace]\n\t\t\t}\n\n\t\t\tthis._setInternal('workspaces', ws)\n\t\t}\n\n\t\treturn ws;\n\t}\n\n\tget defaultWorkspace(): string\n\t{\n\t\tif (this._hasInternal('defaultWorkspace'))\n\t\t{\n\t\t\treturn this._getInternal('defaultWorkspace')\n\t\t}\n\n\t\tif (this.workspaces.includes(EnumWorkspacesProject.workspace))\n\t\t{\n\t\t\treturn EnumWorkspacesProject.workspace\n\t\t}\n\n\t\treturn this.workspaces[0]\n\t}\n\n\tset defaultWorkspace(value: string)\n\t{\n\t\tif (!this.workspaces.includes(value))\n\t\t{\n\t\t\tthrow new RangeError(`${value} not exists in ${this.workspaces}`)\n\t\t}\n\n\t\tthis.#internal.defaultWorkspace = value;\n\t}\n\n\tisIndependent()\n\t{\n\t\treturn this.version === EnumWorkspacesProject.independent;\n\t}\n\n\tget version(): string | EnumWorkspacesProject.independent\n\t{\n\t\treturn this._project.config.version ?? EnumWorkspacesProject.independent;\n\t}\n\n\tset version(val: string | EnumWorkspacesProject.independent)\n\t{\n\t\tthis._project.config.version = val;\n\t}\n\n\t/**\n\t * @see https://github.com/lerna/lerna/tree/master/core/package\n\t */\n\tget manifest(): IPackedManifest\n\t{\n\t\treturn this._project.manifest\n\t}\n\n\tget config(): ILernaJson\n\t{\n\t\tlet ws = this.workspaces;\n\n\t\tif ('workspaces' in this._project.config)\n\t\t{\n\t\t\tthis._project.config.workspaces = ws\n\t\t}\n\t\telse if ('packages' in this._project.config || 1)\n\t\t{\n\t\t\tthis._project.config.packages = ws\n\t\t}\n\n\t\tthis._project.config.version = this.version;\n\n\t\tlet w = this.defaultWorkspace;\n\n\t\tif (ws[0] !== w)\n\t\t{\n\t\t\tlet i = ws.indexOf(w)\n\n\t\t\tif (i !== -1)\n\t\t\t{\n\t\t\t\tws.splice(i, 1);\n\t\t\t\tws.unshift(w)\n\t\t\t}\n\n\t\t}\n\n\t\treturn this._project.config\n\t}\n\n\tget bump(): IReleaseType\n\t{\n\t\tconst command = this._project.config.command\n\n\t\treturn command?.publish?.bump ?? command?.version?.bump\n\t}\n\n\tget changelogPreset(): IChangelogPreset\n\t{\n\t\tconst command = this._project.config.command\n\n\t\treturn command?.version?.changelogPreset ?? command?.publish?.changelogPreset\n\t}\n\n\tget releaseConfig()\n\t{\n\t\tconst command = this._project.config.command\n\n\t\tthis.#internal.releaseConfig = merge(this.#internal.releaseConfig, command?.version, command?.publish, {\n\t\t\tchangelogPreset: this.changelogPreset,\n\t\t\tbump: this.bump,\n\t\t\tconventionalGraduate: command?.publish?.conventionalGraduate ?? command?.version?.conventionalGraduate,\n\t\t});\n\n\t\tthis.#internal.releaseConfig = sortObjectKeys(this.#internal.releaseConfig) as any\n\n\t\treturn this.#internal.releaseConfig\n\t}\n\n\texistsLernaConfigFile()\n\t{\n\t\treturn pathExistsSync(this.lernaConfigLocation)\n\t}\n\n}\n\nexport default WorkspacesProject\n\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,4CAAyD;AACzD,mCAA4C;AAE5C,kFAA+D;AAC/D,qCAAwD;AAGxD,mCAA+B;AAC/B,kFAA+C;AAC/C,uCAA0C;AAE1C,MAAa,iBAAiB;IAY7B,YAAY,GAAY,EAAE,OAEzB;QAJD,sCAAwC,EAAS,EAAC;QAMjD,GAAG,GAAG,IAAA,gBAAO,EAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,C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OAAO,0CAAE,oBAAoB;SACtG,CAAC,CAAC;QAEH,+BAAA,IAAI,mCAAU,CAAC,aAAa,GAAG,IAAA,2BAAc,EAAC,+BAAA,IAAI,mCAAU,CAAC,aAAa,CAAQ,CAAA;QAElF,OAAO,+BAAA,IAAI,mCAAU,CAAC,aAAa,CAAA;IACpC,CAAC;IAED,qBAAqB;QAEpB,OAAO,IAAA,yBAAc,EAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IAChD,CAAC;CAED;AArOD,8CAqOC;;AAED,kBAAe,iBAAiB,CAAA","sourcesContent":["import { Project as LernaProject } from '@lerna/project';\nimport { resolve, normalize } from 'upath2';\nimport { IWorkspacesProjectInternal, EnumWorkspacesProject, IPackedManifest } from './lib/types';\nimport findWorkspaceRoot from 'find-yarn-workspace-root2/core';\nimport { checkPaths, EnumCheckPaths } from './lib/util';\nimport type { ILernaJson, IReleaseType } from '@ts-type/package-dts/lerna-json';\nimport type { IChangelogPreset } from '@yarn-tool/changelog';\nimport { merge } from 'lodash';\nimport sortObjectKeys from 'sort-object-keys2';\nimport { pathExistsSync } from 'fs-extra';\n\nexport class WorkspacesProject\n{\n\n\t/**\n\t * @see https://github.com/lerna/lerna/tree/master/core/project\n\t */\n\tprotected _project: LernaProject & {\n\t\tconfig: ILernaJson,\n\t};\n\n\t#internal: IWorkspacesProjectInternal = {} as any;\n\n\tconstructor(cwd?: string, options?: {\n\t\tskipStrictCheck?: boolean\n\t})\n\t{\n\t\tcwd = resolve(cwd || process.cwd());\n\n\t\tlet root = findWorkspaceRoot(cwd);\n\n\t\tthis._project = new LernaProject(cwd)\n\t\tlet rootPath: string = this._project.rootPath;\n\n\t\tswitch (checkPaths({\n\t\t\troot,\n\t\t\trootPath,\n\t\t}, options))\n\t\t{\n\t\t\tcase EnumCheckPaths.root:\n\t\t\t\tthis._project = new LernaProject(root);\n\t\t\t\tbreak;\n\t\t\tcase EnumCheckPaths.failed:\n\t\t\t\tthrow new Error(`lerna root is not match yarn workspaces root.\\ncwd: ${cwd}\\nyarn: ${root}\\nlerna: ${rootPath}`);\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (root?.length)\n\t\t{\n\t\t\tif (typeof this.config.npmClient === 'undefined' && this.config.useWorkspaces !== false)\n\t\t\t{\n\t\t\t\tthis.npmClient = 'yarn';\n\t\t\t\tthis.config.useWorkspaces = true;\n\t\t\t}\n\t\t}\n\n\t\tthis._project.rootPath = normalize(this._project.rootPath);\n\n\t\tthis._project.rootConfigLocation = normalize(this._project.rootConfigLocation);\n\t}\n\n\tprotected _hasInternal<K extends keyof IWorkspacesProjectInternal>(field: K)\n\t{\n\t\treturn field in this.#internal\n\t}\n\n\tprotected _getInternal<K extends keyof IWorkspacesProjectInternal>(field: K)\n\t{\n\t\treturn this.#internal[field]\n\t}\n\n\tprotected _setInternal<K extends keyof IWorkspacesProjectInternal>(field: K, value: IWorkspacesProjectInternal[K])\n\t{\n\t\treturn this.#internal[field] = value\n\t}\n\n\tget rootPath(): string\n\t{\n\t\treturn this._project.rootPath\n\t}\n\n\tget lernaConfigLocation(): string\n\t{\n\t\treturn this._project.rootConfigLocation\n\t}\n\n\tget npmClient(): string\n\t{\n\t\treturn this._project.config.npmClient\n\t}\n\n\tset npmClient(value: string)\n\t{\n\t\tthis._project.config.npmClient = value\n\t}\n\n\tget workspaces(): string[]\n\t{\n\t\tlet ws: string[];\n\n\t\tif (this._hasInternal('workspaces'))\n\t\t{\n\t\t\tws = this._getInternal('workspaces')\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tws = this._project.packageConfigs;\n\t\t\t}\n\t\t\tcatch (e)\n\t\t\t{\n\n\t\t\t}\n\n\t\t\tif (!ws?.length)\n\t\t\t{\n\t\t\t\tws = [EnumWorkspacesProject.workspace]\n\t\t\t}\n\n\t\t\tthis._setInternal('workspaces', ws)\n\t\t}\n\n\t\treturn ws;\n\t}\n\n\tget defaultWorkspace(): string\n\t{\n\t\tif (this._hasInternal('defaultWorkspace'))\n\t\t{\n\t\t\treturn this._getInternal('defaultWorkspace')\n\t\t}\n\n\t\tif (this.workspaces.includes(EnumWorkspacesProject.workspace))\n\t\t{\n\t\t\treturn EnumWorkspacesProject.workspace\n\t\t}\n\n\t\treturn this.workspaces[0]\n\t}\n\n\tset defaultWorkspace(value: string)\n\t{\n\t\tif (!this.workspaces.includes(value))\n\t\t{\n\t\t\tthrow new RangeError(`${value} not exists in ${this.workspaces}`)\n\t\t}\n\n\t\tthis.#internal.defaultWorkspace = value;\n\t}\n\n\tisIndependent()\n\t{\n\t\treturn this.version === EnumWorkspacesProject.independent;\n\t}\n\n\tget version(): string | EnumWorkspacesProject.independent\n\t{\n\t\treturn this._project.config.version ?? EnumWorkspacesProject.independent;\n\t}\n\n\tset version(val: string | EnumWorkspacesProject.independent)\n\t{\n\t\tthis._project.config.version = val;\n\t}\n\n\t/**\n\t * @see https://github.com/lerna/lerna/tree/master/core/package\n\t */\n\tget manifest(): IPackedManifest\n\t{\n\t\treturn this._project.manifest\n\t}\n\n\tget config(): ILernaJson\n\t{\n\t\tlet ws = this.workspaces;\n\n\t\tif ('workspaces' in this._project.config)\n\t\t{\n\t\t\tthis._project.config.workspaces = ws\n\t\t}\n\t\telse if ('packages' in this._project.config || 1)\n\t\t{\n\t\t\tthis._project.config.packages = ws\n\t\t}\n\n\t\tthis._project.config.version = this.version;\n\n\t\tlet w = this.defaultWorkspace;\n\n\t\tif (ws[0] !== w)\n\t\t{\n\t\t\tlet i = ws.indexOf(w)\n\n\t\t\tif (i !== -1)\n\t\t\t{\n\t\t\t\tws.splice(i, 1);\n\t\t\t\tws.unshift(w)\n\t\t\t}\n\n\t\t}\n\n\t\treturn this._project.config\n\t}\n\n\tget bump(): IReleaseType\n\t{\n\t\tconst command = this._project.config.command\n\n\t\treturn command?.publish?.bump ?? command?.version?.bump\n\t}\n\n\tget changelogPreset(): IChangelogPreset\n\t{\n\t\tconst command = this._project.config.command\n\n\t\treturn command?.version?.changelogPreset ?? command?.publish?.changelogPreset\n\t}\n\n\tget releaseConfig()\n\t{\n\t\tconst command = this._project.config.command\n\n\t\tthis.#internal.releaseConfig = merge(this.#internal.releaseConfig, command?.version, command?.publish, {\n\t\t\tchangelogPreset: this.changelogPreset,\n\t\t\tbump: this.bump,\n\t\t\tconventionalGraduate: command?.publish?.conventionalGraduate ?? command?.version?.conventionalGraduate,\n\t\t});\n\n\t\tthis.#internal.releaseConfig = sortObjectKeys(this.#internal.releaseConfig) as any\n\n\t\treturn this.#internal.releaseConfig\n\t}\n\n\texistsLernaConfigFile()\n\t{\n\t\treturn pathExistsSync(this.lernaConfigLocation)\n\t}\n\n}\n\nexport default WorkspacesProject\n\n"]}
|
package/lib/util.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkPaths = exports.EnumCheckPaths = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const path_dir_normalize_1 =
|
|
5
|
+
const path_dir_normalize_1 = tslib_1.__importDefault(require("path-dir-normalize"));
|
|
6
6
|
var EnumCheckPaths;
|
|
7
7
|
(function (EnumCheckPaths) {
|
|
8
8
|
EnumCheckPaths[EnumCheckPaths["root"] = 1] = "root";
|
package/lib/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["util.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["util.ts"],"names":[],"mappings":";;;;AAAA,oFAAkD;AAElD,IAAkB,cAKjB;AALD,WAAkB,cAAc;IAE/B,mDAAQ,CAAA;IACR,2DAAY,CAAA;IACZ,wDAAW,CAAA;AACZ,CAAC,EALiB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAK/B;AAED,SAAgB,UAAU,CAAC,KAG1B,EAAE,OAEF;IAEA,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;IAE9B,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,MAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAA,EACpC;QACC,IAAI,GAAG,IAAA,4BAAgB,EAAC,IAAI,CAAC,CAAA;QAC7B,QAAQ,GAAG,IAAA,4BAAgB,EAAC,QAAQ,CAAC,CAAA;QAErC,IAAI,IAAI,KAAK,QAAQ,EACrB;YACC,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAChC;gBACC,oBAA0B;aAC1B;iBACI,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAA,EAClC;gBACC,uBAA4B;aAC5B;SACD;QAED,wBAA8B;KAC9B;SACI,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,EACzB;QACC,wBAA8B;KAC9B;IAED,uBAA4B;AAC7B,CAAC;AAlCD,gCAkCC","sourcesContent":["import pathDirNormalize from 'path-dir-normalize';\n\nexport const enum EnumCheckPaths\n{\n\troot = 1,\n\trootPath = 0,\n\tfailed = -1\n}\n\nexport function checkPaths(input: {\n\troot,\n\trootPath,\n}, options?: {\n\tskipStrictCheck?: boolean\n}): EnumCheckPaths\n{\n\tlet { root, rootPath } = input\n\n\tif (root?.length && rootPath?.length)\n\t{\n\t\troot = pathDirNormalize(root)\n\t\trootPath = pathDirNormalize(rootPath)\n\n\t\tif (root !== rootPath)\n\t\t{\n\t\t\tif (rootPath.indexOf(root) === 0)\n\t\t\t{\n\t\t\t\treturn EnumCheckPaths.root\n\t\t\t}\n\t\t\telse if (!options?.skipStrictCheck)\n\t\t\t{\n\t\t\t\treturn EnumCheckPaths.failed\n\t\t\t}\n\t\t}\n\n\t\treturn EnumCheckPaths.rootPath\n\t}\n\telse if (rootPath?.length)\n\t{\n\t\treturn EnumCheckPaths.rootPath\n\t}\n\n\treturn EnumCheckPaths.failed\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/workspaces-project",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"description": "mixin yarn/lerna workspaces",
|
|
5
5
|
"homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/workspaces-project#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@lerna/project": "^4.0.0",
|
|
30
|
-
"@ts-type/package-dts": "^1.0.
|
|
30
|
+
"@ts-type/package-dts": "^1.0.56",
|
|
31
31
|
"@types/npm-package-arg": "*",
|
|
32
|
-
"@yarn-tool/changelog": "^1.0.
|
|
33
|
-
"find-yarn-workspace-root2": "^1.2.
|
|
32
|
+
"@yarn-tool/changelog": "^1.0.64",
|
|
33
|
+
"find-yarn-workspace-root2": "^1.2.35",
|
|
34
34
|
"fs-extra": "^10.0.0",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"path-dir-normalize": "^1.0.21",
|
|
37
37
|
"sort-object-keys2": "^2.0.3",
|
|
38
|
-
"ts-type": "^2.
|
|
38
|
+
"ts-type": "^2.1.2",
|
|
39
39
|
"tslib": "^2.3.1",
|
|
40
40
|
"upath2": "^3.1.10"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "8b21c26f0c9188f1748b4119034ddf9c640d482f"
|
|
46
46
|
}
|