@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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.52.13 (2024-01-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Updated `entry` parameter provided to tsup executor ([b97c7388](https://github.com/storm-software/storm-ops/commit/b97c7388))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.52.12 (2024-01-29)
|
|
2
14
|
|
|
3
15
|
|
package/index.js
CHANGED
|
@@ -133134,7 +133134,7 @@ ${commentStart} ----------------------------------------------------------------
|
|
|
133134
133134
|
};
|
|
133135
133135
|
|
|
133136
133136
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
133137
|
-
var
|
|
133137
|
+
var import_node_path6 = require("node:path");
|
|
133138
133138
|
var import_esbuild_decorators = __toESM(require_src2());
|
|
133139
133139
|
var import_devkit3 = __toESM(require_devkit());
|
|
133140
133140
|
var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
|
|
@@ -133184,6 +133184,17 @@ var environmentPlugin = (data) => ({
|
|
|
133184
133184
|
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
133185
133185
|
var import_tsup = __toESM(require_dist6());
|
|
133186
133186
|
var ts = __toESM(require("typescript"));
|
|
133187
|
+
|
|
133188
|
+
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
133189
|
+
var import_node_path5 = require("node:path");
|
|
133190
|
+
var removeExtension = (filePath) => {
|
|
133191
|
+
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
133192
|
+
};
|
|
133193
|
+
function findFileName(filePath) {
|
|
133194
|
+
return filePath?.split(filePath?.includes(import_node_path5.sep) ? import_node_path5.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
133195
|
+
}
|
|
133196
|
+
|
|
133197
|
+
// packages/workspace-tools/src/utils/run-tsup-build.ts
|
|
133187
133198
|
var applyDefaultOptions = (options) => {
|
|
133188
133199
|
options.entry ??= "{sourceRoot}/index.ts";
|
|
133189
133200
|
options.outputPath ??= "dist/{projectRoot}";
|
|
@@ -133232,6 +133243,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
133232
133243
|
const getConfigOptions = {
|
|
133233
133244
|
...options,
|
|
133234
133245
|
main: context.main,
|
|
133246
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
133235
133247
|
define: {
|
|
133236
133248
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
133237
133249
|
},
|
|
@@ -133240,6 +133252,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
133240
133252
|
...stormEnv
|
|
133241
133253
|
},
|
|
133242
133254
|
dtsTsConfig: getNormalizedTsConfig(
|
|
133255
|
+
context,
|
|
133243
133256
|
config.workspaceRoot,
|
|
133244
133257
|
options.outputPath,
|
|
133245
133258
|
createTypeScriptCompilationOptions(
|
|
@@ -133291,13 +133304,14 @@ ${options.banner}
|
|
|
133291
133304
|
);
|
|
133292
133305
|
}
|
|
133293
133306
|
};
|
|
133294
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
133307
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
133295
133308
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
133296
133309
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
133297
133310
|
{
|
|
133298
133311
|
...config,
|
|
133299
133312
|
compilerOptions: {
|
|
133300
133313
|
...config.compilerOptions,
|
|
133314
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
133301
133315
|
outDir: outputPath,
|
|
133302
133316
|
rootDir: workspaceRoot,
|
|
133303
133317
|
baseUrl: workspaceRoot,
|
|
@@ -133314,7 +133328,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
133314
133328
|
}
|
|
133315
133329
|
},
|
|
133316
133330
|
ts.sys,
|
|
133317
|
-
(0,
|
|
133331
|
+
(0, import_node_path6.dirname)(options.tsConfig)
|
|
133318
133332
|
);
|
|
133319
133333
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
133320
133334
|
if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
|
|
@@ -134048,8 +134062,8 @@ var path3 = {
|
|
|
134048
134062
|
win32: { sep: "\\" },
|
|
134049
134063
|
posix: { sep: "/" }
|
|
134050
134064
|
};
|
|
134051
|
-
var
|
|
134052
|
-
minimatch.sep =
|
|
134065
|
+
var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
|
|
134066
|
+
minimatch.sep = sep2;
|
|
134053
134067
|
var GLOBSTAR = Symbol("globstar **");
|
|
134054
134068
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
134055
134069
|
var qmark2 = "[^/]";
|
|
@@ -139553,15 +139567,6 @@ glob.glob = glob;
|
|
|
139553
139567
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
139554
139568
|
var import_prettier = require("prettier");
|
|
139555
139569
|
|
|
139556
|
-
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
139557
|
-
var import_node_path6 = require("node:path");
|
|
139558
|
-
var removeExtension = (filePath) => {
|
|
139559
|
-
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
139560
|
-
};
|
|
139561
|
-
function findFileName(filePath) {
|
|
139562
|
-
return filePath?.split(filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
139563
|
-
}
|
|
139564
|
-
|
|
139565
139570
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
139566
139571
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
139567
139572
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|