@storm-software/workspace-tools 1.30.0 → 1.30.2
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 +14 -0
- package/index.js +21 -20
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +21 -20
- package/src/executors/tsup/get-config.js +1 -1
- package/src/executors/tsup-browser/executor.js +21 -20
- package/src/executors/tsup-neutral/executor.js +21 -20
- package/src/executors/tsup-node/executor.js +21 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.30.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.30.0...workspace-tools-v1.30.1) (2023-12-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved issue with dependency names and bad entry paths ([85b3e68](https://github.com/storm-software/storm-ops/commit/85b3e6896731be05284b8c1d9f504ef75fd0dbfc))
|
|
7
|
+
|
|
8
|
+
# [1.30.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.29.0...workspace-tools-v1.30.0) (2023-12-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Added the `packageAll` option to build nested package files ([cf18588](https://github.com/storm-software/storm-ops/commit/cf18588e55e491f984affecd040c95298f0cf273))
|
|
14
|
+
|
|
1
15
|
# [1.29.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.28.0...workspace-tools-v1.29.0) (2023-12-12)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
CHANGED
|
@@ -117425,7 +117425,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
117425
117425
|
let propertyKey = (0, import_devkit.joinPathFragments)(
|
|
117426
117426
|
filePath.path,
|
|
117427
117427
|
removeExtension(filePath.name)
|
|
117428
|
-
).replaceAll("
|
|
117428
|
+
).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(1).replaceAll("\\", "/"), "").replaceAll(sourceRoot.replaceAll("\\", "/"), "").replaceAll(projectRoot.replaceAll("\\", "/"), "");
|
|
117429
117429
|
if (propertyKey) {
|
|
117430
117430
|
while (propertyKey.startsWith("/")) {
|
|
117431
117431
|
propertyKey = propertyKey.substring(1);
|
|
@@ -117518,7 +117518,7 @@ ${Object.keys(options).map(
|
|
|
117518
117518
|
output: "."
|
|
117519
117519
|
});
|
|
117520
117520
|
}
|
|
117521
|
-
if (options.includeSrc
|
|
117521
|
+
if (options.includeSrc === true) {
|
|
117522
117522
|
assets.push({
|
|
117523
117523
|
input: sourceRoot,
|
|
117524
117524
|
glob: "**/{*.ts,*.tsx,*.js,*.jsx}",
|
|
@@ -117551,16 +117551,17 @@ ${Object.keys(options).map(
|
|
|
117551
117551
|
if (implicitDependencies && implicitDependencies.length > 0) {
|
|
117552
117552
|
options.external = implicitDependencies.reduce(
|
|
117553
117553
|
(ret, key) => {
|
|
117554
|
-
if (context.projectsConfigurations.projects[key].
|
|
117555
|
-
const
|
|
117556
|
-
|
|
117557
|
-
|
|
117558
|
-
|
|
117559
|
-
|
|
117560
|
-
|
|
117561
|
-
|
|
117562
|
-
|
|
117563
|
-
|
|
117554
|
+
if (Object.keys(context.projectsConfigurations.projects[key]?.targets).length > 0) {
|
|
117555
|
+
const buildTargetName = Object.keys(
|
|
117556
|
+
context.projectsConfigurations.projects[key].targets
|
|
117557
|
+
).find((name) => name.toLowerCase() === "build");
|
|
117558
|
+
if (buildTargetName && context.projectsConfigurations.projects[key].targets[buildTargetName]?.options?.project) {
|
|
117559
|
+
const packageJson = (0, import_devkit2.readJsonFile)(
|
|
117560
|
+
context.projectsConfigurations.projects[key].targets[buildTargetName].options.project
|
|
117561
|
+
);
|
|
117562
|
+
if (packageJson?.name && !options.external.includes(packageJson.name)) {
|
|
117563
|
+
ret.push(packageJson.name);
|
|
117564
|
+
}
|
|
117564
117565
|
}
|
|
117565
117566
|
}
|
|
117566
117567
|
return ret;
|
|
@@ -117648,20 +117649,20 @@ ${Object.keys(options).map(
|
|
|
117648
117649
|
default: "./dist/modern/index.cjs"
|
|
117649
117650
|
},
|
|
117650
117651
|
default: {
|
|
117651
|
-
types: "./dist/modern
|
|
117652
|
-
default: "./dist/modern
|
|
117652
|
+
types: "./dist/modern/index.d.ts",
|
|
117653
|
+
default: "./dist/modern/index.js"
|
|
117653
117654
|
},
|
|
117654
117655
|
"./*": {
|
|
117655
117656
|
"import": {
|
|
117656
|
-
types: "./dist/modern
|
|
117657
|
+
types: "./dist/modern/index.d.ts",
|
|
117657
117658
|
default: "./dist/modern/**/*.js"
|
|
117658
117659
|
},
|
|
117659
117660
|
require: {
|
|
117660
|
-
types: "./dist/modern
|
|
117661
|
+
types: "./dist/modern/index.d.cts",
|
|
117661
117662
|
default: "./dist/modern/**/*.cjs"
|
|
117662
117663
|
},
|
|
117663
117664
|
"default": {
|
|
117664
|
-
types: "./dist/modern
|
|
117665
|
+
types: "./dist/modern/index.d.ts",
|
|
117665
117666
|
default: "./dist/modern/**/*.js"
|
|
117666
117667
|
}
|
|
117667
117668
|
},
|
|
@@ -117689,7 +117690,7 @@ ${Object.keys(options).map(
|
|
|
117689
117690
|
packageJson.main ??= "dist/legacy/index.cjs";
|
|
117690
117691
|
packageJson.module ??= "dist/legacy/index.js";
|
|
117691
117692
|
options.platform && options.platform !== "node" && (packageJson.browser ??= "dist/modern/index.global.js");
|
|
117692
|
-
if (options.includeSrc
|
|
117693
|
+
if (options.includeSrc === true) {
|
|
117693
117694
|
let distSrc = sourceRoot.replace(projectRoot, "");
|
|
117694
117695
|
if (distSrc.startsWith("/")) {
|
|
117695
117696
|
distSrc = distSrc.substring(1);
|
|
@@ -117701,7 +117702,7 @@ ${Object.keys(options).map(
|
|
|
117701
117702
|
}
|
|
117702
117703
|
packageJson.sideEffects ??= false;
|
|
117703
117704
|
packageJson.files ??= ["dist/**/*"];
|
|
117704
|
-
if (options.includeSrc
|
|
117705
|
+
if (options.includeSrc === true && !packageJson.files.includes("src")) {
|
|
117705
117706
|
packageJson.files.push("src/**/*");
|
|
117706
117707
|
}
|
|
117707
117708
|
packageJson.publishConfig ??= {
|
|
@@ -117729,7 +117730,7 @@ ${Object.keys(options).map(
|
|
|
117729
117730
|
})
|
|
117730
117731
|
);
|
|
117731
117732
|
}
|
|
117732
|
-
if (options.includeSrc
|
|
117733
|
+
if (options.includeSrc === true) {
|
|
117733
117734
|
const files = globSync([
|
|
117734
117735
|
(0, import_devkit2.joinPathFragments)(context.root, options.outputPath, "src/**/*.ts"),
|
|
117735
117736
|
(0, import_devkit2.joinPathFragments)(context.root, options.outputPath, "src/**/*.tsx"),
|