@storm-software/workspace-tools 1.49.27 → 1.49.29
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 +24 -0
- package/index.js +20 -18
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +5 -5
- package/src/executors/tsup-browser/executor.js +10 -10
- package/src/executors/tsup-neutral/executor.js +10 -10
- package/src/executors/tsup-node/executor.js +10 -10
- package/src/utils/index.js +4 -4
package/package.json
CHANGED
|
@@ -115440,7 +115440,8 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
115440
115440
|
options.plugins.push(environmentPlugin(stormEnv));
|
|
115441
115441
|
const getConfigOptions = {
|
|
115442
115442
|
...options,
|
|
115443
|
-
main: context.
|
|
115443
|
+
main: context.main,
|
|
115444
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
115444
115445
|
define: {
|
|
115445
115446
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
115446
115447
|
},
|
|
@@ -115456,7 +115457,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
115456
115457
|
{
|
|
115457
115458
|
...options,
|
|
115458
115459
|
watch: false,
|
|
115459
|
-
main: context.
|
|
115460
|
+
main: context.main,
|
|
115460
115461
|
transformers: []
|
|
115461
115462
|
},
|
|
115462
115463
|
config.workspaceRoot,
|
|
@@ -115477,8 +115478,7 @@ ${options.banner}
|
|
|
115477
115478
|
|
|
115478
115479
|
*/`
|
|
115479
115480
|
} : void 0,
|
|
115480
|
-
outputPath: options.outputPath
|
|
115481
|
-
entry: context.entry
|
|
115481
|
+
outputPath: options.outputPath
|
|
115482
115482
|
};
|
|
115483
115483
|
if (options.getConfig) {
|
|
115484
115484
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
@@ -115904,7 +115904,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115904
115904
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115905
115905
|
return runTsupBuild(
|
|
115906
115906
|
{
|
|
115907
|
-
|
|
115907
|
+
main: entryPoint,
|
|
115908
115908
|
projectRoot,
|
|
115909
115909
|
projectName: context.projectName,
|
|
115910
115910
|
sourceRoot
|
|
@@ -109215,6 +109215,11 @@ var outExtension = ({ format: format2 }) => {
|
|
|
109215
109215
|
};
|
|
109216
109216
|
};
|
|
109217
109217
|
|
|
109218
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
109219
|
+
var removeExtension = (filePath) => {
|
|
109220
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
109221
|
+
};
|
|
109222
|
+
|
|
109218
109223
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
109219
109224
|
var applyDefaultOptions = (options) => {
|
|
109220
109225
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
@@ -109263,7 +109268,8 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109263
109268
|
options.plugins.push(environmentPlugin(stormEnv));
|
|
109264
109269
|
const getConfigOptions = {
|
|
109265
109270
|
...options,
|
|
109266
|
-
main: context.
|
|
109271
|
+
main: context.main,
|
|
109272
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109267
109273
|
define: {
|
|
109268
109274
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
109269
109275
|
},
|
|
@@ -109279,7 +109285,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109279
109285
|
{
|
|
109280
109286
|
...options,
|
|
109281
109287
|
watch: false,
|
|
109282
|
-
main: context.
|
|
109288
|
+
main: context.main,
|
|
109283
109289
|
transformers: []
|
|
109284
109290
|
},
|
|
109285
109291
|
config.workspaceRoot,
|
|
@@ -109300,8 +109306,7 @@ ${options.banner}
|
|
|
109300
109306
|
|
|
109301
109307
|
*/`
|
|
109302
109308
|
} : void 0,
|
|
109303
|
-
outputPath: options.outputPath
|
|
109304
|
-
entry: context.entry
|
|
109309
|
+
outputPath: options.outputPath
|
|
109305
109310
|
};
|
|
109306
109311
|
if (options.getConfig) {
|
|
109307
109312
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
@@ -115585,11 +115590,6 @@ glob.glob = glob;
|
|
|
115585
115590
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
115586
115591
|
var import_prettier = require("prettier");
|
|
115587
115592
|
|
|
115588
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115589
|
-
var removeExtension = (filePath) => {
|
|
115590
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115591
|
-
};
|
|
115592
|
-
|
|
115593
115593
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115594
115594
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
115595
115595
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
|
@@ -115934,7 +115934,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115934
115934
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115935
115935
|
return runTsupBuild(
|
|
115936
115936
|
{
|
|
115937
|
-
|
|
115937
|
+
main: entryPoint,
|
|
115938
115938
|
projectRoot,
|
|
115939
115939
|
projectName: context.projectName,
|
|
115940
115940
|
sourceRoot
|
|
@@ -109215,6 +109215,11 @@ var outExtension = ({ format: format2 }) => {
|
|
|
109215
109215
|
};
|
|
109216
109216
|
};
|
|
109217
109217
|
|
|
109218
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
109219
|
+
var removeExtension = (filePath) => {
|
|
109220
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
109221
|
+
};
|
|
109222
|
+
|
|
109218
109223
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
109219
109224
|
var applyDefaultOptions = (options) => {
|
|
109220
109225
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
@@ -109263,7 +109268,8 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109263
109268
|
options.plugins.push(environmentPlugin(stormEnv));
|
|
109264
109269
|
const getConfigOptions = {
|
|
109265
109270
|
...options,
|
|
109266
|
-
main: context.
|
|
109271
|
+
main: context.main,
|
|
109272
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109267
109273
|
define: {
|
|
109268
109274
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
109269
109275
|
},
|
|
@@ -109279,7 +109285,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109279
109285
|
{
|
|
109280
109286
|
...options,
|
|
109281
109287
|
watch: false,
|
|
109282
|
-
main: context.
|
|
109288
|
+
main: context.main,
|
|
109283
109289
|
transformers: []
|
|
109284
109290
|
},
|
|
109285
109291
|
config.workspaceRoot,
|
|
@@ -109300,8 +109306,7 @@ ${options.banner}
|
|
|
109300
109306
|
|
|
109301
109307
|
*/`
|
|
109302
109308
|
} : void 0,
|
|
109303
|
-
outputPath: options.outputPath
|
|
109304
|
-
entry: context.entry
|
|
109309
|
+
outputPath: options.outputPath
|
|
109305
109310
|
};
|
|
109306
109311
|
if (options.getConfig) {
|
|
109307
109312
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
@@ -115585,11 +115590,6 @@ glob.glob = glob;
|
|
|
115585
115590
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
115586
115591
|
var import_prettier = require("prettier");
|
|
115587
115592
|
|
|
115588
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115589
|
-
var removeExtension = (filePath) => {
|
|
115590
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115591
|
-
};
|
|
115592
|
-
|
|
115593
115593
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115594
115594
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
115595
115595
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
|
@@ -115934,7 +115934,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115934
115934
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115935
115935
|
return runTsupBuild(
|
|
115936
115936
|
{
|
|
115937
|
-
|
|
115937
|
+
main: entryPoint,
|
|
115938
115938
|
projectRoot,
|
|
115939
115939
|
projectName: context.projectName,
|
|
115940
115940
|
sourceRoot
|
|
@@ -109215,6 +109215,11 @@ var outExtension = ({ format: format2 }) => {
|
|
|
109215
109215
|
};
|
|
109216
109216
|
};
|
|
109217
109217
|
|
|
109218
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
109219
|
+
var removeExtension = (filePath) => {
|
|
109220
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
109221
|
+
};
|
|
109222
|
+
|
|
109218
109223
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
109219
109224
|
var applyDefaultOptions = (options) => {
|
|
109220
109225
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
@@ -109263,7 +109268,8 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109263
109268
|
options.plugins.push(environmentPlugin(stormEnv));
|
|
109264
109269
|
const getConfigOptions = {
|
|
109265
109270
|
...options,
|
|
109266
|
-
main: context.
|
|
109271
|
+
main: context.main,
|
|
109272
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109267
109273
|
define: {
|
|
109268
109274
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
109269
109275
|
},
|
|
@@ -109279,7 +109285,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109279
109285
|
{
|
|
109280
109286
|
...options,
|
|
109281
109287
|
watch: false,
|
|
109282
|
-
main: context.
|
|
109288
|
+
main: context.main,
|
|
109283
109289
|
transformers: []
|
|
109284
109290
|
},
|
|
109285
109291
|
config.workspaceRoot,
|
|
@@ -109300,8 +109306,7 @@ ${options.banner}
|
|
|
109300
109306
|
|
|
109301
109307
|
*/`
|
|
109302
109308
|
} : void 0,
|
|
109303
|
-
outputPath: options.outputPath
|
|
109304
|
-
entry: context.entry
|
|
109309
|
+
outputPath: options.outputPath
|
|
109305
109310
|
};
|
|
109306
109311
|
if (options.getConfig) {
|
|
109307
109312
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
@@ -115585,11 +115590,6 @@ glob.glob = glob;
|
|
|
115585
115590
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
115586
115591
|
var import_prettier = require("prettier");
|
|
115587
115592
|
|
|
115588
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115589
|
-
var removeExtension = (filePath) => {
|
|
115590
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115591
|
-
};
|
|
115592
|
-
|
|
115593
115593
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115594
115594
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
115595
115595
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
|
@@ -115934,7 +115934,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115934
115934
|
writeInfo(config, `*** Build output path: ${outputPath} ***`);
|
|
115935
115935
|
return runTsupBuild(
|
|
115936
115936
|
{
|
|
115937
|
-
|
|
115937
|
+
main: entryPoint,
|
|
115938
115938
|
projectRoot,
|
|
115939
115939
|
projectName: context.projectName,
|
|
115940
115940
|
sourceRoot
|
package/src/utils/index.js
CHANGED
|
@@ -119427,7 +119427,8 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
119427
119427
|
options.plugins.push(environmentPlugin(stormEnv));
|
|
119428
119428
|
const getConfigOptions = {
|
|
119429
119429
|
...options,
|
|
119430
|
-
main: context.
|
|
119430
|
+
main: context.main,
|
|
119431
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
119431
119432
|
define: {
|
|
119432
119433
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
119433
119434
|
},
|
|
@@ -119443,7 +119444,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
119443
119444
|
{
|
|
119444
119445
|
...options,
|
|
119445
119446
|
watch: false,
|
|
119446
|
-
main: context.
|
|
119447
|
+
main: context.main,
|
|
119447
119448
|
transformers: []
|
|
119448
119449
|
},
|
|
119449
119450
|
config.workspaceRoot,
|
|
@@ -119464,8 +119465,7 @@ ${options.banner}
|
|
|
119464
119465
|
|
|
119465
119466
|
*/`
|
|
119466
119467
|
} : void 0,
|
|
119467
|
-
outputPath: options.outputPath
|
|
119468
|
-
entry: context.entry
|
|
119468
|
+
outputPath: options.outputPath
|
|
119469
119469
|
};
|
|
119470
119470
|
if (options.getConfig) {
|
|
119471
119471
|
writeInfo(config, "\u26A1 Running the Build process");
|