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