@storm-software/workspace-tools 1.62.10 → 1.62.11
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 +28 -32
- package/meta.json +1 -1
- package/package.json +2 -3
- package/src/executors/tsup/executor.js +28 -28
- package/src/executors/tsup-browser/executor.js +28 -28
- package/src/executors/tsup-neutral/executor.js +28 -28
- package/src/executors/tsup-node/executor.js +28 -28
- package/src/generators/preset/generator.js +0 -4
- package/src/utils/index.js +28 -28
|
@@ -377568,9 +377568,9 @@ var require_normalize_options = __commonJS({
|
|
|
377568
377568
|
}
|
|
377569
377569
|
});
|
|
377570
377570
|
|
|
377571
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
377571
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
377572
377572
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
377573
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
377573
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
|
|
377574
377574
|
"use strict";
|
|
377575
377575
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
377576
377576
|
var version = "8.0.0";
|
|
@@ -379217,9 +379217,9 @@ var require_resolve_from = __commonJS({
|
|
|
379217
379217
|
}
|
|
379218
379218
|
});
|
|
379219
379219
|
|
|
379220
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
379220
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
379221
379221
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
379222
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
379222
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
|
|
379223
379223
|
"use strict";
|
|
379224
379224
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
379225
379225
|
function _interopRequireDefault(obj) {
|
|
@@ -379497,9 +379497,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
379497
379497
|
}
|
|
379498
379498
|
});
|
|
379499
379499
|
|
|
379500
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
379500
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
379501
379501
|
var require_chunk_UIX4URMV = __commonJS({
|
|
379502
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
379502
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
|
|
379503
379503
|
"use strict";
|
|
379504
379504
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
379505
379505
|
function _interopRequireWildcard(obj) {
|
|
@@ -382839,9 +382839,9 @@ var require_dist3 = __commonJS({
|
|
|
382839
382839
|
}
|
|
382840
382840
|
});
|
|
382841
382841
|
|
|
382842
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
382842
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
382843
382843
|
var require_chunk_7G76EW2R = __commonJS({
|
|
382844
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
382844
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
|
|
382845
382845
|
"use strict";
|
|
382846
382846
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
382847
382847
|
function _interopRequireDefault(obj) {
|
|
@@ -429911,7 +429911,7 @@ ${outro}`;
|
|
|
429911
429911
|
await promises.mkdir(node_path.dirname(fileName), { recursive: true });
|
|
429912
429912
|
return promises.writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
|
|
429913
429913
|
}
|
|
429914
|
-
function
|
|
429914
|
+
function defineConfig(options8) {
|
|
429915
429915
|
return options8;
|
|
429916
429916
|
}
|
|
429917
429917
|
exports2.blue = blue;
|
|
@@ -429920,7 +429920,7 @@ ${outro}`;
|
|
|
429920
429920
|
exports2.createFilter = createFilter;
|
|
429921
429921
|
exports2.cyan = cyan$1;
|
|
429922
429922
|
exports2.cyan$1 = cyan;
|
|
429923
|
-
exports2.defineConfig =
|
|
429923
|
+
exports2.defineConfig = defineConfig;
|
|
429924
429924
|
exports2.ensureArray = ensureArray$1;
|
|
429925
429925
|
exports2.getAugmentedNamespace = getAugmentedNamespace;
|
|
429926
429926
|
exports2.getNewArray = getNewArray;
|
|
@@ -433924,9 +433924,9 @@ var require_rollup2 = __commonJS({
|
|
|
433924
433924
|
}
|
|
433925
433925
|
});
|
|
433926
433926
|
|
|
433927
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
433927
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js
|
|
433928
433928
|
var require_dist6 = __commonJS({
|
|
433929
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
433929
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js"(exports2) {
|
|
433930
433930
|
"use strict";
|
|
433931
433931
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
433932
433932
|
function _interopRequireDefault(obj) {
|
|
@@ -436489,7 +436489,7 @@ var require_dist6 = __commonJS({
|
|
|
436489
436489
|
}
|
|
436490
436490
|
};
|
|
436491
436491
|
};
|
|
436492
|
-
var
|
|
436492
|
+
var defineConfig = (options8) => options8;
|
|
436493
436493
|
var isTaskkillCmdProcessNotFoundError = (err) => {
|
|
436494
436494
|
return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
|
|
436495
436495
|
};
|
|
@@ -436794,7 +436794,7 @@ var require_dist6 = __commonJS({
|
|
|
436794
436794
|
);
|
|
436795
436795
|
}
|
|
436796
436796
|
exports2.build = build2;
|
|
436797
|
-
exports2.defineConfig =
|
|
436797
|
+
exports2.defineConfig = defineConfig;
|
|
436798
436798
|
}
|
|
436799
436799
|
});
|
|
436800
436800
|
|
|
@@ -449224,7 +449224,6 @@ var environmentPlugin = (data) => ({
|
|
|
449224
449224
|
});
|
|
449225
449225
|
|
|
449226
449226
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
449227
|
-
var import_tsup = __toESM(require_dist6());
|
|
449228
449227
|
var import_typescript = __toESM(require_typescript());
|
|
449229
449228
|
|
|
449230
449229
|
// packages/workspace-tools/src/base/get-tsup-config.ts
|
|
@@ -449350,7 +449349,7 @@ var removeExtension = (filePath) => {
|
|
|
449350
449349
|
var applyDefaultOptions = (options8) => {
|
|
449351
449350
|
options8.entry ??= "{sourceRoot}/index.ts";
|
|
449352
449351
|
options8.outputPath ??= "dist/{projectRoot}";
|
|
449353
|
-
options8.tsConfig ??= "tsconfig.json";
|
|
449352
|
+
options8.tsConfig ??= "{projectRoot}/tsconfig.json";
|
|
449354
449353
|
options8.generatePackageJson ??= true;
|
|
449355
449354
|
options8.splitting ??= true;
|
|
449356
449355
|
options8.treeshake ??= true;
|
|
@@ -449381,7 +449380,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
449381
449380
|
return options8;
|
|
449382
449381
|
};
|
|
449383
449382
|
var runTsupBuild = async (context, config, options8) => {
|
|
449384
|
-
const {
|
|
449383
|
+
const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
449384
|
+
const { build: tsup, defineConfig } = await Promise.resolve().then(() => __toESM(require_dist6()));
|
|
449385
449385
|
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
449386
449386
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
449387
449387
|
ret[key2] = options8.env?.[key2];
|
|
@@ -449396,7 +449396,6 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
449396
449396
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
449397
449397
|
const getConfigOptions = {
|
|
449398
449398
|
...options8,
|
|
449399
|
-
main: context.main,
|
|
449400
449399
|
entry: {
|
|
449401
449400
|
[removeExtension(
|
|
449402
449401
|
context.main?.split(context.main?.includes(import_node_path.sep) ? import_node_path.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
|
|
@@ -449428,13 +449427,14 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
449428
449427
|
)
|
|
449429
449428
|
),
|
|
449430
449429
|
banner: options8.banner ? {
|
|
449431
|
-
js:
|
|
449430
|
+
js: `
|
|
449432
449431
|
|
|
449433
|
-
`,
|
|
449434
|
-
css: `/*
|
|
449435
449432
|
${options8.banner}
|
|
449436
449433
|
|
|
449434
|
+
`,
|
|
449435
|
+
css: `/*
|
|
449437
449436
|
|
|
449437
|
+
${options8.banner}
|
|
449438
449438
|
|
|
449439
449439
|
*/`
|
|
449440
449440
|
} : void 0,
|
|
@@ -449443,18 +449443,18 @@ ${options8.banner}
|
|
|
449443
449443
|
if (options8.getConfig) {
|
|
449444
449444
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
449445
449445
|
const getConfigFns = [options8.getConfig];
|
|
449446
|
-
const tsupConfig =
|
|
449446
|
+
const tsupConfig = defineConfig(
|
|
449447
449447
|
getConfigFns.map(
|
|
449448
449448
|
(getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
449449
449449
|
)
|
|
449450
449450
|
);
|
|
449451
449451
|
if (_isFunction2(tsupConfig)) {
|
|
449452
449452
|
const tsupOptions = await Promise.resolve(tsupConfig({}));
|
|
449453
|
-
await build(tsupOptions, config);
|
|
449453
|
+
await build(tsup, tsupOptions, config);
|
|
449454
449454
|
} else {
|
|
449455
|
-
await build(tsupConfig, config);
|
|
449455
|
+
await build(tsup, tsupConfig, config);
|
|
449456
449456
|
}
|
|
449457
|
-
} else
|
|
449457
|
+
} else {
|
|
449458
449458
|
writeWarning(
|
|
449459
449459
|
config,
|
|
449460
449460
|
"The Build process did not run because no `getConfig` parameter was provided"
|
|
@@ -449489,10 +449489,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
449489
449489
|
}
|
|
449490
449490
|
return tsConfig;
|
|
449491
449491
|
}
|
|
449492
|
-
var build = async (options8, config) => {
|
|
449492
|
+
var build = async (tsup, options8, config) => {
|
|
449493
449493
|
const { writeDebug } = await import("@storm-software/config-tools");
|
|
449494
449494
|
if (Array.isArray(options8)) {
|
|
449495
|
-
await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
|
|
449495
|
+
await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
|
|
449496
449496
|
} else {
|
|
449497
449497
|
let tsupOptions = options8;
|
|
449498
449498
|
if (_isFunction2(tsupOptions)) {
|
|
@@ -449506,7 +449506,7 @@ ${!_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
|
|
|
449506
449506
|
).join("\n") : "<function>"}
|
|
449507
449507
|
`
|
|
449508
449508
|
);
|
|
449509
|
-
await (
|
|
449509
|
+
await tsup(tsupOptions);
|
|
449510
449510
|
}
|
|
449511
449511
|
};
|
|
449512
449512
|
var _isPrimitive = (value) => {
|
|
@@ -172269,10 +172269,6 @@ async function presetGeneratorFn(tree, options8) {
|
|
|
172269
172269
|
"@storm-software/linting-tools": "latest",
|
|
172270
172270
|
"@storm-software/testing-tools": "latest",
|
|
172271
172271
|
"@storm-software/workspace-tools": "latest",
|
|
172272
|
-
"@swc-node/register": "^1.6.8",
|
|
172273
|
-
"@swc/cli": "^0.1.62",
|
|
172274
|
-
"@swc/core": "^1.3.96",
|
|
172275
|
-
"@swc/helpers": "^0.5.3",
|
|
172276
172272
|
"@types/jest": "^29.5.8",
|
|
172277
172273
|
"@types/node": "20.8.10",
|
|
172278
172274
|
"@types/react": "^18.2.37",
|
package/src/utils/index.js
CHANGED
|
@@ -399948,9 +399948,9 @@ var require_normalize_options = __commonJS({
|
|
|
399948
399948
|
}
|
|
399949
399949
|
});
|
|
399950
399950
|
|
|
399951
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
399951
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
399952
399952
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
399953
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
399953
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports2) {
|
|
399954
399954
|
"use strict";
|
|
399955
399955
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
399956
399956
|
var version = "8.0.0";
|
|
@@ -401597,9 +401597,9 @@ var require_resolve_from = __commonJS({
|
|
|
401597
401597
|
}
|
|
401598
401598
|
});
|
|
401599
401599
|
|
|
401600
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401600
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
401601
401601
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
401602
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401602
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports2) {
|
|
401603
401603
|
"use strict";
|
|
401604
401604
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
401605
401605
|
function _interopRequireDefault(obj) {
|
|
@@ -401877,9 +401877,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
401877
401877
|
}
|
|
401878
401878
|
});
|
|
401879
401879
|
|
|
401880
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401880
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
401881
401881
|
var require_chunk_UIX4URMV = __commonJS({
|
|
401882
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
401882
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports2) {
|
|
401883
401883
|
"use strict";
|
|
401884
401884
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
401885
401885
|
function _interopRequireWildcard(obj) {
|
|
@@ -405219,9 +405219,9 @@ var require_dist3 = __commonJS({
|
|
|
405219
405219
|
}
|
|
405220
405220
|
});
|
|
405221
405221
|
|
|
405222
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
405222
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
405223
405223
|
var require_chunk_7G76EW2R = __commonJS({
|
|
405224
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
405224
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports2) {
|
|
405225
405225
|
"use strict";
|
|
405226
405226
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405227
405227
|
function _interopRequireDefault(obj) {
|
|
@@ -452291,7 +452291,7 @@ ${outro}`;
|
|
|
452291
452291
|
await promises.mkdir(node_path.dirname(fileName), { recursive: true });
|
|
452292
452292
|
return promises.writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
|
|
452293
452293
|
}
|
|
452294
|
-
function
|
|
452294
|
+
function defineConfig(options8) {
|
|
452295
452295
|
return options8;
|
|
452296
452296
|
}
|
|
452297
452297
|
exports2.blue = blue;
|
|
@@ -452300,7 +452300,7 @@ ${outro}`;
|
|
|
452300
452300
|
exports2.createFilter = createFilter;
|
|
452301
452301
|
exports2.cyan = cyan$1;
|
|
452302
452302
|
exports2.cyan$1 = cyan;
|
|
452303
|
-
exports2.defineConfig =
|
|
452303
|
+
exports2.defineConfig = defineConfig;
|
|
452304
452304
|
exports2.ensureArray = ensureArray$1;
|
|
452305
452305
|
exports2.getAugmentedNamespace = getAugmentedNamespace;
|
|
452306
452306
|
exports2.getNewArray = getNewArray;
|
|
@@ -456304,9 +456304,9 @@ var require_rollup2 = __commonJS({
|
|
|
456304
456304
|
}
|
|
456305
456305
|
});
|
|
456306
456306
|
|
|
456307
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
456307
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js
|
|
456308
456308
|
var require_dist6 = __commonJS({
|
|
456309
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1.
|
|
456309
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=fecszixvz36nsmruxbct32ggt4_@microsoft+api-extractor@7.40.1_@swc+core@1._cvnwl4sfoqdlyxchryxvqgzdae/node_modules/tsup/dist/index.js"(exports2) {
|
|
456310
456310
|
"use strict";
|
|
456311
456311
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
456312
456312
|
function _interopRequireDefault(obj) {
|
|
@@ -458869,7 +458869,7 @@ var require_dist6 = __commonJS({
|
|
|
458869
458869
|
}
|
|
458870
458870
|
};
|
|
458871
458871
|
};
|
|
458872
|
-
var
|
|
458872
|
+
var defineConfig = (options8) => options8;
|
|
458873
458873
|
var isTaskkillCmdProcessNotFoundError = (err) => {
|
|
458874
458874
|
return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
|
|
458875
458875
|
};
|
|
@@ -459174,7 +459174,7 @@ var require_dist6 = __commonJS({
|
|
|
459174
459174
|
);
|
|
459175
459175
|
}
|
|
459176
459176
|
exports2.build = build2;
|
|
459177
|
-
exports2.defineConfig =
|
|
459177
|
+
exports2.defineConfig = defineConfig;
|
|
459178
459178
|
}
|
|
459179
459179
|
});
|
|
459180
459180
|
|
|
@@ -459502,7 +459502,6 @@ var environmentPlugin = (data) => ({
|
|
|
459502
459502
|
});
|
|
459503
459503
|
|
|
459504
459504
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
459505
|
-
var import_tsup = __toESM(require_dist6());
|
|
459506
459505
|
var import_typescript = __toESM(require_typescript());
|
|
459507
459506
|
|
|
459508
459507
|
// packages/workspace-tools/src/base/get-tsup-config.ts
|
|
@@ -459616,7 +459615,7 @@ var outExtension = ({ format: format3 }) => {
|
|
|
459616
459615
|
var applyDefaultOptions = (options8) => {
|
|
459617
459616
|
options8.entry ??= "{sourceRoot}/index.ts";
|
|
459618
459617
|
options8.outputPath ??= "dist/{projectRoot}";
|
|
459619
|
-
options8.tsConfig ??= "tsconfig.json";
|
|
459618
|
+
options8.tsConfig ??= "{projectRoot}/tsconfig.json";
|
|
459620
459619
|
options8.generatePackageJson ??= true;
|
|
459621
459620
|
options8.splitting ??= true;
|
|
459622
459621
|
options8.treeshake ??= true;
|
|
@@ -459647,7 +459646,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
459647
459646
|
return options8;
|
|
459648
459647
|
};
|
|
459649
459648
|
var runTsupBuild = async (context, config, options8) => {
|
|
459650
|
-
const {
|
|
459649
|
+
const { writeInfo, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
459650
|
+
const { build: tsup, defineConfig } = await Promise.resolve().then(() => __toESM(require_dist6()));
|
|
459651
459651
|
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
459652
459652
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
459653
459653
|
ret[key2] = options8.env?.[key2];
|
|
@@ -459662,7 +459662,6 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
459662
459662
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
459663
459663
|
const getConfigOptions = {
|
|
459664
459664
|
...options8,
|
|
459665
|
-
main: context.main,
|
|
459666
459665
|
entry: {
|
|
459667
459666
|
[removeExtension(
|
|
459668
459667
|
context.main?.split(context.main?.includes(import_node_path2.sep) ? import_node_path2.sep : context.main?.includes("/") ? "/" : "\\")?.pop()
|
|
@@ -459694,13 +459693,14 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
459694
459693
|
)
|
|
459695
459694
|
),
|
|
459696
459695
|
banner: options8.banner ? {
|
|
459697
|
-
js:
|
|
459696
|
+
js: `
|
|
459698
459697
|
|
|
459699
|
-
`,
|
|
459700
|
-
css: `/*
|
|
459701
459698
|
${options8.banner}
|
|
459702
459699
|
|
|
459700
|
+
`,
|
|
459701
|
+
css: `/*
|
|
459703
459702
|
|
|
459703
|
+
${options8.banner}
|
|
459704
459704
|
|
|
459705
459705
|
*/`
|
|
459706
459706
|
} : void 0,
|
|
@@ -459709,18 +459709,18 @@ ${options8.banner}
|
|
|
459709
459709
|
if (options8.getConfig) {
|
|
459710
459710
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
459711
459711
|
const getConfigFns = [options8.getConfig];
|
|
459712
|
-
const tsupConfig =
|
|
459712
|
+
const tsupConfig = defineConfig(
|
|
459713
459713
|
getConfigFns.map(
|
|
459714
459714
|
(getConfigFn) => getConfig(workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
459715
459715
|
)
|
|
459716
459716
|
);
|
|
459717
459717
|
if (_isFunction(tsupConfig)) {
|
|
459718
459718
|
const tsupOptions = await Promise.resolve(tsupConfig({}));
|
|
459719
|
-
await build(tsupOptions, config);
|
|
459719
|
+
await build(tsup, tsupOptions, config);
|
|
459720
459720
|
} else {
|
|
459721
|
-
await build(tsupConfig, config);
|
|
459721
|
+
await build(tsup, tsupConfig, config);
|
|
459722
459722
|
}
|
|
459723
|
-
} else
|
|
459723
|
+
} else {
|
|
459724
459724
|
writeWarning(
|
|
459725
459725
|
config,
|
|
459726
459726
|
"The Build process did not run because no `getConfig` parameter was provided"
|
|
@@ -459755,10 +459755,10 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
459755
459755
|
}
|
|
459756
459756
|
return tsConfig;
|
|
459757
459757
|
}
|
|
459758
|
-
var build = async (options8, config) => {
|
|
459758
|
+
var build = async (tsup, options8, config) => {
|
|
459759
459759
|
const { writeDebug } = await import("@storm-software/config-tools");
|
|
459760
459760
|
if (Array.isArray(options8)) {
|
|
459761
|
-
await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
|
|
459761
|
+
await Promise.all(options8.map((buildOptions) => build(tsup, buildOptions, config)));
|
|
459762
459762
|
} else {
|
|
459763
459763
|
let tsupOptions = options8;
|
|
459764
459764
|
if (_isFunction(tsupOptions)) {
|
|
@@ -459772,7 +459772,7 @@ ${!_isFunction(tsupOptions) ? Object.keys(tsupOptions).map(
|
|
|
459772
459772
|
).join("\n") : "<function>"}
|
|
459773
459773
|
`
|
|
459774
459774
|
);
|
|
459775
|
-
await (
|
|
459775
|
+
await tsup(tsupOptions);
|
|
459776
459776
|
}
|
|
459777
459777
|
};
|
|
459778
459778
|
var _isPrimitive = (value) => {
|