@storm-software/workspace-tools 1.43.11 → 1.43.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 +14 -0
- package/index.js +13 -3
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +13 -3
- package/src/executors/tsup-browser/executor.js +13 -3
- package/src/executors/tsup-neutral/executor.js +13 -3
- package/src/executors/tsup-node/executor.js +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.43.12](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.11...workspace-tools-v1.43.12) (2024-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Added tsup build logging ([35d8dae](https://github.com/storm-software/storm-ops/commit/35d8dae8dddc91627c5fcda73f01c16618aaafc6))
|
|
7
|
+
|
|
8
|
+
## [1.43.11](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.10...workspace-tools-v1.43.11) (2024-01-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **config-tools:** Fixed config value defaulting issue for booleans ([c54c60b](https://github.com/storm-software/storm-ops/commit/c54c60b1ddd533530571dd41fd9b6502c1cb2cb8))
|
|
14
|
+
|
|
1
15
|
## [1.43.10](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.9...workspace-tools-v1.43.10) (2024-01-17)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
CHANGED
|
@@ -16007,14 +16007,14 @@ var require_parse_target_string = __commonJS({
|
|
|
16007
16007
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16008
16008
|
exports.targetToTargetString = exports.parseTargetString = void 0;
|
|
16009
16009
|
var nx_1 = require_nx();
|
|
16010
|
-
var { readCachedProjectGraph
|
|
16010
|
+
var { readCachedProjectGraph, splitTarget, splitByColons } = (0, nx_1.requireNx)();
|
|
16011
16011
|
splitTarget = splitTarget ?? require("nx/src/utils/split-target").splitTarget;
|
|
16012
16012
|
splitByColons = splitByColons ?? ((s) => s.split(":"));
|
|
16013
16013
|
function parseTargetString(targetString, projectGraphOrCtx) {
|
|
16014
16014
|
let projectGraph = projectGraphOrCtx && "projectGraph" in projectGraphOrCtx ? projectGraphOrCtx.projectGraph : projectGraphOrCtx;
|
|
16015
16015
|
if (!projectGraph) {
|
|
16016
16016
|
try {
|
|
16017
|
-
projectGraph =
|
|
16017
|
+
projectGraph = readCachedProjectGraph();
|
|
16018
16018
|
} catch (e) {
|
|
16019
16019
|
projectGraph = { nodes: {} };
|
|
16020
16020
|
}
|
|
@@ -137851,10 +137851,16 @@ ${externalDependencies.map((dep) => {
|
|
|
137851
137851
|
}
|
|
137852
137852
|
return ret;
|
|
137853
137853
|
}, {});
|
|
137854
|
+
console.log("Conditional before checking entry points");
|
|
137854
137855
|
if (options.generatePackageJson !== false) {
|
|
137855
|
-
|
|
137856
|
+
console.log("Checking entry points");
|
|
137857
|
+
const projectGraph = await (0, import_devkit3.createProjectGraphAsync)({
|
|
137858
|
+
exitOnError: true
|
|
137859
|
+
});
|
|
137860
|
+
console.log("Read project graph");
|
|
137856
137861
|
packageJson.dependencies = void 0;
|
|
137857
137862
|
for (const externalDependency of externalDependencies) {
|
|
137863
|
+
console.log(externalDependency);
|
|
137858
137864
|
const packageConfig = externalDependency.node.data;
|
|
137859
137865
|
if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
|
|
137860
137866
|
const { packageName, version } = packageConfig;
|
|
@@ -137865,6 +137871,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137865
137871
|
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
137866
137872
|
}
|
|
137867
137873
|
}
|
|
137874
|
+
console.log("Checking entry points - internalDependencies");
|
|
137868
137875
|
for (const packageName of internalDependencies) {
|
|
137869
137876
|
if (!packageJson?.devDependencies?.[packageName]) {
|
|
137870
137877
|
packageJson.dependencies ??= {};
|
|
@@ -137903,6 +137910,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137903
137910
|
},
|
|
137904
137911
|
"./package.json": "./package.json"
|
|
137905
137912
|
};
|
|
137913
|
+
console.log("Checking entry points - packageJson.exports");
|
|
137906
137914
|
packageJson.exports = Object.keys(entry).reduce((ret, key) => {
|
|
137907
137915
|
let packageJsonKey = key.startsWith("./") ? key : `./${key}`;
|
|
137908
137916
|
packageJsonKey = packageJsonKey.replaceAll("/index", "");
|
|
@@ -137959,6 +137967,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137959
137967
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137960
137968
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137961
137969
|
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path3.join)("packages", context.projectName);
|
|
137970
|
+
console.log("Checking entry points - packageJsonPath");
|
|
137962
137971
|
const packageJsonPath = (0, import_node_path3.join)(context.root, options.outputPath, "package.json");
|
|
137963
137972
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137964
137973
|
(0, import_node_fs2.writeFileSync)(
|
|
@@ -137971,6 +137980,7 @@ ${externalDependencies.map((dep) => {
|
|
|
137971
137980
|
} else {
|
|
137972
137981
|
writeWarning(config, "Skipping writing to package.json file");
|
|
137973
137982
|
}
|
|
137983
|
+
console.log("Checking entry points - options.includeSrc");
|
|
137974
137984
|
if (options.includeSrc === true) {
|
|
137975
137985
|
const files = globSync([
|
|
137976
137986
|
(0, import_devkit3.joinPathFragments)(context.root, options.outputPath, "src/**/*.ts"),
|