@storm-software/workspace-tools 1.246.4 → 1.247.1
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 +16 -0
- package/README.md +1 -1
- package/config/base.json +28 -35
- package/dist/{chunk-BKTZEV6F.mjs → chunk-2LIE7SJ3.mjs} +32 -19
- package/dist/{chunk-K4OE73MG.mjs → chunk-3IY2B44Z.mjs} +4 -4
- package/dist/{chunk-P2US2643.mjs → chunk-5EWLM3N6.mjs} +4 -4
- package/dist/{chunk-RIZNQRKB.mjs → chunk-5GLAGFHA.mjs} +3 -3
- package/dist/{chunk-N7VQR5KC.mjs → chunk-5JXVOE56.mjs} +3 -3
- package/dist/{chunk-GZPCM2GI.mjs → chunk-7MZLWLLT.mjs} +3 -3
- package/dist/{chunk-B3V2M6LS.mjs → chunk-AHTDYOCZ.mjs} +3 -3
- package/dist/{chunk-NXGZ7AHM.mjs → chunk-ATMJKNFF.mjs} +5 -5
- package/dist/{chunk-SIKIOIIG.js → chunk-B5YTVDRU.js} +3 -3
- package/dist/{chunk-T433AJNU.mjs → chunk-BLSGWUGX.mjs} +3 -3
- package/dist/{chunk-M666DZYJ.mjs → chunk-C5YDISDP.mjs} +2 -2
- package/dist/{chunk-FZI3TKFY.mjs → chunk-D7VXZZFG.mjs} +1 -1
- package/dist/{chunk-7UV5IDAC.js → chunk-DVR7HEPK.js} +27 -14
- package/dist/{chunk-LREFZEYI.mjs → chunk-E52NPVHL.mjs} +4 -4
- package/dist/{chunk-VYH45FO6.mjs → chunk-EIM3O6HY.mjs} +1 -1
- package/dist/{chunk-ZKFSI55N.mjs → chunk-EPZT247P.mjs} +4 -4
- package/dist/{chunk-SLCOHXD3.mjs → chunk-F2GYXQ5H.mjs} +5 -4
- package/dist/{chunk-6TUIQWYY.js → chunk-GDHENHPI.js} +13 -13
- package/dist/{chunk-N3CJLBVV.mjs → chunk-H7GRZIKQ.mjs} +4 -4
- package/dist/{chunk-XN7ENDA5.mjs → chunk-HDWS7GST.mjs} +3 -3
- package/dist/{chunk-LUQIF4A3.mjs → chunk-HUCDWLQ3.mjs} +2 -2
- package/dist/{chunk-FBIVTCSJ.mjs → chunk-JB4KCMSB.mjs} +2 -2
- package/dist/{chunk-46LLLM6U.mjs → chunk-JQCRK5FU.mjs} +3 -3
- package/dist/{chunk-NCFX2MWO.mjs → chunk-KZJCDAOU.mjs} +1 -1
- package/dist/{chunk-NDZMHOBS.mjs → chunk-LWUP4RIM.mjs} +2 -2
- package/dist/{chunk-IDXFMQIQ.js → chunk-MOPEW5LB.js} +3 -3
- package/dist/{chunk-24DH46CG.mjs → chunk-MQE5KGI7.mjs} +3 -3
- package/dist/{chunk-XXRNBEAC.mjs → chunk-NH75ORHH.mjs} +3 -3
- package/dist/{chunk-USUT2GLD.mjs → chunk-OHEABZJW.mjs} +1 -1
- package/dist/{chunk-CXICJ646.mjs → chunk-OM7XDCE7.mjs} +3 -3
- package/dist/{chunk-XIVUJTNL.mjs → chunk-OS3ZHOJP.mjs} +5 -5
- package/dist/{chunk-OUEARINQ.mjs → chunk-OVR2BAKA.mjs} +2 -2
- package/dist/{chunk-3ORCJSUT.mjs → chunk-P2SLAYFV.mjs} +3 -3
- package/dist/{chunk-7JBZ67ON.js → chunk-PKBJIHOW.js} +9 -9
- package/dist/{chunk-3SODJVIS.js → chunk-PQQYCAXU.js} +3 -3
- package/dist/{chunk-EOUMS7CZ.mjs → chunk-R6RTCWUK.mjs} +2 -2
- package/dist/{chunk-XUV4U54K.mjs → chunk-R7DU2APC.mjs} +1 -1
- package/dist/{chunk-ECSCURQQ.js → chunk-RBU35LQW.js} +2 -1
- package/dist/{chunk-NJ2QOT34.mjs → chunk-U7LV2H52.mjs} +1 -1
- package/dist/{chunk-LIYZBMAM.mjs → chunk-UH565HF3.mjs} +1 -1
- package/dist/{chunk-TBQH5BQE.mjs → chunk-V7IOKRJA.mjs} +2 -2
- package/dist/{chunk-X7XA6QPV.mjs → chunk-VBPOZVKY.mjs} +3 -3
- package/dist/{chunk-TTVIYPRD.mjs → chunk-VCU6XMJC.mjs} +4 -4
- package/dist/{chunk-66TYTM73.mjs → chunk-W3SWWT4A.mjs} +1 -1
- package/dist/{chunk-J5SXKBBU.mjs → chunk-X3GPVZMH.mjs} +1 -1
- package/dist/{chunk-QZHIWK5Z.mjs → chunk-XK3FSWMA.mjs} +1 -1
- package/dist/{chunk-6ZQ3QYXH.mjs → chunk-XUYTELRS.mjs} +2 -2
- package/dist/{chunk-UTHOW4PP.mjs → chunk-YHV3GYYF.mjs} +4 -4
- package/dist/{chunk-ZKBLM3HV.mjs → chunk-YK676R5F.mjs} +4 -4
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +22 -22
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +16 -16
- package/dist/index.js +8 -8
- package/dist/index.mjs +40 -40
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +2 -2
- package/dist/src/base/index.mjs +10 -10
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +6 -6
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +3 -3
- package/dist/src/executors/esbuild/executor.mjs +8 -8
- package/dist/src/executors/esbuild/untyped.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.js +3 -3
- package/dist/src/executors/tsdown/executor.mjs +8 -8
- package/dist/src/executors/tsdown/untyped.mjs +2 -2
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.mjs +2 -2
- package/dist/src/generators/browser-library/generator.js +3 -3
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.js +3 -3
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.js +3 -3
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsdown.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.mjs +2 -2
- package/dist/src/plugins/typescript/untyped-schema.mjs +2 -2
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- package/dist/src/utils/index.mjs +14 -14
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.mjs +3 -3
- package/dist/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 1.247.1 (2025-02-01)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Resolve type script build issues ([2ff75dcc](https://github.com/storm-software/storm-ops/commit/2ff75dcc))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files ([af5c80fa](https://github.com/storm-software/storm-ops/commit/af5c80fa))
|
|
10
|
+
|
|
11
|
+
## 1.247.0 (2025-02-01)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- **config:** Renamed config file from `storm.json` to `storm-workspace.json` ([3ce65c15](https://github.com/storm-software/storm-ops/commit/3ce65c15))
|
|
16
|
+
|
|
1
17
|
## 1.246.4 (2025-01-29)
|
|
2
18
|
|
|
3
19
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/config/base.json
CHANGED
|
@@ -307,15 +307,7 @@
|
|
|
307
307
|
]
|
|
308
308
|
},
|
|
309
309
|
"targetDefaults": {
|
|
310
|
-
"lint-docs": {
|
|
311
|
-
"cache": true,
|
|
312
|
-
"outputs": ["{projectRoot}/**/*"],
|
|
313
|
-
"inputs": ["linting", "documentation", "default", "^production"],
|
|
314
|
-
"executor": "nx:run-commands",
|
|
315
|
-
"dependsOn": ["build", "^lint-docs"]
|
|
316
|
-
},
|
|
317
310
|
"lint-ls": {
|
|
318
|
-
"cache": true,
|
|
319
311
|
"outputs": ["{projectRoot}/**/*"],
|
|
320
312
|
"inputs": ["linting", "default", "^production"],
|
|
321
313
|
"dependsOn": ["^lint-ls"],
|
|
@@ -326,7 +318,6 @@
|
|
|
326
318
|
}
|
|
327
319
|
},
|
|
328
320
|
"lint-sherif": {
|
|
329
|
-
"cache": true,
|
|
330
321
|
"outputs": ["{projectRoot}/package.json"],
|
|
331
322
|
"inputs": ["{workspaceRoot}/package.json", "{projectRoot}/package.json"],
|
|
332
323
|
"executor": "nx:run-commands",
|
|
@@ -335,7 +326,6 @@
|
|
|
335
326
|
}
|
|
336
327
|
},
|
|
337
328
|
"lint-knip": {
|
|
338
|
-
"cache": true,
|
|
339
329
|
"inputs": ["linting", "default", "^production"],
|
|
340
330
|
"executor": "nx:run-commands",
|
|
341
331
|
"options": {
|
|
@@ -343,18 +333,21 @@
|
|
|
343
333
|
}
|
|
344
334
|
},
|
|
345
335
|
"lint": {
|
|
346
|
-
"cache": true,
|
|
347
336
|
"outputs": ["{projectRoot}"],
|
|
348
337
|
"inputs": ["linting", "default", "^production"],
|
|
349
|
-
"dependsOn": [
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
338
|
+
"dependsOn": [
|
|
339
|
+
"lint-ls",
|
|
340
|
+
"lint-sherif",
|
|
341
|
+
"lint-knip",
|
|
342
|
+
"lint-docs",
|
|
343
|
+
"^lint"
|
|
344
|
+
],
|
|
345
|
+
"executor": "nx:run-commands",
|
|
346
|
+
"options": {
|
|
347
|
+
"command": "echo Linted the project files in \"{projectRoot}\" "
|
|
348
|
+
}
|
|
355
349
|
},
|
|
356
350
|
"format-toml": {
|
|
357
|
-
"cache": true,
|
|
358
351
|
"inputs": ["linting", "{projectRoot}/**/*.toml"],
|
|
359
352
|
"outputs": ["{projectRoot}/**/*.toml"],
|
|
360
353
|
"dependsOn": ["^format-toml"],
|
|
@@ -365,7 +358,6 @@
|
|
|
365
358
|
}
|
|
366
359
|
},
|
|
367
360
|
"format-readme": {
|
|
368
|
-
"cache": true,
|
|
369
361
|
"inputs": [
|
|
370
362
|
"linting",
|
|
371
363
|
"documentation",
|
|
@@ -382,7 +374,6 @@
|
|
|
382
374
|
}
|
|
383
375
|
},
|
|
384
376
|
"format-prettier": {
|
|
385
|
-
"cache": true,
|
|
386
377
|
"inputs": ["linting", "default", "^production"],
|
|
387
378
|
"dependsOn": ["^format-prettier"],
|
|
388
379
|
"executor": "nx:run-commands",
|
|
@@ -392,41 +383,47 @@
|
|
|
392
383
|
}
|
|
393
384
|
},
|
|
394
385
|
"format": {
|
|
395
|
-
"cache": true,
|
|
396
386
|
"inputs": ["linting", "default", "^production"],
|
|
397
387
|
"outputs": ["{projectRoot}"],
|
|
388
|
+
"dependsOn": [
|
|
389
|
+
"format-toml",
|
|
390
|
+
"format-readme",
|
|
391
|
+
"format-prettier",
|
|
392
|
+
"^format"
|
|
393
|
+
],
|
|
398
394
|
"executor": "nx:run-commands",
|
|
399
395
|
"options": {
|
|
400
|
-
"command": "echo
|
|
401
|
-
"color": true
|
|
396
|
+
"command": "echo Formatted the project files in \"{projectRoot}\" "
|
|
402
397
|
}
|
|
403
398
|
},
|
|
404
399
|
"clean": {
|
|
405
|
-
"cache": true,
|
|
406
400
|
"inputs": ["default", "^production"],
|
|
401
|
+
"outputs": "NX_DEFAULT_BUILD_OUTPUTS",
|
|
402
|
+
"dependsOn": ["^clean"],
|
|
407
403
|
"executor": "nx:run-commands",
|
|
408
|
-
"
|
|
404
|
+
"options": {
|
|
405
|
+
"commands": [
|
|
406
|
+
"pnpm exec rimraf --glob {projectRoot}/dist",
|
|
407
|
+
"pnpm exec rimraf dist/{projectRoot}"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
409
410
|
},
|
|
410
411
|
"build-untyped": {
|
|
411
|
-
"cache": true,
|
|
412
412
|
"dependsOn": ["^build"]
|
|
413
413
|
},
|
|
414
414
|
"build-base": {
|
|
415
|
-
"
|
|
416
|
-
"dependsOn": ["clean", "build-untyped", "^build"]
|
|
415
|
+
"dependsOn": ["build-untyped", "^build"]
|
|
417
416
|
},
|
|
418
417
|
"build-local": {
|
|
419
|
-
"cache": true,
|
|
420
418
|
"inputs": ["default", "^production"],
|
|
421
419
|
"dependsOn": ["build-base", "build-untyped", "^build"]
|
|
422
420
|
},
|
|
423
421
|
"build": {
|
|
424
|
-
"cache": true,
|
|
425
422
|
"inputs": ["default", "^production"],
|
|
423
|
+
"outputs": "NX_DEFAULT_BUILD_OUTPUTS",
|
|
426
424
|
"dependsOn": ["build-base", "build-untyped", "^build"]
|
|
427
425
|
},
|
|
428
426
|
"rebuild": {
|
|
429
|
-
"cache": false,
|
|
430
427
|
"inputs": ["default", "^production"],
|
|
431
428
|
"executor": "nx:run-commands",
|
|
432
429
|
"dependsOn": ["clean", "^build"],
|
|
@@ -437,23 +434,19 @@
|
|
|
437
434
|
}
|
|
438
435
|
},
|
|
439
436
|
"docs": {
|
|
440
|
-
"cache": true,
|
|
441
437
|
"outputs": ["{options.outputPath}"],
|
|
442
438
|
"inputs": ["linting", "documentation", "default", "^production"],
|
|
443
439
|
"dependsOn": ["build", "format-readme", "lint-docs", "^docs"]
|
|
444
440
|
},
|
|
445
441
|
"test": {
|
|
446
|
-
"cache": true,
|
|
447
442
|
"inputs": ["testing", "default", "^production"],
|
|
448
443
|
"dependsOn": ["build", "^test"]
|
|
449
444
|
},
|
|
450
445
|
"e2e": {
|
|
451
|
-
"cache": true,
|
|
452
446
|
"inputs": ["testing", "default", "^production"],
|
|
453
447
|
"dependsOn": ["test", "^e2e"]
|
|
454
448
|
},
|
|
455
449
|
"nx-release-publish": {
|
|
456
|
-
"cache": true,
|
|
457
450
|
"inputs": ["default", "^production"],
|
|
458
451
|
"dependsOn": ["build", "^nx-release-publish"]
|
|
459
452
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C5YDISDP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
correctPaths,
|
|
10
10
|
joinPaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
15
15
|
|
|
16
16
|
// ../build-tools/src/config.ts
|
|
17
17
|
var DEFAULT_COMPILED_BANNER = `
|
|
@@ -82,11 +82,12 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
82
82
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
83
83
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
84
84
|
import { Glob } from "glob";
|
|
85
|
-
import { existsSync } from "node:fs";
|
|
85
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
86
86
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
87
|
-
import { readCachedProjectGraph } from "nx/src/project-graph/project-graph";
|
|
87
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
88
88
|
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
89
|
-
const
|
|
89
|
+
const projectGraph = readCachedProjectGraph();
|
|
90
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
90
91
|
const localPackages = [];
|
|
91
92
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
92
93
|
const projectNode = project.node;
|
|
@@ -103,26 +104,38 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
103
104
|
}
|
|
104
105
|
if (localPackages.length > 0) {
|
|
105
106
|
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
const projectJsonFile = await readFile2(joinPaths(projectRoot, "project.json"), "utf8");
|
|
108
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
109
|
+
const projectName2 = projectJson.name;
|
|
110
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
111
|
+
if (!projectConfigurations?.projects?.[projectName2]) {
|
|
112
|
+
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
113
|
+
}
|
|
114
|
+
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
115
|
+
if (projectConfigurations.projects?.[dep]) {
|
|
116
|
+
const depPackageJsonPath = joinPaths(workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
117
|
+
if (existsSync(depPackageJsonPath)) {
|
|
118
|
+
const depPackageJsonContent = readFileSync(depPackageJsonPath, "utf8");
|
|
119
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
120
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
121
|
+
ret.push(depPackageJson.name);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
109
124
|
}
|
|
110
125
|
return ret;
|
|
111
|
-
},
|
|
112
|
-
packageJson.
|
|
113
|
-
if (!ret[localPackage.name]) {
|
|
114
|
-
ret[localPackage.name] = {
|
|
115
|
-
optional: false
|
|
116
|
-
};
|
|
126
|
+
}, []);
|
|
127
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
128
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
129
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
117
130
|
}
|
|
118
131
|
return ret;
|
|
119
|
-
}, packageJson.
|
|
132
|
+
}, packageJson.dependencies ?? {});
|
|
120
133
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
121
|
-
if (!ret[localPackage.name]) {
|
|
134
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
122
135
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
123
136
|
}
|
|
124
137
|
return ret;
|
|
125
|
-
}, packageJson.
|
|
138
|
+
}, packageJson.devDependencies ?? {});
|
|
126
139
|
} else {
|
|
127
140
|
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
128
141
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F2GYXQ5H.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H7GRZIKQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/browser-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/executors/unbuild/executor.ts
|
|
15
15
|
import { defu } from "defu";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
10
10
|
|
|
11
11
|
// src/executors/typia/executor.ts
|
|
12
12
|
import { removeSync } from "fs-extra";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HUCDWLQ3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag,
|
|
7
7
|
isEqualProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W3SWWT4A.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/typescript/project-config.ts
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cargoMetadata,
|
|
3
3
|
isExternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XK3FSWMA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ProjectTagConstants,
|
|
7
7
|
addProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W3SWWT4A.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/rust/cargo-toml.ts
|
|
15
15
|
import { createNodesFromFiles, joinPathFragments, readJsonFile, workspaceRoot } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5YDISDP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
correctPaths,
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
11
11
|
|
|
12
12
|
// ../config/src/schema.ts
|
|
13
13
|
import z from "zod";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2LIE7SJ3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getConfig,
|
|
15
15
|
getStopwatch,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
29
29
|
|
|
30
30
|
// ../tsdown/src/build.ts
|
|
31
31
|
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRBU35LQWjs = require('./chunk-RBU35LQW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk4AJFP7HMjs = require('./chunk-4AJFP7HM.js');
|
|
@@ -22,7 +22,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
22
22
|
devDependencies: {},
|
|
23
23
|
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
24
24
|
};
|
|
25
|
-
const options = await
|
|
25
|
+
const options = await _chunkRBU35LQWjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
26
26
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.projectNames.projectFileName);
|
|
27
27
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
28
28
|
...schema,
|
|
@@ -40,7 +40,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
40
40
|
buildable: options.bundler && options.bundler !== "none",
|
|
41
41
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
42
42
|
});
|
|
43
|
-
await
|
|
43
|
+
await _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
44
44
|
await _devkit.formatFiles.call(void 0, tree);
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XK3FSWMA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VCU6XMJC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-format/executor.ts
|
|
13
13
|
async function cargoFormatExecutor(options, context) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
7
7
|
|
|
8
8
|
// ../config-tools/src/utilities/find-up.ts
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkBRWRLQDCjs = require('./chunk-BRWRLQDC.js');
|
|
@@ -86,7 +86,8 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
86
86
|
|
|
87
87
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
88
88
|
var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
89
|
-
const
|
|
89
|
+
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
90
|
+
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
90
91
|
const localPackages = [];
|
|
91
92
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
92
93
|
const projectNode = project.node;
|
|
@@ -103,26 +104,38 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
103
104
|
}
|
|
104
105
|
if (localPackages.length > 0) {
|
|
105
106
|
_chunkBRWRLQDCjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
108
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
109
|
+
const projectName2 = projectJson.name;
|
|
110
|
+
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
111
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName2]])) {
|
|
112
|
+
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
113
|
+
}
|
|
114
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _3 => _3.projects, 'optionalAccess', _4 => _4[projectName2], 'access', _5 => _5.implicitDependencies, 'optionalAccess', _6 => _6.reduce, 'call', _7 => _7((ret, dep) => {
|
|
115
|
+
if (_optionalChain([projectConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[dep]])) {
|
|
116
|
+
const depPackageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
117
|
+
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
118
|
+
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
119
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
120
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
121
|
+
ret.push(depPackageJson.name);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
109
124
|
}
|
|
110
125
|
return ret;
|
|
111
|
-
},
|
|
112
|
-
packageJson.
|
|
113
|
-
if (!ret[localPackage.name]) {
|
|
114
|
-
ret[localPackage.name] = {
|
|
115
|
-
optional: false
|
|
116
|
-
};
|
|
126
|
+
}, [])]);
|
|
127
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
128
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11(localPackage.name)])) {
|
|
129
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
117
130
|
}
|
|
118
131
|
return ret;
|
|
119
|
-
}, _nullishCoalesce(packageJson.
|
|
132
|
+
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
120
133
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
121
|
-
if (!ret[localPackage.name]) {
|
|
134
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _12 => _12.includes, 'call', _13 => _13(localPackage.name)])) {
|
|
122
135
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
123
136
|
}
|
|
124
137
|
return ret;
|
|
125
|
-
}, _nullishCoalesce(packageJson.
|
|
138
|
+
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
126
139
|
} else {
|
|
127
140
|
_chunkBRWRLQDCjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
128
141
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F2GYXQ5H.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H7GRZIKQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KZJCDAOU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/neutral-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
parseCargoToml,
|
|
4
4
|
parseCargoTomlWithTree,
|
|
5
5
|
stringifyCargoToml
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EIM3O6HY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getConfig,
|
|
9
9
|
getStopwatch,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AHTDYOCZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-C5YDISDP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-R7DU2APC.mjs";
|
|
23
23
|
|
|
24
24
|
// src/generators/release-version/generator.ts
|
|
25
25
|
import { formatFiles, joinPathFragments, output, readJson, updateJson, writeJson } from "@nx/devkit";
|