@storm-software/workspace-tools 1.43.15 → 1.43.16
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 +8 -0
- package/index.js +7 -20
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +7 -20
- package/src/executors/tsup-browser/executor.js +7 -20
- package/src/executors/tsup-neutral/executor.js +7 -20
- package/src/executors/tsup-node/executor.js +7 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.43.15](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.14...workspace-tools-v1.43.15) (2024-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **config-tools:** Ensure colors are set correctly ([e6fffd0](https://github.com/storm-software/storm-ops/commit/e6fffd0c6554d2fa36e3a4b8b44b443c030aa831))
|
|
7
|
+
* **workspace-tools:** Skip adding biome as external dependency ([0512735](https://github.com/storm-software/storm-ops/commit/051273598815a55c9e5f0ff7b39e1eefc2b93be3))
|
|
8
|
+
|
|
1
9
|
## [1.43.14](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.13...workspace-tools-v1.43.14) (2024-01-17)
|
|
2
10
|
|
|
3
11
|
|
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, splitTarget, splitByColons } = (0, nx_1.requireNx)();
|
|
16010
|
+
var { readCachedProjectGraph: readCachedProjectGraph2, 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 = readCachedProjectGraph2();
|
|
16018
16018
|
} catch (e) {
|
|
16019
16019
|
projectGraph = { nodes: {} };
|
|
16020
16020
|
}
|
|
@@ -137863,29 +137863,19 @@ ${externalDependencies.map((dep) => {
|
|
|
137863
137863
|
}
|
|
137864
137864
|
return ret;
|
|
137865
137865
|
}, {});
|
|
137866
|
-
console.log("Conditional before checking entry points");
|
|
137867
137866
|
if (options.generatePackageJson !== false) {
|
|
137868
|
-
|
|
137869
|
-
const projectGraph = await (0, import_devkit3.createProjectGraphAsync)({
|
|
137870
|
-
exitOnError: true
|
|
137871
|
-
});
|
|
137872
|
-
console.log("Read project graph");
|
|
137867
|
+
const projectGraph = (0, import_devkit3.readCachedProjectGraph)();
|
|
137873
137868
|
packageJson.dependencies = void 0;
|
|
137874
137869
|
for (const externalDependency of externalDependencies) {
|
|
137875
|
-
console.log(externalDependency);
|
|
137876
137870
|
const packageConfig = externalDependency.node.data;
|
|
137877
|
-
if (packageConfig?.packageName && externalDependency.node.type === "npm"
|
|
137878
|
-
console.log("In if statement");
|
|
137879
|
-
console.log(packageConfig);
|
|
137871
|
+
if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
|
|
137880
137872
|
const { packageName, version } = packageConfig;
|
|
137881
|
-
if (workspacePackageJson.dependencies?.[packageName]
|
|
137882
|
-
|
|
137873
|
+
if (!workspacePackageJson.dependencies?.[packageName] && !workspacePackageJson.devDependencies?.[packageName] && !packageJson?.devDependencies?.[packageName]) {
|
|
137874
|
+
packageJson.dependencies ??= {};
|
|
137875
|
+
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
137883
137876
|
}
|
|
137884
|
-
packageJson.dependencies ??= {};
|
|
137885
|
-
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
137886
137877
|
}
|
|
137887
137878
|
}
|
|
137888
|
-
console.log("Checking entry points - internalDependencies");
|
|
137889
137879
|
for (const packageName of internalDependencies) {
|
|
137890
137880
|
if (!packageJson?.devDependencies?.[packageName]) {
|
|
137891
137881
|
packageJson.dependencies ??= {};
|
|
@@ -137924,7 +137914,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137924
137914
|
},
|
|
137925
137915
|
"./package.json": "./package.json"
|
|
137926
137916
|
};
|
|
137927
|
-
console.log("Checking entry points - packageJson.exports");
|
|
137928
137917
|
packageJson.exports = Object.keys(entry).reduce((ret, key) => {
|
|
137929
137918
|
let packageJsonKey = key.startsWith("./") ? key : `./${key}`;
|
|
137930
137919
|
packageJsonKey = packageJsonKey.replaceAll("/index", "");
|
|
@@ -137981,7 +137970,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137981
137970
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137982
137971
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137983
137972
|
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path3.join)("packages", context.projectName);
|
|
137984
|
-
console.log("Checking entry points - packageJsonPath");
|
|
137985
137973
|
const packageJsonPath = (0, import_node_path3.join)(context.root, options.outputPath, "package.json");
|
|
137986
137974
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137987
137975
|
(0, import_node_fs2.writeFileSync)(
|
|
@@ -137994,7 +137982,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137994
137982
|
} else {
|
|
137995
137983
|
writeWarning(config, "Skipping writing to package.json file");
|
|
137996
137984
|
}
|
|
137997
|
-
console.log("Checking entry points - options.includeSrc");
|
|
137998
137985
|
if (options.includeSrc === true) {
|
|
137999
137986
|
const files = globSync([
|
|
138000
137987
|
(0, import_devkit3.joinPathFragments)(context.root, options.outputPath, "src/**/*.ts"),
|