@storm-software/workspace-tools 1.52.11 → 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 +30 -0
- package/index.js +16 -12
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +16 -12
- package/src/executors/tsup-browser/executor.js +16 -12
- package/src/executors/tsup-neutral/executor.js +16 -12
- package/src/executors/tsup-node/executor.js +16 -12
- package/src/utils/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
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
|
+
|
|
13
|
+
## 1.52.12 (2024-01-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Added full publish fields to target ([921dc2b6](https://github.com/storm-software/storm-ops/commit/921dc2b6))
|
|
19
|
+
|
|
20
|
+
- **workspace-tools:** Resolved issue with npm publish executor build ([2e3cbaf9](https://github.com/storm-software/storm-ops/commit/2e3cbaf9))
|
|
21
|
+
|
|
22
|
+
- **workspace-tools:** Removed unused dependency on execa ([ef923229](https://github.com/storm-software/storm-ops/commit/ef923229))
|
|
23
|
+
|
|
24
|
+
- **workspace-tools:** Ensure a promise is returned back from the npm publish executor ([c2c2616c](https://github.com/storm-software/storm-ops/commit/c2c2616c))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### ❤️ Thank You
|
|
28
|
+
|
|
29
|
+
- Patrick Sullivan
|
|
30
|
+
|
|
1
31
|
## 1.52.11 (2024-01-29)
|
|
2
32
|
|
|
3
33
|
|
package/index.js
CHANGED
|
@@ -133252,6 +133252,7 @@ var runTsupBuild = async (context, config, options) => {
|
|
|
133252
133252
|
...stormEnv
|
|
133253
133253
|
},
|
|
133254
133254
|
dtsTsConfig: getNormalizedTsConfig(
|
|
133255
|
+
context,
|
|
133255
133256
|
config.workspaceRoot,
|
|
133256
133257
|
options.outputPath,
|
|
133257
133258
|
createTypeScriptCompilationOptions(
|
|
@@ -133303,13 +133304,14 @@ ${options.banner}
|
|
|
133303
133304
|
);
|
|
133304
133305
|
}
|
|
133305
133306
|
};
|
|
133306
|
-
function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
|
|
133307
|
+
function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
|
|
133307
133308
|
const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
|
|
133308
133309
|
const tsConfig = ts.parseJsonConfigFileContent(
|
|
133309
133310
|
{
|
|
133310
133311
|
...config,
|
|
133311
133312
|
compilerOptions: {
|
|
133312
133313
|
...config.compilerOptions,
|
|
133314
|
+
entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
|
|
133313
133315
|
outDir: outputPath,
|
|
133314
133316
|
rootDir: workspaceRoot,
|
|
133315
133317
|
baseUrl: workspaceRoot,
|
|
@@ -139801,17 +139803,19 @@ ${externalDependencies.map((dep) => {
|
|
|
139801
139803
|
}
|
|
139802
139804
|
if (options.generatePackageJson !== false) {
|
|
139803
139805
|
const projectGraph = (0, import_devkit4.readCachedProjectGraph)();
|
|
139804
|
-
|
|
139805
|
-
|
|
139806
|
-
const
|
|
139807
|
-
|
|
139808
|
-
|
|
139809
|
-
|
|
139810
|
-
|
|
139811
|
-
|
|
139812
|
-
|
|
139813
|
-
|
|
139814
|
-
options.external.
|
|
139806
|
+
if (options.bundle === false) {
|
|
139807
|
+
packageJson.dependencies = void 0;
|
|
139808
|
+
for (const externalDependency of externalDependencies) {
|
|
139809
|
+
const packageConfig = externalDependency?.node?.data;
|
|
139810
|
+
if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
|
|
139811
|
+
const { packageName, version } = packageConfig;
|
|
139812
|
+
if (!workspacePackageJson.dependencies?.[packageName] && !workspacePackageJson.devDependencies?.[packageName] && !packageJson?.devDependencies?.[packageName]) {
|
|
139813
|
+
packageJson.dependencies ??= {};
|
|
139814
|
+
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
139815
|
+
}
|
|
139816
|
+
if (!options.external.includes(packageName)) {
|
|
139817
|
+
options.external.push(packageName);
|
|
139818
|
+
}
|
|
139815
139819
|
}
|
|
139816
139820
|
}
|
|
139817
139821
|
}
|