@storm-software/workspace-tools 1.63.3 → 1.63.5
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 +9 -5
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +9 -5
- package/src/executors/tsup-browser/executor.js +9 -5
- package/src/executors/tsup-neutral/executor.js +9 -5
- package/src/executors/tsup-node/executor.js +9 -5
- package/src/utils/index.js +9 -5
package/package.json
CHANGED
|
@@ -453176,6 +453176,7 @@ var applyDefaultOptions = (options8) => {
|
|
|
453176
453176
|
var runTsupBuild = async (context, config, options8) => {
|
|
453177
453177
|
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
453178
453178
|
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
453179
|
+
process.chdir(workspaceRoot);
|
|
453179
453180
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
453180
453181
|
ret[key2] = options8.env?.[key2];
|
|
453181
453182
|
return ret;
|
|
@@ -453277,31 +453278,34 @@ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
453277
453278
|
Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
453278
453279
|
);
|
|
453279
453280
|
}
|
|
453281
|
+
const basePath = correctPaths(workspaceRoot);
|
|
453282
|
+
const declarationDir = correctPaths((0, import_node_path2.join)(basePath, "tmp", ".tsup", "declaration"));
|
|
453280
453283
|
const parsedTsconfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
453281
453284
|
{
|
|
453282
453285
|
...rawTsconfig.config,
|
|
453283
453286
|
compilerOptions: {
|
|
453284
453287
|
...rawTsconfig.config?.compilerOptions,
|
|
453285
453288
|
outDir: outputPath,
|
|
453286
|
-
rootDir: ".",
|
|
453287
|
-
baseUrl: correctPaths(workspaceRoot),
|
|
453288
453289
|
noEmit: false,
|
|
453289
453290
|
emitDeclarationOnly: true,
|
|
453290
453291
|
declaration: true,
|
|
453291
453292
|
declarationMap: true,
|
|
453292
|
-
declarationDir
|
|
453293
|
+
declarationDir
|
|
453293
453294
|
}
|
|
453294
453295
|
},
|
|
453295
453296
|
import_typescript.sys,
|
|
453296
453297
|
correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
|
|
453297
453298
|
);
|
|
453298
|
-
parsedTsconfig.options.
|
|
453299
|
+
parsedTsconfig.options.rootDir = basePath;
|
|
453300
|
+
parsedTsconfig.options.baseUrl = basePath;
|
|
453301
|
+
parsedTsconfig.options.pathsBasePath = basePath;
|
|
453302
|
+
parsedTsconfig.options.declarationDir = declarationDir;
|
|
453299
453303
|
if (parsedTsconfig.options.paths) {
|
|
453300
453304
|
parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
|
|
453301
453305
|
(ret, key2) => {
|
|
453302
453306
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
453303
453307
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
453304
|
-
(path14) => correctPaths((0, import_node_path2.join)(
|
|
453308
|
+
(path14) => correctPaths((0, import_node_path2.join)(basePath, path14))
|
|
453305
453309
|
);
|
|
453306
453310
|
}
|
|
453307
453311
|
return ret;
|
|
@@ -446981,6 +446981,7 @@ var applyDefaultOptions = (options8) => {
|
|
|
446981
446981
|
var runTsupBuild = async (context, config, options8) => {
|
|
446982
446982
|
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446983
446983
|
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
446984
|
+
process.chdir(workspaceRoot);
|
|
446984
446985
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
446985
446986
|
ret[key2] = options8.env?.[key2];
|
|
446986
446987
|
return ret;
|
|
@@ -447082,31 +447083,34 @@ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
447082
447083
|
Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
447083
447084
|
);
|
|
447084
447085
|
}
|
|
447086
|
+
const basePath = correctPaths(workspaceRoot);
|
|
447087
|
+
const declarationDir = correctPaths((0, import_node_path2.join)(basePath, "tmp", ".tsup", "declaration"));
|
|
447085
447088
|
const parsedTsconfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
447086
447089
|
{
|
|
447087
447090
|
...rawTsconfig.config,
|
|
447088
447091
|
compilerOptions: {
|
|
447089
447092
|
...rawTsconfig.config?.compilerOptions,
|
|
447090
447093
|
outDir: outputPath,
|
|
447091
|
-
rootDir: ".",
|
|
447092
|
-
baseUrl: correctPaths(workspaceRoot),
|
|
447093
447094
|
noEmit: false,
|
|
447094
447095
|
emitDeclarationOnly: true,
|
|
447095
447096
|
declaration: true,
|
|
447096
447097
|
declarationMap: true,
|
|
447097
|
-
declarationDir
|
|
447098
|
+
declarationDir
|
|
447098
447099
|
}
|
|
447099
447100
|
},
|
|
447100
447101
|
import_typescript.sys,
|
|
447101
447102
|
correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
|
|
447102
447103
|
);
|
|
447103
|
-
parsedTsconfig.options.
|
|
447104
|
+
parsedTsconfig.options.rootDir = basePath;
|
|
447105
|
+
parsedTsconfig.options.baseUrl = basePath;
|
|
447106
|
+
parsedTsconfig.options.pathsBasePath = basePath;
|
|
447107
|
+
parsedTsconfig.options.declarationDir = declarationDir;
|
|
447104
447108
|
if (parsedTsconfig.options.paths) {
|
|
447105
447109
|
parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
|
|
447106
447110
|
(ret, key2) => {
|
|
447107
447111
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
447108
447112
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
447109
|
-
(path14) => correctPaths((0, import_node_path2.join)(
|
|
447113
|
+
(path14) => correctPaths((0, import_node_path2.join)(basePath, path14))
|
|
447110
447114
|
);
|
|
447111
447115
|
}
|
|
447112
447116
|
return ret;
|
|
@@ -446981,6 +446981,7 @@ var applyDefaultOptions = (options8) => {
|
|
|
446981
446981
|
var runTsupBuild = async (context, config, options8) => {
|
|
446982
446982
|
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446983
446983
|
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
446984
|
+
process.chdir(workspaceRoot);
|
|
446984
446985
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
446985
446986
|
ret[key2] = options8.env?.[key2];
|
|
446986
446987
|
return ret;
|
|
@@ -447082,31 +447083,34 @@ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
447082
447083
|
Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
447083
447084
|
);
|
|
447084
447085
|
}
|
|
447086
|
+
const basePath = correctPaths(workspaceRoot);
|
|
447087
|
+
const declarationDir = correctPaths((0, import_node_path2.join)(basePath, "tmp", ".tsup", "declaration"));
|
|
447085
447088
|
const parsedTsconfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
447086
447089
|
{
|
|
447087
447090
|
...rawTsconfig.config,
|
|
447088
447091
|
compilerOptions: {
|
|
447089
447092
|
...rawTsconfig.config?.compilerOptions,
|
|
447090
447093
|
outDir: outputPath,
|
|
447091
|
-
rootDir: ".",
|
|
447092
|
-
baseUrl: correctPaths(workspaceRoot),
|
|
447093
447094
|
noEmit: false,
|
|
447094
447095
|
emitDeclarationOnly: true,
|
|
447095
447096
|
declaration: true,
|
|
447096
447097
|
declarationMap: true,
|
|
447097
|
-
declarationDir
|
|
447098
|
+
declarationDir
|
|
447098
447099
|
}
|
|
447099
447100
|
},
|
|
447100
447101
|
import_typescript.sys,
|
|
447101
447102
|
correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
|
|
447102
447103
|
);
|
|
447103
|
-
parsedTsconfig.options.
|
|
447104
|
+
parsedTsconfig.options.rootDir = basePath;
|
|
447105
|
+
parsedTsconfig.options.baseUrl = basePath;
|
|
447106
|
+
parsedTsconfig.options.pathsBasePath = basePath;
|
|
447107
|
+
parsedTsconfig.options.declarationDir = declarationDir;
|
|
447104
447108
|
if (parsedTsconfig.options.paths) {
|
|
447105
447109
|
parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
|
|
447106
447110
|
(ret, key2) => {
|
|
447107
447111
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
447108
447112
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
447109
|
-
(path14) => correctPaths((0, import_node_path2.join)(
|
|
447113
|
+
(path14) => correctPaths((0, import_node_path2.join)(basePath, path14))
|
|
447110
447114
|
);
|
|
447111
447115
|
}
|
|
447112
447116
|
return ret;
|
|
@@ -446981,6 +446981,7 @@ var applyDefaultOptions = (options8) => {
|
|
|
446981
446981
|
var runTsupBuild = async (context, config, options8) => {
|
|
446982
446982
|
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
446983
446983
|
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
446984
|
+
process.chdir(workspaceRoot);
|
|
446984
446985
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
446985
446986
|
ret[key2] = options8.env?.[key2];
|
|
446986
446987
|
return ret;
|
|
@@ -447082,31 +447083,34 @@ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
447082
447083
|
Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
447083
447084
|
);
|
|
447084
447085
|
}
|
|
447086
|
+
const basePath = correctPaths(workspaceRoot);
|
|
447087
|
+
const declarationDir = correctPaths((0, import_node_path2.join)(basePath, "tmp", ".tsup", "declaration"));
|
|
447085
447088
|
const parsedTsconfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
447086
447089
|
{
|
|
447087
447090
|
...rawTsconfig.config,
|
|
447088
447091
|
compilerOptions: {
|
|
447089
447092
|
...rawTsconfig.config?.compilerOptions,
|
|
447090
447093
|
outDir: outputPath,
|
|
447091
|
-
rootDir: ".",
|
|
447092
|
-
baseUrl: correctPaths(workspaceRoot),
|
|
447093
447094
|
noEmit: false,
|
|
447094
447095
|
emitDeclarationOnly: true,
|
|
447095
447096
|
declaration: true,
|
|
447096
447097
|
declarationMap: true,
|
|
447097
|
-
declarationDir
|
|
447098
|
+
declarationDir
|
|
447098
447099
|
}
|
|
447099
447100
|
},
|
|
447100
447101
|
import_typescript.sys,
|
|
447101
447102
|
correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
|
|
447102
447103
|
);
|
|
447103
|
-
parsedTsconfig.options.
|
|
447104
|
+
parsedTsconfig.options.rootDir = basePath;
|
|
447105
|
+
parsedTsconfig.options.baseUrl = basePath;
|
|
447106
|
+
parsedTsconfig.options.pathsBasePath = basePath;
|
|
447107
|
+
parsedTsconfig.options.declarationDir = declarationDir;
|
|
447104
447108
|
if (parsedTsconfig.options.paths) {
|
|
447105
447109
|
parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
|
|
447106
447110
|
(ret, key2) => {
|
|
447107
447111
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
447108
447112
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
447109
|
-
(path14) => correctPaths((0, import_node_path2.join)(
|
|
447113
|
+
(path14) => correctPaths((0, import_node_path2.join)(basePath, path14))
|
|
447110
447114
|
);
|
|
447111
447115
|
}
|
|
447112
447116
|
return ret;
|
package/src/utils/index.js
CHANGED
|
@@ -457242,6 +457242,7 @@ var applyDefaultOptions = (options8) => {
|
|
|
457242
457242
|
var runTsupBuild = async (context, config, options8) => {
|
|
457243
457243
|
const { writeInfo, writeTrace, writeWarning, correctPaths, findWorkspaceRoot } = await import("@storm-software/config-tools");
|
|
457244
457244
|
const workspaceRoot = correctPaths(config?.workspaceRoot ?? findWorkspaceRoot());
|
|
457245
|
+
process.chdir(workspaceRoot);
|
|
457245
457246
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
457246
457247
|
ret[key2] = options8.env?.[key2];
|
|
457247
457248
|
return ret;
|
|
@@ -457343,31 +457344,34 @@ async function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
457343
457344
|
Error: ${rawTsconfig.error.messageText}` : ""}`
|
|
457344
457345
|
);
|
|
457345
457346
|
}
|
|
457347
|
+
const basePath = correctPaths(workspaceRoot);
|
|
457348
|
+
const declarationDir = correctPaths((0, import_node_path2.join)(basePath, "tmp", ".tsup", "declaration"));
|
|
457346
457349
|
const parsedTsconfig = (0, import_typescript.parseJsonConfigFileContent)(
|
|
457347
457350
|
{
|
|
457348
457351
|
...rawTsconfig.config,
|
|
457349
457352
|
compilerOptions: {
|
|
457350
457353
|
...rawTsconfig.config?.compilerOptions,
|
|
457351
457354
|
outDir: outputPath,
|
|
457352
|
-
rootDir: ".",
|
|
457353
|
-
baseUrl: correctPaths(workspaceRoot),
|
|
457354
457355
|
noEmit: false,
|
|
457355
457356
|
emitDeclarationOnly: true,
|
|
457356
457357
|
declaration: true,
|
|
457357
457358
|
declarationMap: true,
|
|
457358
|
-
declarationDir
|
|
457359
|
+
declarationDir
|
|
457359
457360
|
}
|
|
457360
457361
|
},
|
|
457361
457362
|
import_typescript.sys,
|
|
457362
457363
|
correctPaths((0, import_node_path2.dirname)(options8.tsConfig))
|
|
457363
457364
|
);
|
|
457364
|
-
parsedTsconfig.options.
|
|
457365
|
+
parsedTsconfig.options.rootDir = basePath;
|
|
457366
|
+
parsedTsconfig.options.baseUrl = basePath;
|
|
457367
|
+
parsedTsconfig.options.pathsBasePath = basePath;
|
|
457368
|
+
parsedTsconfig.options.declarationDir = declarationDir;
|
|
457365
457369
|
if (parsedTsconfig.options.paths) {
|
|
457366
457370
|
parsedTsconfig.options.paths = Object.keys(parsedTsconfig.options.paths).reduce(
|
|
457367
457371
|
(ret, key2) => {
|
|
457368
457372
|
if (parsedTsconfig.options.paths?.[key2]) {
|
|
457369
457373
|
ret[key2] = parsedTsconfig.options.paths[key2]?.map(
|
|
457370
|
-
(path13) => correctPaths((0, import_node_path2.join)(
|
|
457374
|
+
(path13) => correctPaths((0, import_node_path2.join)(basePath, path13))
|
|
457371
457375
|
);
|
|
457372
457376
|
}
|
|
457373
457377
|
return ret;
|