@storm-software/workspace-tools 1.43.14 → 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 +15 -0
- package/index.js +20 -21
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +13 -1
- package/src/executors/design-tokens/executor.js +13 -1
- package/src/executors/tsup/executor.js +20 -21
- package/src/executors/tsup-browser/executor.js +20 -21
- package/src/executors/tsup-neutral/executor.js +20 -21
- package/src/executors/tsup-node/executor.js +20 -21
- package/src/generators/browser-library/generator.js +13 -1
- package/src/generators/config-schema/generator.js +13 -1
- package/src/generators/neutral-library/generator.js +13 -1
- package/src/generators/node-library/generator.js +13 -1
- package/src/generators/preset/generator.js +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
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)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **workspace-tools:** Update the logic to apply external dependencies ([29b73ca](https://github.com/storm-software/storm-ops/commit/29b73ca3ee95539a3832adcc59043882d358eb53))
|
|
15
|
+
|
|
1
16
|
## [1.43.13](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.12...workspace-tools-v1.43.13) (2024-01-17)
|
|
2
17
|
|
|
3
18
|
|
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
|
}
|
|
@@ -130562,7 +130562,19 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
130562
130562
|
const configEnv = getConfigEnv();
|
|
130563
130563
|
for (const key of Object.keys(configEnv)) {
|
|
130564
130564
|
if (configEnv[key] !== void 0 && configEnv[key] !== null) {
|
|
130565
|
-
|
|
130565
|
+
if (key === "colors") {
|
|
130566
|
+
configFile.colors = {
|
|
130567
|
+
primary: process.env.STORM_COLOR_PRIMARY ?? configFile.colors?.primary,
|
|
130568
|
+
background: process.env.STORM_COLOR_BACKGROUND ?? configFile.colors?.primary,
|
|
130569
|
+
success: process.env.STORM_COLOR_SUCCESS ?? configFile.colors?.primary,
|
|
130570
|
+
info: process.env.STORM_COLOR_INFO ?? configFile.colors?.primary,
|
|
130571
|
+
warning: process.env.STORM_COLOR_WARNING ?? configFile.colors?.primary,
|
|
130572
|
+
error: process.env.STORM_COLOR_ERROR ?? configFile.colors?.primary,
|
|
130573
|
+
fatal: process.env.STORM_COLOR_FATAL ?? configFile.colors?.primary
|
|
130574
|
+
};
|
|
130575
|
+
} else {
|
|
130576
|
+
configFile[key] = configEnv[key];
|
|
130577
|
+
}
|
|
130566
130578
|
}
|
|
130567
130579
|
}
|
|
130568
130580
|
const config = StormConfigSchema.parse(configFile);
|
|
@@ -137851,29 +137863,19 @@ ${externalDependencies.map((dep) => {
|
|
|
137851
137863
|
}
|
|
137852
137864
|
return ret;
|
|
137853
137865
|
}, {});
|
|
137854
|
-
console.log("Conditional before checking entry points");
|
|
137855
137866
|
if (options.generatePackageJson !== false) {
|
|
137856
|
-
|
|
137857
|
-
const projectGraph = await (0, import_devkit3.createProjectGraphAsync)({
|
|
137858
|
-
exitOnError: true
|
|
137859
|
-
});
|
|
137860
|
-
console.log("Read project graph");
|
|
137867
|
+
const projectGraph = (0, import_devkit3.readCachedProjectGraph)();
|
|
137861
137868
|
packageJson.dependencies = void 0;
|
|
137862
137869
|
for (const externalDependency of externalDependencies) {
|
|
137863
|
-
console.log(externalDependency);
|
|
137864
137870
|
const packageConfig = externalDependency.node.data;
|
|
137865
|
-
if (packageConfig?.packageName && externalDependency.node.type === "npm") {
|
|
137866
|
-
console.log("In if statement");
|
|
137867
|
-
console.log(packageConfig);
|
|
137871
|
+
if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
|
|
137868
137872
|
const { packageName, version } = packageConfig;
|
|
137869
|
-
if (workspacePackageJson.dependencies?.[packageName]
|
|
137870
|
-
|
|
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;
|
|
137871
137876
|
}
|
|
137872
|
-
packageJson.dependencies ??= {};
|
|
137873
|
-
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
137874
137877
|
}
|
|
137875
137878
|
}
|
|
137876
|
-
console.log("Checking entry points - internalDependencies");
|
|
137877
137879
|
for (const packageName of internalDependencies) {
|
|
137878
137880
|
if (!packageJson?.devDependencies?.[packageName]) {
|
|
137879
137881
|
packageJson.dependencies ??= {};
|
|
@@ -137912,7 +137914,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137912
137914
|
},
|
|
137913
137915
|
"./package.json": "./package.json"
|
|
137914
137916
|
};
|
|
137915
|
-
console.log("Checking entry points - packageJson.exports");
|
|
137916
137917
|
packageJson.exports = Object.keys(entry).reduce((ret, key) => {
|
|
137917
137918
|
let packageJsonKey = key.startsWith("./") ? key : `./${key}`;
|
|
137918
137919
|
packageJsonKey = packageJsonKey.replaceAll("/index", "");
|
|
@@ -137969,7 +137970,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137969
137970
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137970
137971
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137971
137972
|
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path3.join)("packages", context.projectName);
|
|
137972
|
-
console.log("Checking entry points - packageJsonPath");
|
|
137973
137973
|
const packageJsonPath = (0, import_node_path3.join)(context.root, options.outputPath, "package.json");
|
|
137974
137974
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137975
137975
|
(0, import_node_fs2.writeFileSync)(
|
|
@@ -137982,7 +137982,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137982
137982
|
} else {
|
|
137983
137983
|
writeWarning(config, "Skipping writing to package.json file");
|
|
137984
137984
|
}
|
|
137985
|
-
console.log("Checking entry points - options.includeSrc");
|
|
137986
137985
|
if (options.includeSrc === true) {
|
|
137987
137986
|
const files = globSync([
|
|
137988
137987
|
(0, import_devkit3.joinPathFragments)(context.root, options.outputPath, "src/**/*.ts"),
|