@storm-software/workspace-tools 1.52.12 → 1.52.15
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 +23 -14
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +8 -1
- package/src/executors/tsup-browser/executor.js +13 -6
- package/src/executors/tsup-neutral/executor.js +13 -6
- package/src/executors/tsup-node/executor.js +13 -6
- package/src/utils/index.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.52.15 (2024-01-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Remove the workspace root from the entry path ([b3916264](https://github.com/storm-software/storm-ops/commit/b3916264))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.52.13 (2024-01-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Updated `entry` parameter provided to tsup executor ([b97c7388](https://github.com/storm-software/storm-ops/commit/b97c7388))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.52.12 (2024-01-29)
|
|
2
26
|
|
|
3
27
|
|
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,9 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
133232
133243
|
const getConfigOptions = {
|
|
133233
133244
|
...options,
|
|
133234
133245
|
main: context.main,
|
|
133246
|
+
entry: {
|
|
133247
|
+
[removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
|
|
133248
|
+
},
|
|
133235
133249
|
define: {
|
|
133236
133250
|
__STORM_CONFIG: JSON.stringify(stormEnv)
|
|
133237
133251
|
},
|
|
@@ -133240,6 +133254,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
133240
133254
|
...stormEnv
|
|
133241
133255
|
},
|
|
133242
133256
|
dtsTsConfig: getNormalizedTsConfig(
|
|
133257
|
+
context,
|
|
133243
133258
|
config.workspaceRoot,
|
|
133244
133259
|
options.outputPath,
|
|
133245
133260
|
createTypeScriptCompilationOptions(
|
|
@@ -133291,13 +133306,16 @@ ${options.banner}
|
|
|
133291
133306
|
);
|
|
133292
133307
|
}
|
|
133293
133308
|
};
|
|
133294
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
133309
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
133295
133310
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
133296
133311
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
133297
133312
|
{
|
|
133298
133313
|
...config,
|
|
133299
133314
|
compilerOptions: {
|
|
133300
133315
|
...config.compilerOptions,
|
|
133316
|
+
entry: {
|
|
133317
|
+
[removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
|
|
133318
|
+
},
|
|
133301
133319
|
outDir: outputPath,
|
|
133302
133320
|
rootDir: workspaceRoot,
|
|
133303
133321
|
baseUrl: workspaceRoot,
|
|
@@ -133314,7 +133332,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
|
133314
133332
|
}
|
|
133315
133333
|
},
|
|
133316
133334
|
ts.sys,
|
|
133317
|
-
(0,
|
|
133335
|
+
(0, import_node_path6.dirname)(options.tsConfig)
|
|
133318
133336
|
);
|
|
133319
133337
|
tsConfig.options.pathsBasePath = workspaceRoot;
|
|
133320
133338
|
if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
|
|
@@ -134048,8 +134066,8 @@ var path3 = {
|
|
|
134048
134066
|
win32: { sep: "\\" },
|
|
134049
134067
|
posix: { sep: "/" }
|
|
134050
134068
|
};
|
|
134051
|
-
var
|
|
134052
|
-
minimatch.sep =
|
|
134069
|
+
var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
|
|
134070
|
+
minimatch.sep = sep2;
|
|
134053
134071
|
var GLOBSTAR = Symbol("globstar **");
|
|
134054
134072
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
134055
134073
|
var qmark2 = "[^/]";
|
|
@@ -139553,15 +139571,6 @@ glob.glob = glob;
|
|
|
139553
139571
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
139554
139572
|
var import_prettier = require("prettier");
|
|
139555
139573
|
|
|
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
139574
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
139566
139575
|
var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
|
|
139567
139576
|
var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
|