@storm-software/workspace-tools 1.62.32 → 1.62.33
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 +8 -7
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +8 -7
- package/src/executors/tsup-browser/executor.js +8 -7
- package/src/executors/tsup-neutral/executor.js +8 -7
- package/src/executors/tsup-node/executor.js +8 -7
- package/src/utils/index.js +8 -7
package/package.json
CHANGED
|
@@ -453162,8 +453162,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
453162
453162
|
return options8;
|
|
453163
453163
|
};
|
|
453164
453164
|
var runTsupBuild = async (context, config, options8) => {
|
|
453165
|
-
const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
453166
|
-
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
453165
|
+
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
453166
|
+
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
453167
453167
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
453168
453168
|
ret[key2] = options8.env?.[key2];
|
|
453169
453169
|
return ret;
|
|
@@ -453175,7 +453175,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
453175
453175
|
})
|
|
453176
453176
|
);
|
|
453177
453177
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
453178
|
-
const dtsTsConfig = getNormalizedTsConfig(
|
|
453178
|
+
const dtsTsConfig = await getNormalizedTsConfig(
|
|
453179
453179
|
workspaceRoot,
|
|
453180
453180
|
options8.outputPath,
|
|
453181
453181
|
createTypeScriptCompilationOptions(
|
|
@@ -453254,7 +453254,8 @@ ${options8.banner}
|
|
|
453254
453254
|
);
|
|
453255
453255
|
}
|
|
453256
453256
|
};
|
|
453257
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
453257
|
+
async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
453258
|
+
const { correctPaths } = await import("@storm-software/config-tools");
|
|
453258
453259
|
const rawTsconfig = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile);
|
|
453259
453260
|
if (!rawTsconfig?.config || rawTsconfig?.error) {
|
|
453260
453261
|
throw new Error(
|
|
@@ -453276,7 +453277,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
453276
453277
|
emitDeclarationOnly: true,
|
|
453277
453278
|
declaration: true,
|
|
453278
453279
|
declarationMap: true,
|
|
453279
|
-
declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
453280
|
+
declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
|
|
453280
453281
|
}
|
|
453281
453282
|
},
|
|
453282
453283
|
import_typescript.sys,
|
|
@@ -453288,7 +453289,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
453288
453289
|
(ret, key2) => {
|
|
453289
453290
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
453290
453291
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
453291
|
-
(path14) => (0, import_node_path2.join)(workspaceRoot, path14)
|
|
453292
|
+
(path14) => correctPaths((0, import_node_path2.join)(workspaceRoot, path14))
|
|
453292
453293
|
);
|
|
453293
453294
|
}
|
|
453294
453295
|
return ret;
|
|
@@ -453297,7 +453298,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
453297
453298
|
);
|
|
453298
453299
|
}
|
|
453299
453300
|
if (parsedTsconfig.options.incremental) {
|
|
453300
|
-
parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
|
|
453301
|
+
parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
|
|
453301
453302
|
}
|
|
453302
453303
|
return parsedTsconfig;
|
|
453303
453304
|
}
|
|
@@ -446978,8 +446978,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
446978
446978
|
return options8;
|
|
446979
446979
|
};
|
|
446980
446980
|
var runTsupBuild = async (context, config, options8) => {
|
|
446981
|
-
const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446982
|
-
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
446981
|
+
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446982
|
+
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
446983
446983
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
446984
446984
|
ret[key2] = options8.env?.[key2];
|
|
446985
446985
|
return ret;
|
|
@@ -446991,7 +446991,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
446991
446991
|
})
|
|
446992
446992
|
);
|
|
446993
446993
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
446994
|
-
const dtsTsConfig = getNormalizedTsConfig(
|
|
446994
|
+
const dtsTsConfig = await getNormalizedTsConfig(
|
|
446995
446995
|
workspaceRoot,
|
|
446996
446996
|
options8.outputPath,
|
|
446997
446997
|
createTypeScriptCompilationOptions(
|
|
@@ -447070,7 +447070,8 @@ ${options8.banner}
|
|
|
447070
447070
|
);
|
|
447071
447071
|
}
|
|
447072
447072
|
};
|
|
447073
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447073
|
+
async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447074
|
+
const { correctPaths } = await import("@storm-software/config-tools");
|
|
447074
447075
|
const rawTsconfig = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile);
|
|
447075
447076
|
if (!rawTsconfig?.config || rawTsconfig?.error) {
|
|
447076
447077
|
throw new Error(
|
|
@@ -447092,7 +447093,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447092
447093
|
emitDeclarationOnly: true,
|
|
447093
447094
|
declaration: true,
|
|
447094
447095
|
declarationMap: true,
|
|
447095
|
-
declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447096
|
+
declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
|
|
447096
447097
|
}
|
|
447097
447098
|
},
|
|
447098
447099
|
import_typescript.sys,
|
|
@@ -447104,7 +447105,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447104
447105
|
(ret, key2) => {
|
|
447105
447106
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
447106
447107
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
447107
|
-
(path14) => (0, import_node_path2.join)(workspaceRoot, path14)
|
|
447108
|
+
(path14) => correctPaths((0, import_node_path2.join)(workspaceRoot, path14))
|
|
447108
447109
|
);
|
|
447109
447110
|
}
|
|
447110
447111
|
return ret;
|
|
@@ -447113,7 +447114,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447113
447114
|
);
|
|
447114
447115
|
}
|
|
447115
447116
|
if (parsedTsconfig.options.incremental) {
|
|
447116
|
-
parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
|
|
447117
|
+
parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
|
|
447117
447118
|
}
|
|
447118
447119
|
return parsedTsconfig;
|
|
447119
447120
|
}
|
|
@@ -446978,8 +446978,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
446978
446978
|
return options8;
|
|
446979
446979
|
};
|
|
446980
446980
|
var runTsupBuild = async (context, config, options8) => {
|
|
446981
|
-
const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446982
|
-
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
446981
|
+
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446982
|
+
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
446983
446983
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
446984
446984
|
ret[key2] = options8.env?.[key2];
|
|
446985
446985
|
return ret;
|
|
@@ -446991,7 +446991,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
446991
446991
|
})
|
|
446992
446992
|
);
|
|
446993
446993
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
446994
|
-
const dtsTsConfig = getNormalizedTsConfig(
|
|
446994
|
+
const dtsTsConfig = await getNormalizedTsConfig(
|
|
446995
446995
|
workspaceRoot,
|
|
446996
446996
|
options8.outputPath,
|
|
446997
446997
|
createTypeScriptCompilationOptions(
|
|
@@ -447070,7 +447070,8 @@ ${options8.banner}
|
|
|
447070
447070
|
);
|
|
447071
447071
|
}
|
|
447072
447072
|
};
|
|
447073
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447073
|
+
async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447074
|
+
const { correctPaths } = await import("@storm-software/config-tools");
|
|
447074
447075
|
const rawTsconfig = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile);
|
|
447075
447076
|
if (!rawTsconfig?.config || rawTsconfig?.error) {
|
|
447076
447077
|
throw new Error(
|
|
@@ -447092,7 +447093,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447092
447093
|
emitDeclarationOnly: true,
|
|
447093
447094
|
declaration: true,
|
|
447094
447095
|
declarationMap: true,
|
|
447095
|
-
declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447096
|
+
declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
|
|
447096
447097
|
}
|
|
447097
447098
|
},
|
|
447098
447099
|
import_typescript.sys,
|
|
@@ -447104,7 +447105,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447104
447105
|
(ret, key2) => {
|
|
447105
447106
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
447106
447107
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
447107
|
-
(path14) => (0, import_node_path2.join)(workspaceRoot, path14)
|
|
447108
|
+
(path14) => correctPaths((0, import_node_path2.join)(workspaceRoot, path14))
|
|
447108
447109
|
);
|
|
447109
447110
|
}
|
|
447110
447111
|
return ret;
|
|
@@ -447113,7 +447114,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447113
447114
|
);
|
|
447114
447115
|
}
|
|
447115
447116
|
if (parsedTsconfig.options.incremental) {
|
|
447116
|
-
parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
|
|
447117
|
+
parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
|
|
447117
447118
|
}
|
|
447118
447119
|
return parsedTsconfig;
|
|
447119
447120
|
}
|
|
@@ -446978,8 +446978,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
446978
446978
|
return options8;
|
|
446979
446979
|
};
|
|
446980
446980
|
var runTsupBuild = async (context, config, options8) => {
|
|
446981
|
-
const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446982
|
-
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
446981
|
+
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446982
|
+
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
446983
446983
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
446984
446984
|
ret[key2] = options8.env?.[key2];
|
|
446985
446985
|
return ret;
|
|
@@ -446991,7 +446991,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
446991
446991
|
})
|
|
446992
446992
|
);
|
|
446993
446993
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
446994
|
-
const dtsTsConfig = getNormalizedTsConfig(
|
|
446994
|
+
const dtsTsConfig = await getNormalizedTsConfig(
|
|
446995
446995
|
workspaceRoot,
|
|
446996
446996
|
options8.outputPath,
|
|
446997
446997
|
createTypeScriptCompilationOptions(
|
|
@@ -447070,7 +447070,8 @@ ${options8.banner}
|
|
|
447070
447070
|
);
|
|
447071
447071
|
}
|
|
447072
447072
|
};
|
|
447073
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447073
|
+
async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
447074
|
+
const { correctPaths } = await import("@storm-software/config-tools");
|
|
447074
447075
|
const rawTsconfig = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile);
|
|
447075
447076
|
if (!rawTsconfig?.config || rawTsconfig?.error) {
|
|
447076
447077
|
throw new Error(
|
|
@@ -447092,7 +447093,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447092
447093
|
emitDeclarationOnly: true,
|
|
447093
447094
|
declaration: true,
|
|
447094
447095
|
declarationMap: true,
|
|
447095
|
-
declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
447096
|
+
declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
|
|
447096
447097
|
}
|
|
447097
447098
|
},
|
|
447098
447099
|
import_typescript.sys,
|
|
@@ -447104,7 +447105,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447104
447105
|
(ret, key2) => {
|
|
447105
447106
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
447106
447107
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
447107
|
-
(path14) => (0, import_node_path2.join)(workspaceRoot, path14)
|
|
447108
|
+
(path14) => correctPaths((0, import_node_path2.join)(workspaceRoot, path14))
|
|
447108
447109
|
);
|
|
447109
447110
|
}
|
|
447110
447111
|
return ret;
|
|
@@ -447113,7 +447114,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
447113
447114
|
);
|
|
447114
447115
|
}
|
|
447115
447116
|
if (parsedTsconfig.options.incremental) {
|
|
447116
|
-
parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
|
|
447117
|
+
parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
|
|
447117
447118
|
}
|
|
447118
447119
|
return parsedTsconfig;
|
|
447119
447120
|
}
|
package/src/utils/index.js
CHANGED
|
@@ -457240,8 +457240,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
457240
457240
|
return options8;
|
|
457241
457241
|
};
|
|
457242
457242
|
var runTsupBuild = async (context, config, options8) => {
|
|
457243
|
-
const { writeInfo, writeTrace, writeWarning, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
457244
|
-
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot();
|
|
457243
|
+
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
457244
|
+
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
457245
457245
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
457246
457246
|
ret[key2] = options8.env?.[key2];
|
|
457247
457247
|
return ret;
|
|
@@ -457253,7 +457253,7 @@ var runTsupBuild = async (context, config, options8) => {
|
|
|
457253
457253
|
})
|
|
457254
457254
|
);
|
|
457255
457255
|
options8.plugins?.push(environmentPlugin(stormEnv));
|
|
457256
|
-
const dtsTsConfig = getNormalizedTsConfig(
|
|
457256
|
+
const dtsTsConfig = await getNormalizedTsConfig(
|
|
457257
457257
|
workspaceRoot,
|
|
457258
457258
|
options8.outputPath,
|
|
457259
457259
|
createTypeScriptCompilationOptions(
|
|
@@ -457332,7 +457332,8 @@ ${options8.banner}
|
|
|
457332
457332
|
);
|
|
457333
457333
|
}
|
|
457334
457334
|
};
|
|
457335
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
457335
|
+
async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
457336
|
+
const { correctPaths } = await import("@storm-software/config-tools");
|
|
457336
457337
|
const rawTsconfig = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile);
|
|
457337
457338
|
if (!rawTsconfig?.config || rawTsconfig?.error) {
|
|
457338
457339
|
throw new Error(
|
|
@@ -457354,7 +457355,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
457354
457355
|
emitDeclarationOnly: true,
|
|
457355
457356
|
declaration: true,
|
|
457356
457357
|
declarationMap: true,
|
|
457357
|
-
declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
|
|
457358
|
+
declarationDir: correctPaths((0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration"))
|
|
457358
457359
|
}
|
|
457359
457360
|
},
|
|
457360
457361
|
import_typescript.sys,
|
|
@@ -457366,7 +457367,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
457366
457367
|
(ret, key2) => {
|
|
457367
457368
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
457368
457369
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
457369
|
-
(path13) => (0, import_node_path2.join)(workspaceRoot, path13)
|
|
457370
|
+
(path13) => correctPaths((0, import_node_path2.join)(workspaceRoot, path13))
|
|
457370
457371
|
);
|
|
457371
457372
|
}
|
|
457372
457373
|
return ret;
|
|
@@ -457375,7 +457376,7 @@ Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
|
457375
457376
|
);
|
|
457376
457377
|
}
|
|
457377
457378
|
if (parsedTsconfig.options.incremental) {
|
|
457378
|
-
parsedTsconfig.options.tsBuildInfoFile = (0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo");
|
|
457379
|
+
parsedTsconfig.options.tsBuildInfoFile = correctPaths((0, import_node_path2.join)(outputPath, "tsconfig.tsbuildinfo"));
|
|
457379
457380
|
}
|
|
457380
457381
|
return parsedTsconfig;
|
|
457381
457382
|
}
|