@storm-software/workspace-tools 1.52.12 → 1.52.13
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 +12 -0
- package/index.js +19 -14
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +4 -1
- package/src/executors/tsup-browser/executor.js +9 -6
- package/src/executors/tsup-neutral/executor.js +9 -6
- package/src/executors/tsup-node/executor.js +9 -6
- package/src/utils/index.js +4 -1
package/package.json
CHANGED
|
@@ -115486,6 +115486,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
115486
115486
|
const getConfigOptions = {
|
|
115487
115487
|
...options,
|
|
115488
115488
|
main: context.main,
|
|
115489
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
115489
115490
|
define: {
|
|
115490
115491
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
115491
115492
|
},
|
|
@@ -115494,6 +115495,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
115494
115495
|
...stormEnv
|
|
115495
115496
|
},
|
|
115496
115497
|
dtsTsConfig: getNormalizedTsConfig(
|
|
115498
|
+
context,
|
|
115497
115499
|
config.workspaceRoot,
|
|
115498
115500
|
options.outputPath,
|
|
115499
115501
|
createTypeScriptCompilationOptions(
|
|
@@ -115545,13 +115547,14 @@ ${options.banner}
|
|
|
115545
115547
|
);
|
|
115546
115548
|
}
|
|
115547
115549
|
};
|
|
115548
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
115550
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
115549
115551
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
115550
115552
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
115551
115553
|
{
|
|
115552
115554
|
...config,
|
|
115553
115555
|
compilerOptions: {
|
|
115554
115556
|
...config.compilerOptions,
|
|
115557
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
115555
115558
|
outDir: outputPath,
|
|
115556
115559
|
rootDir: workspaceRoot,
|
|
115557
115560
|
baseUrl: workspaceRoot,
|
|
@@ -109241,6 +109241,11 @@ var outExtension = ({ format: format2 }) => {
|
|
|
109241
109241
|
};
|
|
109242
109242
|
};
|
|
109243
109243
|
|
|
109244
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
109245
|
+
var removeExtension = (filePath) => {
|
|
109246
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
109247
|
+
};
|
|
109248
|
+
|
|
109244
109249
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
109245
109250
|
var applyDefaultOptions = (options) => {
|
|
109246
109251
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
@@ -109290,6 +109295,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109290
109295
|
const getConfigOptions = {
|
|
109291
109296
|
...options,
|
|
109292
109297
|
main: context.main,
|
|
109298
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109293
109299
|
define: {
|
|
109294
109300
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
109295
109301
|
},
|
|
@@ -109298,6 +109304,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109298
109304
|
...stormEnv
|
|
109299
109305
|
},
|
|
109300
109306
|
dtsTsConfig: getNormalizedTsConfig(
|
|
109307
|
+
context,
|
|
109301
109308
|
config.workspaceRoot,
|
|
109302
109309
|
options.outputPath,
|
|
109303
109310
|
createTypeScriptCompilationOptions(
|
|
@@ -109349,13 +109356,14 @@ ${options.banner}
|
|
|
109349
109356
|
);
|
|
109350
109357
|
}
|
|
109351
109358
|
};
|
|
109352
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
109359
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
109353
109360
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
109354
109361
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
109355
109362
|
{
|
|
109356
109363
|
...config,
|
|
109357
109364
|
compilerOptions: {
|
|
109358
109365
|
...config.compilerOptions,
|
|
109366
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109359
109367
|
outDir: outputPath,
|
|
109360
109368
|
rootDir: workspaceRoot,
|
|
109361
109369
|
baseUrl: workspaceRoot,
|
|
@@ -115611,11 +115619,6 @@ glob.glob = glob;
|
|
|
115611
115619
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
115612
115620
|
var import_prettier = require("prettier");
|
|
115613
115621
|
|
|
115614
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115615
|
-
var removeExtension = (filePath) => {
|
|
115616
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115617
|
-
};
|
|
115618
|
-
|
|
115619
115622
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115620
115623
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
115621
115624
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
|
@@ -109241,6 +109241,11 @@ var outExtension = ({ format: format2 }) => {
|
|
|
109241
109241
|
};
|
|
109242
109242
|
};
|
|
109243
109243
|
|
|
109244
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
109245
|
+
var removeExtension = (filePath) => {
|
|
109246
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
109247
|
+
};
|
|
109248
|
+
|
|
109244
109249
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
109245
109250
|
var applyDefaultOptions = (options) => {
|
|
109246
109251
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
@@ -109290,6 +109295,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109290
109295
|
const getConfigOptions = {
|
|
109291
109296
|
...options,
|
|
109292
109297
|
main: context.main,
|
|
109298
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109293
109299
|
define: {
|
|
109294
109300
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
109295
109301
|
},
|
|
@@ -109298,6 +109304,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109298
109304
|
...stormEnv
|
|
109299
109305
|
},
|
|
109300
109306
|
dtsTsConfig: getNormalizedTsConfig(
|
|
109307
|
+
context,
|
|
109301
109308
|
config.workspaceRoot,
|
|
109302
109309
|
options.outputPath,
|
|
109303
109310
|
createTypeScriptCompilationOptions(
|
|
@@ -109349,13 +109356,14 @@ ${options.banner}
|
|
|
109349
109356
|
);
|
|
109350
109357
|
}
|
|
109351
109358
|
};
|
|
109352
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
109359
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
109353
109360
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
109354
109361
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
109355
109362
|
{
|
|
109356
109363
|
...config,
|
|
109357
109364
|
compilerOptions: {
|
|
109358
109365
|
...config.compilerOptions,
|
|
109366
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109359
109367
|
outDir: outputPath,
|
|
109360
109368
|
rootDir: workspaceRoot,
|
|
109361
109369
|
baseUrl: workspaceRoot,
|
|
@@ -115611,11 +115619,6 @@ glob.glob = glob;
|
|
|
115611
115619
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
115612
115620
|
var import_prettier = require("prettier");
|
|
115613
115621
|
|
|
115614
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115615
|
-
var removeExtension = (filePath) => {
|
|
115616
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115617
|
-
};
|
|
115618
|
-
|
|
115619
115622
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115620
115623
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
115621
115624
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
|
@@ -109241,6 +109241,11 @@ var outExtension = ({ format: format2 }) => {
|
|
|
109241
109241
|
};
|
|
109242
109242
|
};
|
|
109243
109243
|
|
|
109244
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
109245
|
+
var removeExtension = (filePath) => {
|
|
109246
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
109247
|
+
};
|
|
109248
|
+
|
|
109244
109249
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
109245
109250
|
var applyDefaultOptions = (options) => {
|
|
109246
109251
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
@@ -109290,6 +109295,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109290
109295
|
const getConfigOptions = {
|
|
109291
109296
|
...options,
|
|
109292
109297
|
main: context.main,
|
|
109298
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109293
109299
|
define: {
|
|
109294
109300
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
109295
109301
|
},
|
|
@@ -109298,6 +109304,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
109298
109304
|
...stormEnv
|
|
109299
109305
|
},
|
|
109300
109306
|
dtsTsConfig: getNormalizedTsConfig(
|
|
109307
|
+
context,
|
|
109301
109308
|
config.workspaceRoot,
|
|
109302
109309
|
options.outputPath,
|
|
109303
109310
|
createTypeScriptCompilationOptions(
|
|
@@ -109349,13 +109356,14 @@ ${options.banner}
|
|
|
109349
109356
|
);
|
|
109350
109357
|
}
|
|
109351
109358
|
};
|
|
109352
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
109359
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
109353
109360
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
109354
109361
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
109355
109362
|
{
|
|
109356
109363
|
...config,
|
|
109357
109364
|
compilerOptions: {
|
|
109358
109365
|
...config.compilerOptions,
|
|
109366
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
109359
109367
|
outDir: outputPath,
|
|
109360
109368
|
rootDir: workspaceRoot,
|
|
109361
109369
|
baseUrl: workspaceRoot,
|
|
@@ -115611,11 +115619,6 @@ glob.glob = glob;
|
|
|
115611
115619
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
115612
115620
|
var import_prettier = require("prettier");
|
|
115613
115621
|
|
|
115614
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115615
|
-
var removeExtension = (filePath) => {
|
|
115616
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
115617
|
-
};
|
|
115618
|
-
|
|
115619
115622
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
115620
115623
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
115621
115624
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|
package/src/utils/index.js
CHANGED
|
@@ -119810,6 +119810,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
119810
119810
|
const getConfigOptions = {
|
|
119811
119811
|
...options,
|
|
119812
119812
|
main: context.main,
|
|
119813
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
119813
119814
|
define: {
|
|
119814
119815
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
119815
119816
|
},
|
|
@@ -119818,6 +119819,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
119818
119819
|
...stormEnv
|
|
119819
119820
|
},
|
|
119820
119821
|
dtsTsConfig: getNormalizedTsConfig(
|
|
119822
|
+
context,
|
|
119821
119823
|
config.workspaceRoot,
|
|
119822
119824
|
options.outputPath,
|
|
119823
119825
|
createTypeScriptCompilationOptions(
|
|
@@ -119869,13 +119871,14 @@ ${options.banner}
|
|
|
119869
119871
|
);
|
|
119870
119872
|
}
|
|
119871
119873
|
};
|
|
119872
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
119874
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
119873
119875
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
119874
119876
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
119875
119877
|
{
|
|
119876
119878
|
...config,
|
|
119877
119879
|
compilerOptions: {
|
|
119878
119880
|
...config.compilerOptions,
|
|
119881
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
119879
119882
|
outDir: outputPath,
|
|
119880
119883
|
rootDir: workspaceRoot,
|
|
119881
119884
|
baseUrl: workspaceRoot,
|