@yarn-tool/pkg-entry-util 2.0.14 → 2.0.16
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 +30 -0
- package/lib/field/exports.js +3 -2
- package/lib/field/exports.js.map +1 -1
- package/lib/preset/{dummy.d.ts → scripts/dummy.d.ts} +0 -0
- package/lib/preset/{dummy.js → scripts/dummy.js} +1 -1
- package/lib/preset/scripts/dummy.js.map +1 -0
- package/lib/preset/{pkg-scripts.d.ts → scripts/pkg-scripts.d.ts} +3 -1
- package/lib/preset/{pkg-scripts.js → scripts/pkg-scripts.js} +1 -0
- package/lib/preset/scripts/pkg-scripts.js.map +1 -0
- package/lib/preset/{root-scripts.d.ts → scripts/root-scripts.d.ts} +2 -1
- package/lib/preset/{root-scripts.js → scripts/root-scripts.js} +0 -0
- package/lib/preset/{root-scripts.js.map → scripts/root-scripts.js.map} +0 -0
- package/lib/preset/{shared-root-scripts.d.ts → scripts/shared-root-scripts.d.ts} +0 -0
- package/lib/preset/{shared-root-scripts.js → scripts/shared-root-scripts.js} +9 -1
- package/lib/preset/scripts/shared-root-scripts.js.map +1 -0
- package/lib/preset/{ws-root-scripts.d.ts → scripts/ws-root-scripts.d.ts} +17 -10
- package/lib/preset/{ws-root-scripts.js → scripts/ws-root-scripts.js} +18 -10
- package/lib/preset/scripts/ws-root-scripts.js.map +1 -0
- package/package.json +7 -5
- package/lib/preset/dummy.js.map +0 -1
- package/lib/preset/pkg-scripts.js.map +0 -1
- package/lib/preset/shared-root-scripts.js.map +0 -1
- package/lib/preset/ws-root-scripts.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.16](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.15...@yarn-tool/pkg-entry-util@2.0.16) (2022-09-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
|
|
12
|
+
* resolve exports ([39a8f85](https://github.com/bluelovers/ws-yarn-workspaces/commit/39a8f85ad96679173723eaeb88c432e665fd83ea))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features
|
|
16
|
+
|
|
17
|
+
* update script ([cb56d8a](https://github.com/bluelovers/ws-yarn-workspaces/commit/cb56d8a03cfff3222b00394716c5de533209e04c))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [2.0.15](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.14...@yarn-tool/pkg-entry-util@2.0.15) (2022-09-06)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### 📚 Documentation
|
|
26
|
+
|
|
27
|
+
* add directory ([442a552](https://github.com/bluelovers/ws-yarn-workspaces/commit/442a55232619f7fe2b9bad6f8eccfffc4f8f47d2))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### 🔖 Miscellaneous
|
|
31
|
+
|
|
32
|
+
* . ([3a7fdc9](https://github.com/bluelovers/ws-yarn-workspaces/commit/3a7fdc924ada93b1d0ac0160f8d77e46ff060588))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [2.0.14](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/pkg-entry-util@2.0.13...@yarn-tool/pkg-entry-util@2.0.14) (2022-08-26)
|
|
7
37
|
|
|
8
38
|
|
package/lib/field/exports.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pkgExportsVerify = exports._isPackageExportsEntry = exports.pkgExportsAddPJsonEntry = exports._pkgExportsAddPJsonEntryCore = void 0;
|
|
4
|
-
const path_1 = require("path");
|
|
5
4
|
const fs_extra_1 = require("fs-extra");
|
|
6
5
|
const find_root_1 = require("@yarn-tool/find-root");
|
|
6
|
+
const resolve_package_1 = require("@yarn-tool/resolve-package");
|
|
7
7
|
function _pkgExportsAddPJsonEntryCore(pkgExports) {
|
|
8
8
|
var _a;
|
|
9
9
|
if (typeof pkgExports === 'object') {
|
|
@@ -31,6 +31,7 @@ function pkgExportsVerify(pkg, options) {
|
|
|
31
31
|
Object.entries(pkg.exports)
|
|
32
32
|
.forEach(([entry, value]) => {
|
|
33
33
|
if (_isPackageExportsEntry(entry, value)) {
|
|
34
|
+
const _ = (0, resolve_package_1.resolvePackage)(rootData.pkg);
|
|
34
35
|
[typeof value === 'string' ? value : Object.values(value)]
|
|
35
36
|
.flat()
|
|
36
37
|
.forEach(file => {
|
|
@@ -41,7 +42,7 @@ function pkgExportsVerify(pkg, options) {
|
|
|
41
42
|
if ((_a = file.includes) === null || _a === void 0 ? void 0 : _a.call(file, '*')) {
|
|
42
43
|
return;
|
|
43
44
|
}
|
|
44
|
-
const bool = (0, fs_extra_1.pathExistsSync)(
|
|
45
|
+
const bool = (0, fs_extra_1.pathExistsSync)(_.resolveLocation(file));
|
|
45
46
|
if (!bool) {
|
|
46
47
|
list.push(`path of '${entry}' does not exist: '${file}'`);
|
|
47
48
|
}
|
package/lib/field/exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["exports.ts"],"names":[],"mappings":";;;AAEA
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["exports.ts"],"names":[],"mappings":";;;AAEA,uCAA0C;AAC1C,oDAAoD;AACpD,gEAAgF;AAEhF,SAAgB,4BAA4B,CAAoC,UAAa;;IAE5F,IAAI,OAAO,UAAU,KAAK,QAAQ,EAClC;QACC,MAAA,UAAU,CAAC,gBAAgB,qCAA3B,UAAU,CAAC,gBAAgB,IAAM,gBAAgB,EAAC;KAClD;IAED,OAAO,UAAU,CAAA;AAClB,CAAC;AARD,oEAQC;AAED,SAAgB,uBAAuB,CAAyB,GAAM;IAErE,4BAA4B,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAE1C,OAAO,GAAG,CAAA;AACX,CAAC;AALD,0DAKC;AAED,SAAgB,sBAAsB,CAAC,KAAmD,EACzF,KAAmD;IAGnD,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,KAAK,CAAC,CAAA;AACpD,CAAC;AALD,wDAKC;AAED,SAAgB,gBAAgB,CAAyB,GAAM,EAAE,OAEhE;IAEA,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,EACnC;QACC,MAAM,QAAQ,GAAG,IAAA,wBAAY,EAAC;YAC7B,GAAG,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,QAAQ,CAAC,GAAG,EACzC;YACC,MAAM,IAAI,GAAa,EAAE,CAAC;YAE1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;iBACzB,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE;gBAE3B,IAAI,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,EACxC;oBACC,MAAM,CAAC,GAAG,IAAA,gCAAc,EAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;oBAEtC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAc;yBACtE,IAAI,EAAE;yBACN,OAAO,CAAC,IAAI,CAAC,EAAE;;wBAEf;;2BAEG;wBACH,IAAI,MAAA,IAAI,CAAC,QAAQ,qDAAG,GAAG,CAAC,EACxB;4BACC,OAAO;yBACP;wBAED,MAAM,IAAI,GAAG,IAAA,yBAAc,EAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;wBAErD,IAAI,CAAC,IAAI,EACT;4BACC,IAAI,CAAC,IAAI,CAAC,YAAY,KAAK,sBAAsB,IAAI,GAAG,CAAC,CAAC;yBAC1D;oBAEF,CAAC,CAAC,CACF;iBACD;YACF,CAAC,CAAC,CACF;YAED,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EACnB;gBACC,IAAI,GAAG,GAAG,IAAI,KAAK,CAAC,4BAA4B,QAAQ,CAAC,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAEhH,aAAa;gBACb,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;gBAChB,aAAa;gBACb,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBACxB,aAAa;gBACb,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC;gBAE7B,MAAM,GAAG,CAAC;aACV;SACD;KAED;IAED,OAAO,IAAY,CAAA;AACpB,CAAC;AAhED,4CAgEC","sourcesContent":["import { IPackageJson } from '@ts-type/package-dts/package-json';\nimport { PackageExportsEntry, PackageExportsFallback } from '@ts-type/package-dts/types/package.json';\nimport { pathExistsSync } from 'fs-extra';\nimport { findRootLazy } from '@yarn-tool/find-root';\nimport { resolvePackage, resolvePackageRoot } from '@yarn-tool/resolve-package';\n\nexport function _pkgExportsAddPJsonEntryCore<T extends IPackageJson[\"exports\"]>(pkgExports: T)\n{\n\tif (typeof pkgExports === 'object')\n\t{\n\t\tpkgExports['./package.json'] ??= './package.json';\n\t}\n\n\treturn pkgExports\n}\n\nexport function pkgExportsAddPJsonEntry<T extends IPackageJson>(pkg: T)\n{\n\t_pkgExportsAddPJsonEntryCore(pkg.exports);\n\n\treturn pkg\n}\n\nexport function _isPackageExportsEntry(entry: string | keyof keyof IPackageJson[\"exports\"],\n\tvalue: PackageExportsEntry | PackageExportsFallback,\n): value is PackageExportsEntry\n{\n\treturn entry.startsWith('./') && !!(value ?? false)\n}\n\nexport function pkgExportsVerify<T extends IPackageJson>(pkg: T, options?: {\n\tcwd?: string,\n})\n{\n\tif (typeof pkg.exports === 'object')\n\t{\n\t\tconst rootData = findRootLazy({\n\t\t\tcwd: options?.cwd,\n\t\t});\n\n\t\tif (!rootData.isWorkspace && rootData.pkg)\n\t\t{\n\t\t\tconst list: string[] = [];\n\n\t\t\tObject.entries(pkg.exports)\n\t\t\t\t.forEach(([entry, value]) =>\n\t\t\t\t{\n\t\t\t\t\tif (_isPackageExportsEntry(entry, value))\n\t\t\t\t\t{\n\t\t\t\t\t\tconst _ = resolvePackage(rootData.pkg);\n\n\t\t\t\t\t\t([typeof value === 'string' ? value : Object.values(value)] as string[])\n\t\t\t\t\t\t\t.flat()\n\t\t\t\t\t\t\t.forEach(file =>\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t * skip check './src/*'\n\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\tif (file.includes?.('*'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tconst bool = pathExistsSync(_.resolveLocation(file));\n\n\t\t\t\t\t\t\t\tif (!bool)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlist.push(`path of '${entry}' does not exist: '${file}'`);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t;\n\n\t\t\tif (list.length > 0)\n\t\t\t{\n\t\t\t\tlet err = new Error(`Invalid package exports: ${rootData.pkg}\\n${list.slice().map(v => ` - ${v}`).join('\\n')}`);\n\n\t\t\t\t// @ts-ignore\n\t\t\t\terr.list = list;\n\t\t\t\t// @ts-ignore\n\t\t\t\terr.rootData = rootData;\n\t\t\t\t// @ts-ignore\n\t\t\t\terr.pkgExports = pkg.exports;\n\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t}\n\n\t}\n\n\treturn null as null\n}\n"]}
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fillDummyScripts = exports._fillDummyScriptsCore = void 0;
|
|
4
|
-
const dummy_1 = require("
|
|
4
|
+
const dummy_1 = require("../../util/scripts/dummy");
|
|
5
5
|
function _fillDummyScriptsCore(scripts, prefix, fields) {
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
scripts !== null && scripts !== void 0 ? scripts : (scripts = {});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dummy.js","sourceRoot":"","sources":["dummy.ts"],"names":[],"mappings":";;;AACA,oDAA4D;AAE5D,SAAgB,qBAAqB,CAAmC,OAAU,EAAE,MAAc,EAAE,MAAyC;IAE5I,aAAa;IACb,OAAO,aAAP,OAAO,cAAP,OAAO,IAAP,OAAO,GAAK,EAAE,EAAC;IAEf,IAAI,IAAI,GAAG,IAAA,wBAAgB,EAAC,MAAM,CAAC,CAAC;IAEpC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;;QAElB,aAAa;QACb,MAAA,OAAO,CAAC,CAAC,qCAAT,OAAO,CAAC,CAAC,IAAM,GAAG,IAAI,IAAI,CAAC,EAAE,EAAA;IAC9B,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AAChB,CAAC;AAdD,sDAcC;AAED,SAAgB,gBAAgB,CAAmC,OAAW,EAAE,MAAe;IAE9F,OAAO,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE;QAC7C,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;KACH,CAAC,CAAC;AACb,CAAC;AAnBD,4CAmBC","sourcesContent":["import { ITSArrayListMaybeReadonly } from 'ts-type/lib/type/base';\nimport { _dummyEchoPrefix } from '../../util/scripts/dummy';\n\nexport function _fillDummyScriptsCore<T extends Record<string, string>>(scripts: T, prefix: string, fields: ITSArrayListMaybeReadonly<string>)\n{\n\t// @ts-ignore\n\tscripts ??= {};\n\n\tlet text = _dummyEchoPrefix(prefix);\n\n\tfields.forEach(k =>\n\t{\n\t\t// @ts-ignore\n\t\tscripts[k] ??= `${text} ${k}`\n\t});\n\n\treturn scripts;\n}\n\nexport function fillDummyScripts<T extends Record<string, string>>(scripts?: T, prefix?: string)\n{\n\treturn _fillDummyScriptsCore(scripts, prefix, [\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);\n}\n"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { EnumScriptsEntry } from '
|
|
1
|
+
import { EnumScriptsEntry } from '../../field/scripts';
|
|
2
2
|
export declare function defaultPkgScripts(): {
|
|
3
3
|
"test:jest": EnumScriptsEntry;
|
|
4
4
|
"test:snapshot": string;
|
|
5
5
|
"test:jest:snapshot": string;
|
|
6
|
+
"test:tsd": string;
|
|
6
7
|
};
|
|
7
8
|
export declare function defaultPkgNotOldExists(): {
|
|
8
9
|
"test:mocha": string;
|
|
@@ -22,4 +23,5 @@ export declare function defaultPkgNotOldExists(): {
|
|
|
22
23
|
"test:jest": EnumScriptsEntry;
|
|
23
24
|
"test:snapshot": string;
|
|
24
25
|
"test:jest:snapshot": string;
|
|
26
|
+
"test:tsd": string;
|
|
25
27
|
};
|
|
@@ -6,6 +6,7 @@ function defaultPkgScripts() {
|
|
|
6
6
|
"test:jest": "jest --passWithNoTests" /* EnumScriptsEntry.JEST_TEST */,
|
|
7
7
|
"test:snapshot": "yarn run test -- -u",
|
|
8
8
|
"test:jest:snapshot": "yarn run test:jest -- -u",
|
|
9
|
+
"test:tsd": "ynpx tsd",
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
exports.defaultPkgScripts = defaultPkgScripts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pkg-scripts.js","sourceRoot":"","sources":["pkg-scripts.ts"],"names":[],"mappings":";;;AAEA,SAAgB,iBAAiB;IAEhC,OAAO;QACN,WAAW,2DAA4B;QACvC,eAAe,EAAE,qBAAqB;QACtC,oBAAoB,EAAE,0BAA0B;QAChD,UAAU,EAAE,UAAU;KACtB,CAAA;AACF,CAAC;AARD,8CAQC;AAED,SAAgB,sBAAsB;IAErC,OAAO;QACN,GAAG,iBAAiB,EAAE;QACtB,YAAY,EAAE,oHAAoH;QAClI,WAAW,EAAE,8CAA8C;QAC3D,kBAAkB,qKAAmC;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,UAAU,EAAE,6BAA6B;KACzC,CAAA;AACF,CAAC;AAnBD,wDAmBC","sourcesContent":["import { EnumScriptsEntry } from '../../field/scripts';\n\nexport function defaultPkgScripts()\n{\n\treturn {\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\t\"coverage\": \"yarn run test -- --coverage\",\n\t}\n}\n"]}
|
|
@@ -12,7 +12,8 @@ export declare function defaultRootScripts(): {
|
|
|
12
12
|
"test:jest:clearCache": string;
|
|
13
13
|
"install:resetLockfile": string;
|
|
14
14
|
"install:frozenLockfile": string;
|
|
15
|
-
"test:jest": import("
|
|
15
|
+
"test:jest": import("../../field/scripts").EnumScriptsEntry;
|
|
16
16
|
"test:snapshot": string;
|
|
17
17
|
"test:jest:snapshot": string;
|
|
18
|
+
"test:tsd": string;
|
|
18
19
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultSharedRootScripts = void 0;
|
|
4
4
|
function defaultSharedRootScripts() {
|
|
5
5
|
return {
|
|
6
|
-
"ci:install":
|
|
6
|
+
"ci:install": `yarn install --frozen-lockfile && yarn add -W ${[
|
|
7
|
+
"yarn-tool",
|
|
8
|
+
"lerna",
|
|
9
|
+
"ynpx",
|
|
10
|
+
"ts-node",
|
|
11
|
+
"ts-jest",
|
|
12
|
+
"jest",
|
|
13
|
+
"typescript@next",
|
|
14
|
+
].join(" ")}`,
|
|
7
15
|
"test:jest:clearCache": "jest --clearCache",
|
|
8
16
|
"install:resetLockfile": "yarn-tool install --reset-lockfile",
|
|
9
17
|
"install:frozenLockfile": "yarn-tool install --frozen-lockfile",
|
|
@@ -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,iDAAiD;YAC9D,WAAW;YACX,OAAO;YACP,MAAM;YACN,SAAS;YACT,SAAS;YACT,MAAM;YACN,iBAAiB;SACjB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACb,sBAAsB,EAAE,mBAAmB;QAC3C,uBAAuB,EAAE,oCAAoC;QAC7D,wBAAwB,EAAE,qCAAqC;KAC/D,CAAA;AACF,CAAC;AAhBD,4DAgBC","sourcesContent":["export function defaultSharedRootScripts()\n{\n\treturn {\n\t\t\"ci:install\": `yarn install --frozen-lockfile && yarn add -W ${[\n\t\t\t\"yarn-tool\",\n\t\t\t\"lerna\",\n\t\t\t\"ynpx\",\n\t\t\t\"ts-node\",\n\t\t\t\"ts-jest\",\n\t\t\t\"jest\",\n\t\t\t\"typescript@next\",\n\t\t].join(\" \")}`,\n\t\t\"test:jest:clearCache\": \"jest --clearCache\",\n\t\t\"install:resetLockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\"install:frozenLockfile\": \"yarn-tool install --frozen-lockfile\",\n\t}\n}\n"]}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { EnumScriptsEntry } from '
|
|
1
|
+
import { EnumScriptsEntry } from '../../field/scripts';
|
|
2
|
+
export declare function _runAllOrSince<T extends string>(script: T): { [x in `${T}:all`]: string; } & { [y in `${T}:since`]: string; };
|
|
2
3
|
export declare function defaultWorkspaceRootScripts(): {
|
|
3
|
-
"test:all": string;
|
|
4
|
-
"test:since": string;
|
|
5
|
-
"build:all": string;
|
|
6
|
-
"review:all": string;
|
|
7
|
-
"coverage:all": string;
|
|
8
|
-
"lint:all": string;
|
|
9
4
|
preversion: EnumScriptsEntry;
|
|
10
5
|
postversion: string;
|
|
11
6
|
"lerna:publish": string;
|
|
@@ -23,12 +18,24 @@ export declare function defaultWorkspaceRootScripts(): {
|
|
|
23
18
|
"sort-package-json:ws": string;
|
|
24
19
|
postpublishOnly: string;
|
|
25
20
|
"postpublishOnly:ws-root-changelog": string;
|
|
26
|
-
test: string;
|
|
27
|
-
"test:snapshot:all": string;
|
|
28
|
-
"test:snapshot:since": string;
|
|
29
21
|
"install:reset-lockfile": string;
|
|
30
22
|
"ws:fix-all": string;
|
|
31
23
|
"tsc:showConfig": string;
|
|
24
|
+
"lint:all": string;
|
|
25
|
+
"lint:since": string;
|
|
26
|
+
"coverage:all": string;
|
|
27
|
+
"coverage:since": string;
|
|
28
|
+
"review:all": string;
|
|
29
|
+
"review:since": string;
|
|
30
|
+
"build:all": string;
|
|
31
|
+
"build:since": string;
|
|
32
|
+
"test:snapshot:all": string;
|
|
33
|
+
"test:snapshot:since": string;
|
|
34
|
+
"test:tsd:all": string;
|
|
35
|
+
"test:tsd:since": string;
|
|
36
|
+
"test:all": string;
|
|
37
|
+
"test:since": string;
|
|
38
|
+
test: string;
|
|
32
39
|
"ci:install": string;
|
|
33
40
|
"test:jest:clearCache": string;
|
|
34
41
|
"install:resetLockfile": string;
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultWorkspaceRootScripts = void 0;
|
|
3
|
+
exports.defaultWorkspaceRootScripts = exports._runAllOrSince = void 0;
|
|
4
4
|
const shared_root_scripts_1 = require("./shared-root-scripts");
|
|
5
|
+
function _runAllOrSince(script) {
|
|
6
|
+
const all = `${script}:all`;
|
|
7
|
+
const since = `${script}:since`;
|
|
8
|
+
return {
|
|
9
|
+
[all]: `yarn-tool ws run ${script} --concurrency 1`,
|
|
10
|
+
[since]: `yarn run ${script}:all -- --since`,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
exports._runAllOrSince = _runAllOrSince;
|
|
5
14
|
function defaultWorkspaceRootScripts() {
|
|
6
15
|
return {
|
|
7
16
|
...(0, shared_root_scripts_1.defaultSharedRootScripts)(),
|
|
8
|
-
"test
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
"test": "yarn run test:since",
|
|
18
|
+
..._runAllOrSince('test'),
|
|
19
|
+
..._runAllOrSince('test:tsd'),
|
|
20
|
+
..._runAllOrSince('test:snapshot'),
|
|
21
|
+
..._runAllOrSince('build'),
|
|
22
|
+
..._runAllOrSince('review'),
|
|
23
|
+
..._runAllOrSince('coverage'),
|
|
24
|
+
..._runAllOrSince('lint'),
|
|
14
25
|
"preversion": "yarn run test" /* EnumScriptsEntry.preversion */,
|
|
15
26
|
"postversion": "yarn-tool fix-all",
|
|
16
27
|
"lerna:publish": "yarn run prepublishOnly:root && lerna publish && yarn run postpublishOnly",
|
|
@@ -28,9 +39,6 @@ function defaultWorkspaceRootScripts() {
|
|
|
28
39
|
"sort-package-json:ws": "yarn-tool ws sort",
|
|
29
40
|
"postpublishOnly": "yarn run postpublishOnly:ws-root-changelog & echo postpublishOnly",
|
|
30
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",
|
|
31
|
-
"test": "yarn run test:since",
|
|
32
|
-
"test:snapshot:all": "yarn-tool ws run test:snapshot --concurrency 1",
|
|
33
|
-
"test:snapshot:since": "yarn run test:snapshot:all -- --since",
|
|
34
42
|
"install:reset-lockfile": "yarn-tool install --reset-lockfile",
|
|
35
43
|
"ws:fix-all": "yarn-tool fix-all --overwriteHostedGitInfo",
|
|
36
44
|
"tsc:showConfig": "ynpx get-current-tsconfig -p",
|
|
@@ -0,0 +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;QAElO,wBAAwB,EAAE,oCAAoC;QAC9D,YAAY,EAAC,6CAA6C;QAC1D,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AArCD,kEAqCC","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\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": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yarn",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git"
|
|
26
|
+
"url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git",
|
|
27
|
+
"directory": "packages/@yarn-tool/pkg-entry-util"
|
|
27
28
|
},
|
|
28
29
|
"license": "ISC",
|
|
29
30
|
"author": "bluelovers",
|
|
@@ -54,14 +55,15 @@
|
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@ts-type/package-dts": "^2.0.5",
|
|
57
|
-
"@yarn-tool/find-root": "^2.0.
|
|
58
|
+
"@yarn-tool/find-root": "^2.0.7",
|
|
59
|
+
"@yarn-tool/resolve-package": "^2.0.5",
|
|
58
60
|
"fs-extra": "^10.1.0",
|
|
59
|
-
"tslib": "
|
|
61
|
+
"tslib": ">=2",
|
|
60
62
|
"upath2": "^3.1.15"
|
|
61
63
|
},
|
|
62
64
|
"packageManager": "yarn@1.22.19",
|
|
63
65
|
"publishConfig": {
|
|
64
66
|
"access": "public"
|
|
65
67
|
},
|
|
66
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "46d4d576f34d2d5218822811286119ea7a44d08b"
|
|
67
69
|
}
|
package/lib/preset/dummy.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dummy.js","sourceRoot":"","sources":["dummy.ts"],"names":[],"mappings":";;;AACA,iDAAyD;AAEzD,SAAgB,qBAAqB,CAAmC,OAAU,EAAE,MAAc,EAAE,MAAyC;IAE5I,aAAa;IACb,OAAO,aAAP,OAAO,cAAP,OAAO,IAAP,OAAO,GAAK,EAAE,EAAC;IAEf,IAAI,IAAI,GAAG,IAAA,wBAAgB,EAAC,MAAM,CAAC,CAAC;IAEpC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;;QAElB,aAAa;QACb,MAAA,OAAO,CAAC,CAAC,qCAAT,OAAO,CAAC,CAAC,IAAM,GAAG,IAAI,IAAI,CAAC,EAAE,EAAA;IAC9B,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AAChB,CAAC;AAdD,sDAcC;AAED,SAAgB,gBAAgB,CAAmC,OAAW,EAAE,MAAe;IAE9F,OAAO,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE;QAC7C,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;KACH,CAAC,CAAC;AACb,CAAC;AAnBD,4CAmBC","sourcesContent":["import { ITSArrayListMaybeReadonly } from 'ts-type/lib/type/base';\nimport { _dummyEchoPrefix } from '../util/scripts/dummy';\n\nexport function _fillDummyScriptsCore<T extends Record<string, string>>(scripts: T, prefix: string, fields: ITSArrayListMaybeReadonly<string>)\n{\n\t// @ts-ignore\n\tscripts ??= {};\n\n\tlet text = _dummyEchoPrefix(prefix);\n\n\tfields.forEach(k =>\n\t{\n\t\t// @ts-ignore\n\t\tscripts[k] ??= `${text} ${k}`\n\t});\n\n\treturn scripts;\n}\n\nexport function fillDummyScripts<T extends Record<string, string>>(scripts?: T, prefix?: string)\n{\n\treturn _fillDummyScriptsCore(scripts, prefix, [\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);\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pkg-scripts.js","sourceRoot":"","sources":["pkg-scripts.ts"],"names":[],"mappings":";;;AAEA,SAAgB,iBAAiB;IAEhC,OAAO;QACN,WAAW,2DAA4B;QACvC,eAAe,EAAE,qBAAqB;QACtC,oBAAoB,EAAE,0BAA0B;KAChD,CAAA;AACF,CAAC;AAPD,8CAOC;AAED,SAAgB,sBAAsB;IAErC,OAAO;QACN,GAAG,iBAAiB,EAAE;QACtB,YAAY,EAAE,oHAAoH;QAClI,WAAW,EAAE,8CAA8C;QAC3D,kBAAkB,qKAAmC;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,UAAU,EAAE,6BAA6B;KACzC,CAAA;AACF,CAAC;AAnBD,wDAmBC","sourcesContent":["import { EnumScriptsEntry } from '../field/scripts';\n\nexport function defaultPkgScripts()\n{\n\treturn {\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}\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\"coverage\": \"yarn run test -- --coverage\",\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-root-scripts.js","sourceRoot":"","sources":["shared-root-scripts.ts"],"names":[],"mappings":";;;AAAA,SAAgB,wBAAwB;IAEvC,OAAO;QACN,YAAY,EAAE,yGAAyG;QACvH,sBAAsB,EAAE,mBAAmB;QAC3C,uBAAuB,EAAE,oCAAoC;QAC7D,wBAAwB,EAAE,qCAAqC;KAC/D,CAAA;AACF,CAAC;AARD,4DAQC","sourcesContent":["export function defaultSharedRootScripts()\n{\n\treturn {\n\t\t\"ci:install\": \"yarn install --frozen-lockfile && yarn add -W typescript@next jest ts-jest ts-node ynpx lerna yarn-tool\",\n\t\t\"test:jest:clearCache\": \"jest --clearCache\",\n\t\t\"install:resetLockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\"install:frozenLockfile\": \"yarn-tool install --frozen-lockfile\",\n\t}\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ws-root-scripts.js","sourceRoot":"","sources":["ws-root-scripts.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGjE,SAAgB,2BAA2B;IAE1C,OAAO;QACN,GAAG,IAAA,8CAAwB,GAAE;QAC7B,UAAU,EAAE,uCAAuC;QACnD,YAAY,EAAE,8BAA8B;QAC5C,WAAW,EAAE,wCAAwC;QACrD,YAAY,EAAE,yCAAyC;QACvD,cAAc,EAAE,2CAA2C;QAC3D,UAAU,EAAE,uCAAuC;QACnD,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,MAAM,EAAE,qBAAqB;QAC7B,mBAAmB,EAAE,gDAAgD;QACrE,qBAAqB,EAAE,uCAAuC;QAC9D,wBAAwB,EAAE,oCAAoC;QAC9D,YAAY,EAAC,6CAA6C;QAC1D,gBAAgB,EAAE,8BAA8B;KAChD,CAAA;AACF,CAAC;AAlCD,kEAkCC","sourcesContent":["import { defaultSharedRootScripts } from './shared-root-scripts';\nimport { EnumScriptsEntry } from '../field/scripts';\n\nexport function defaultWorkspaceRootScripts()\n{\n\treturn {\n\t\t...defaultSharedRootScripts(),\n\t\t\"test:all\": \"yarn-tool ws run test --concurrency 1\",\n\t\t\"test:since\": \"yarn run test:all -- --since\",\n\t\t\"build:all\": \"yarn-tool ws run build --concurrency 1\",\n\t\t\"review:all\": \"yarn-tool ws run review --concurrency 1\",\n\t\t\"coverage:all\": \"yarn-tool ws run coverage --concurrency 1\",\n\t\t\"lint:all\": \"yarn-tool ws run lint --concurrency 1\",\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\"test\": \"yarn run test:since\",\n\t\t\"test:snapshot:all\": \"yarn-tool ws run test:snapshot --concurrency 1\",\n\t\t\"test:snapshot:since\": \"yarn run test:snapshot:all -- --since\",\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"]}
|