@storm-software/workspace-tools 1.7.22 → 1.7.24
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 +14 -0
- package/index.js +14 -14
- package/meta.json +1 -1
- package/package.json +7 -1
- package/src/executors/tsup/executor.js +34 -36
- package/src/executors/tsup/get-config.js +14 -14
- package/src/executors/tsup/rollup.js +227141 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
|
|
6
6
|
"keywords": [
|
|
@@ -34,9 +34,15 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@nx/devkit": "17.0.3",
|
|
36
36
|
"@nx/esbuild": "17.0.3",
|
|
37
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
38
|
+
"chalk": "5.3.0",
|
|
37
39
|
"esbuild-plugin-file-path-extensions": "1.0.0",
|
|
38
40
|
"fs-extra": "^11.1.1",
|
|
39
41
|
"glob": "^10.3.10",
|
|
42
|
+
"resolve": "^1.22.8",
|
|
43
|
+
"resolve-from": "^5.0.0",
|
|
44
|
+
"rollup": "^4.5.0",
|
|
45
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
40
46
|
"terser": "^5.24.0",
|
|
41
47
|
"tslib": "2.6.2",
|
|
42
48
|
"tsup": "7.2.0"
|
|
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
408390
408390
|
}
|
|
408391
408391
|
});
|
|
408392
408392
|
|
|
408393
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
408393
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
|
|
408394
408394
|
var require_chunk_NSPLMNA4 = __commonJS({
|
|
408395
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
408395
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
|
|
408396
408396
|
"use strict";
|
|
408397
408397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
408398
408398
|
var version = "7.2.0";
|
|
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
|
|
|
410039
410039
|
}
|
|
410040
410040
|
});
|
|
410041
410041
|
|
|
410042
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410042
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
|
|
410043
410043
|
var require_chunk_B7UJSB4N = __commonJS({
|
|
410044
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410044
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
|
|
410045
410045
|
"use strict";
|
|
410046
410046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410047
410047
|
function _interopRequireDefault(obj) {
|
|
@@ -410255,9 +410255,9 @@ var require_chunk_B7UJSB4N = __commonJS({
|
|
|
410255
410255
|
}
|
|
410256
410256
|
});
|
|
410257
410257
|
|
|
410258
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410258
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
|
|
410259
410259
|
var require_chunk_GEVDEBBW = __commonJS({
|
|
410260
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410260
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
|
|
410261
410261
|
"use strict";
|
|
410262
410262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410263
410263
|
function _interopRequireWildcard(obj) {
|
|
@@ -411191,9 +411191,9 @@ var require_dist2 = __commonJS({
|
|
|
411191
411191
|
}
|
|
411192
411192
|
});
|
|
411193
411193
|
|
|
411194
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
411194
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
|
|
411195
411195
|
var require_chunk_52KWB5QB = __commonJS({
|
|
411196
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
411196
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
|
|
411197
411197
|
"use strict";
|
|
411198
411198
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
411199
411199
|
function _interopRequireDefault(obj) {
|
|
@@ -470479,9 +470479,9 @@ var require_chokidar = __commonJS({
|
|
|
470479
470479
|
}
|
|
470480
470480
|
});
|
|
470481
470481
|
|
|
470482
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
470482
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
|
|
470483
470483
|
var require_dist5 = __commonJS({
|
|
470484
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
470484
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
|
|
470485
470485
|
"use strict";
|
|
470486
470486
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
470487
470487
|
function _interopRequireDefault(obj) {
|
|
@@ -472068,7 +472068,7 @@ var require_dist5 = __commonJS({
|
|
|
472068
472068
|
pluginContainer
|
|
472069
472069
|
}) {
|
|
472070
472070
|
let pkgPath = options.outDir ? options.outDir : process.cwd();
|
|
472071
|
-
logger.info(format2, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
|
|
472071
|
+
!options.silent && logger.info(format2, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
|
|
472072
472072
|
if (pkgPath) {
|
|
472073
472073
|
const splits = pkgPath.split("/");
|
|
472074
472074
|
if (splits.length > 0) {
|
|
@@ -472080,9 +472080,9 @@ var require_dist5 = __commonJS({
|
|
|
472080
472080
|
).join("/"),
|
|
472081
472081
|
"package.json"
|
|
472082
472082
|
);
|
|
472083
|
-
logger.info(format2, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
|
|
472083
|
+
!options.silent && logger.info(format2, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
|
|
472084
472084
|
if (_fs2.default.existsSync(packageJsonPath)) {
|
|
472085
|
-
logger.info(format2, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
|
|
472085
|
+
!options.silent && logger.info(format2, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
|
|
472086
472086
|
pkgPath = packageJsonPath.replace("package.json", "");
|
|
472087
472087
|
break;
|
|
472088
472088
|
}
|
|
@@ -472212,7 +472212,7 @@ var require_dist5 = __commonJS({
|
|
|
472212
472212
|
outExtension: options.legacyOutput ? void 0 : outExtension2,
|
|
472213
472213
|
write: false,
|
|
472214
472214
|
splitting,
|
|
472215
|
-
logLevel: "info",
|
|
472215
|
+
logLevel: options.silent ? "error" : "info",
|
|
472216
472216
|
minify: options.minify === "terser" ? false : options.minify,
|
|
472217
472217
|
minifyWhitespace: options.minifyWhitespace,
|
|
472218
472218
|
minifyIdentifiers: options.minifyIdentifiers,
|
|
@@ -479319,7 +479319,7 @@ async function runExecutor(options, context) {
|
|
|
479319
479319
|
console.log("\u{1F4E6} Running Storm build executor on the workspace");
|
|
479320
479320
|
options.verbose && console.log(
|
|
479321
479321
|
`\u2699\uFE0F Executor options:
|
|
479322
|
-
${Object.keys(options).map((key) =>
|
|
479322
|
+
${Object.keys(options).map((key) => `${key}: ${options[key]}`).join("\n")}
|
|
479323
479323
|
`
|
|
479324
479324
|
);
|
|
479325
479325
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
@@ -479458,27 +479458,25 @@ ${externalDependencies.map((dep) => {
|
|
|
479458
479458
|
outputPath,
|
|
479459
479459
|
"package.json"
|
|
479460
479460
|
);
|
|
479461
|
-
|
|
479462
|
-
|
|
479463
|
-
|
|
479464
|
-
|
|
479465
|
-
|
|
479466
|
-
|
|
479467
|
-
|
|
479468
|
-
|
|
479469
|
-
|
|
479470
|
-
|
|
479471
|
-
|
|
479472
|
-
|
|
479473
|
-
|
|
479474
|
-
|
|
479475
|
-
|
|
479476
|
-
|
|
479477
|
-
|
|
479478
|
-
|
|
479479
|
-
|
|
479480
|
-
);
|
|
479481
|
-
}
|
|
479461
|
+
console.log(`\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
479462
|
+
(0, import_fs2.writeFileSync)(
|
|
479463
|
+
packageJsonPath,
|
|
479464
|
+
await (0, import_prettier.format)(JSON.stringify(packageJson), {
|
|
479465
|
+
plugins: ["prettier-plugin-packagejson"],
|
|
479466
|
+
parser: "json",
|
|
479467
|
+
trailingComma: "none",
|
|
479468
|
+
tabWidth: 2,
|
|
479469
|
+
semi: true,
|
|
479470
|
+
singleQuote: false,
|
|
479471
|
+
quoteProps: "preserve",
|
|
479472
|
+
insertPragma: false,
|
|
479473
|
+
bracketSameLine: true,
|
|
479474
|
+
printWidth: 80,
|
|
479475
|
+
bracketSpacing: true,
|
|
479476
|
+
arrowParens: "avoid",
|
|
479477
|
+
endOfLine: "lf"
|
|
479478
|
+
})
|
|
479479
|
+
);
|
|
479482
479480
|
const banner = options.banner ? options.banner : process.env.STORM_TS_FILE_HEADING;
|
|
479483
479481
|
if (banner) {
|
|
479484
479482
|
const files = globSync([
|
|
@@ -18383,9 +18383,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
18383
18383
|
}
|
|
18384
18384
|
});
|
|
18385
18385
|
|
|
18386
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
18386
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
|
|
18387
18387
|
var require_chunk_NSPLMNA4 = __commonJS({
|
|
18388
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
18388
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
|
|
18389
18389
|
"use strict";
|
|
18390
18390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18391
18391
|
var version = "7.2.0";
|
|
@@ -24319,9 +24319,9 @@ var require_resolve_from = __commonJS({
|
|
|
24319
24319
|
}
|
|
24320
24320
|
});
|
|
24321
24321
|
|
|
24322
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
24322
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
|
|
24323
24323
|
var require_chunk_B7UJSB4N = __commonJS({
|
|
24324
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
24324
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
|
|
24325
24325
|
"use strict";
|
|
24326
24326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24327
24327
|
function _interopRequireDefault(obj) {
|
|
@@ -24535,9 +24535,9 @@ var require_chunk_B7UJSB4N = __commonJS({
|
|
|
24535
24535
|
}
|
|
24536
24536
|
});
|
|
24537
24537
|
|
|
24538
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
24538
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
|
|
24539
24539
|
var require_chunk_GEVDEBBW = __commonJS({
|
|
24540
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
24540
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
|
|
24541
24541
|
"use strict";
|
|
24542
24542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24543
24543
|
function _interopRequireWildcard(obj) {
|
|
@@ -25471,9 +25471,9 @@ var require_dist2 = __commonJS({
|
|
|
25471
25471
|
}
|
|
25472
25472
|
});
|
|
25473
25473
|
|
|
25474
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
25474
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
|
|
25475
25475
|
var require_chunk_52KWB5QB = __commonJS({
|
|
25476
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
25476
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
|
|
25477
25477
|
"use strict";
|
|
25478
25478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25479
25479
|
function _interopRequireDefault(obj) {
|
|
@@ -87142,9 +87142,9 @@ var require_chokidar = __commonJS({
|
|
|
87142
87142
|
}
|
|
87143
87143
|
});
|
|
87144
87144
|
|
|
87145
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
87145
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
|
|
87146
87146
|
var require_dist5 = __commonJS({
|
|
87147
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
87147
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=awhcc6cwovfgwynz7jtkvcqts4_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
|
|
87148
87148
|
"use strict";
|
|
87149
87149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87150
87150
|
function _interopRequireDefault(obj) {
|
|
@@ -88731,7 +88731,7 @@ var require_dist5 = __commonJS({
|
|
|
88731
88731
|
pluginContainer
|
|
88732
88732
|
}) {
|
|
88733
88733
|
let pkgPath = options.outDir ? options.outDir : process.cwd();
|
|
88734
|
-
logger.info(format, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
|
|
88734
|
+
!options.silent && logger.info(format, `\u26A1 Preparing to run ESBuild: ${pkgPath}`);
|
|
88735
88735
|
if (pkgPath) {
|
|
88736
88736
|
const splits = pkgPath.split("/");
|
|
88737
88737
|
if (splits.length > 0) {
|
|
@@ -88743,9 +88743,9 @@ var require_dist5 = __commonJS({
|
|
|
88743
88743
|
).join("/"),
|
|
88744
88744
|
"package.json"
|
|
88745
88745
|
);
|
|
88746
|
-
logger.info(format, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
|
|
88746
|
+
!options.silent && logger.info(format, `\u26A1 Searching for package.json file in ${packageJsonPath} (index: ${i})`);
|
|
88747
88747
|
if (_fs2.default.existsSync(packageJsonPath)) {
|
|
88748
|
-
logger.info(format, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
|
|
88748
|
+
!options.silent && logger.info(format, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
|
|
88749
88749
|
pkgPath = packageJsonPath.replace("package.json", "");
|
|
88750
88750
|
break;
|
|
88751
88751
|
}
|
|
@@ -88875,7 +88875,7 @@ var require_dist5 = __commonJS({
|
|
|
88875
88875
|
outExtension: options.legacyOutput ? void 0 : outExtension2,
|
|
88876
88876
|
write: false,
|
|
88877
88877
|
splitting,
|
|
88878
|
-
logLevel: "info",
|
|
88878
|
+
logLevel: options.silent ? "error" : "info",
|
|
88879
88879
|
minify: options.minify === "terser" ? false : options.minify,
|
|
88880
88880
|
minifyWhitespace: options.minifyWhitespace,
|
|
88881
88881
|
minifyIdentifiers: options.minifyIdentifiers,
|