@storm-software/terraform-tools 0.66.284 → 0.66.287
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 +36 -0
- package/README.md +1 -1
- package/dist/{chunk-4O6D2LBC.js → chunk-KUXDLXS2.js} +167 -125
- package/dist/{chunk-RS42LQNA.mjs → chunk-M7BR7ZMV.mjs} +186 -144
- package/dist/executors.js +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +4 -4
- package/dist/src/generators/init/init.js +2 -2
- package/dist/src/generators/init/init.mjs +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Terraform Tools
|
|
4
4
|
|
|
5
|
+
## [0.66.287](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.287) (07/16/2026)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **workspace-tools:** Resolve issue importing `pnpm-tools` and `bun-tools` in release executor ([86856d0bd](https://github.com/storm-software/storm-ops/commit/86856d0bd))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **config** to **v1.138.41**
|
|
14
|
+
- Updated **config-tools** to **v1.190.104**
|
|
15
|
+
- Updated **workspace-tools** to **v1.296.84**
|
|
16
|
+
|
|
17
|
+
## [0.66.286](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.286) (07/16/2026)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **workspace-tools:** Resolve issue with missing dependencies ([ef24243af](https://github.com/storm-software/storm-ops/commit/ef24243af))
|
|
22
|
+
|
|
23
|
+
### Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated **config** to **v1.138.40**
|
|
26
|
+
- Updated **config-tools** to **v1.190.103**
|
|
27
|
+
- Updated **workspace-tools** to **v1.296.83**
|
|
28
|
+
|
|
29
|
+
## [0.66.285](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.285) (07/16/2026)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **monorepo:** Update workspace packages to allow a dynamic package manager ([bef2435ad](https://github.com/storm-software/storm-ops/commit/bef2435ad))
|
|
34
|
+
|
|
35
|
+
### Updated Dependencies
|
|
36
|
+
|
|
37
|
+
- Updated **config** to **v1.138.39**
|
|
38
|
+
- Updated **config-tools** to **v1.190.102**
|
|
39
|
+
- Updated **workspace-tools** to **v1.296.82**
|
|
40
|
+
|
|
5
41
|
## [0.66.284](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.284) (07/16/2026)
|
|
6
42
|
|
|
7
43
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -437,37 +437,12 @@ var executor_default7 = _chunkFGJFAOYFjs.withRunExecutor.call(void 0,
|
|
|
437
437
|
}
|
|
438
438
|
);
|
|
439
439
|
|
|
440
|
-
// ../
|
|
441
|
-
|
|
442
|
-
var _semver = require('semver');
|
|
443
|
-
var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
|
|
444
|
-
|
|
445
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
// ../pnpm-tools/src/helpers/catalog.ts
|
|
449
|
-
|
|
440
|
+
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
450
441
|
|
|
451
|
-
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
452
442
|
|
|
453
443
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
454
|
-
var _yaml = require('yaml');
|
|
455
|
-
|
|
456
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
444
|
var _prettier = require('prettier');
|
|
464
445
|
|
|
465
|
-
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
446
|
// ../workspace-tools/src/utils/github.ts
|
|
472
447
|
|
|
473
448
|
|
|
@@ -557,6 +532,12 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
557
532
|
}
|
|
558
533
|
};
|
|
559
534
|
|
|
535
|
+
// ../workspace-tools/src/utils/package-manager.ts
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
560
541
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
561
542
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
562
543
|
|
|
@@ -925,15 +906,15 @@ function getDefaultOptions(config) {
|
|
|
925
906
|
...config
|
|
926
907
|
};
|
|
927
908
|
}
|
|
928
|
-
function toTSDownFormat(
|
|
929
|
-
if (!
|
|
909
|
+
function toTSDownFormat(format3) {
|
|
910
|
+
if (!format3 || Array.isArray(format3) && format3.length === 0) {
|
|
930
911
|
return ["cjs", "es"];
|
|
931
|
-
} else if (
|
|
912
|
+
} else if (format3 === "esm") {
|
|
932
913
|
return "es";
|
|
933
|
-
} else if (Array.isArray(
|
|
934
|
-
return
|
|
914
|
+
} else if (Array.isArray(format3)) {
|
|
915
|
+
return format3.map((f) => f === "esm" ? "es" : f);
|
|
935
916
|
}
|
|
936
|
-
return
|
|
917
|
+
return format3;
|
|
937
918
|
}
|
|
938
919
|
|
|
939
920
|
// ../tsdown/src/build.ts
|
|
@@ -1467,7 +1448,16 @@ var _js = require('@nx/js');
|
|
|
1467
1448
|
var typesNodeVersion = "20.9.0";
|
|
1468
1449
|
var nxVersion = "^18.0.4";
|
|
1469
1450
|
var nodeVersion = "20.11.0";
|
|
1470
|
-
var pnpmVersion = "
|
|
1451
|
+
var pnpmVersion = "10.3.0";
|
|
1452
|
+
var npmVersion = "10.9.0";
|
|
1453
|
+
var yarnVersion = "4.6.0";
|
|
1454
|
+
var bunVersion = "1.2.0";
|
|
1455
|
+
var packageManagerVersions = {
|
|
1456
|
+
npm: npmVersion,
|
|
1457
|
+
yarn: yarnVersion,
|
|
1458
|
+
pnpm: pnpmVersion,
|
|
1459
|
+
bun: bunVersion
|
|
1460
|
+
};
|
|
1471
1461
|
|
|
1472
1462
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
1473
1463
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
@@ -1598,16 +1588,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1598
1588
|
});
|
|
1599
1589
|
}
|
|
1600
1590
|
if (tree.exists("package.json") && normalized.importPath) {
|
|
1601
|
-
_devkit.updateJson.call(void 0, tree, "package.json", (json) =>
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1591
|
+
_devkit.updateJson.call(void 0, tree, "package.json", (json) => {
|
|
1592
|
+
if (_optionalChain([config, 'optionalAccess', _124 => _124.packageManager]) === "yarn") {
|
|
1593
|
+
return {
|
|
1594
|
+
...json,
|
|
1595
|
+
resolutions: {
|
|
1596
|
+
..._optionalChain([json, 'optionalAccess', _125 => _125.resolutions]),
|
|
1597
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1598
|
+
}
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
if (_optionalChain([config, 'optionalAccess', _126 => _126.packageManager]) === "npm") {
|
|
1602
|
+
return {
|
|
1603
|
+
...json,
|
|
1604
|
+
overrides: {
|
|
1605
|
+
..._optionalChain([json, 'optionalAccess', _127 => _127.overrides]),
|
|
1606
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1607
|
+
}
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
if (_optionalChain([config, 'optionalAccess', _128 => _128.packageManager]) === "bun") {
|
|
1611
|
+
return {
|
|
1612
|
+
...json,
|
|
1613
|
+
overrides: {
|
|
1614
|
+
..._optionalChain([json, 'optionalAccess', _129 => _129.overrides]),
|
|
1615
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1609
1618
|
}
|
|
1610
|
-
|
|
1619
|
+
return {
|
|
1620
|
+
...json,
|
|
1621
|
+
pnpm: {
|
|
1622
|
+
..._optionalChain([json, 'optionalAccess', _130 => _130.pnpm]),
|
|
1623
|
+
overrides: {
|
|
1624
|
+
..._optionalChain([json, 'optionalAccess', _131 => _131.pnpm, 'optionalAccess', _132 => _132.overrides]),
|
|
1625
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
});
|
|
1611
1630
|
}
|
|
1612
1631
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
1613
1632
|
_chunkFGJFAOYFjs.joinPaths.call(void 0,
|
|
@@ -1621,10 +1640,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1621
1640
|
]);
|
|
1622
1641
|
if (tree.exists("package.json")) {
|
|
1623
1642
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
1624
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1643
|
+
if (_optionalChain([packageJson, 'optionalAccess', _133 => _133.repository])) {
|
|
1625
1644
|
repository = packageJson.repository;
|
|
1626
1645
|
}
|
|
1627
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
1646
|
+
if (_optionalChain([packageJson, 'optionalAccess', _134 => _134.description])) {
|
|
1628
1647
|
description = packageJson.description;
|
|
1629
1648
|
}
|
|
1630
1649
|
}
|
|
@@ -1661,22 +1680,22 @@ function getOutputPath(options) {
|
|
|
1661
1680
|
function createProjectTsConfigJson(tree, options) {
|
|
1662
1681
|
const tsconfig = {
|
|
1663
1682
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
1664
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1683
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _135 => _135.tsconfigOptions]), () => ( {})),
|
|
1665
1684
|
compilerOptions: {
|
|
1666
1685
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
1667
1686
|
outDir: _chunkFGJFAOYFjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
1668
1687
|
noEmit: true,
|
|
1669
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1688
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _136 => _136.tsconfigOptions, 'optionalAccess', _137 => _137.compilerOptions]), () => ( {}))
|
|
1670
1689
|
},
|
|
1671
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1690
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions, 'optionalAccess', _139 => _139.files]), () => ( []))],
|
|
1672
1691
|
include: [
|
|
1673
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1692
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _140 => _140.tsconfigOptions, 'optionalAccess', _141 => _141.include]), () => ( [])),
|
|
1674
1693
|
"src/**/*.ts",
|
|
1675
1694
|
"src/**/*.js",
|
|
1676
1695
|
"bin/**/*"
|
|
1677
1696
|
],
|
|
1678
1697
|
exclude: [
|
|
1679
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1698
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _142 => _142.tsconfigOptions, 'optionalAccess', _143 => _143.exclude]), () => ( [])),
|
|
1680
1699
|
"jest.config.ts",
|
|
1681
1700
|
"src/**/*.spec.ts",
|
|
1682
1701
|
"src/**/*.test.ts"
|
|
@@ -1686,8 +1705,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
1686
1705
|
}
|
|
1687
1706
|
async function normalizeOptions(tree, options, config) {
|
|
1688
1707
|
let importPath = options.importPath;
|
|
1689
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
1690
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
1708
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _144 => _144.namespace])) {
|
|
1709
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _145 => _145.namespace])}/${options.name}`;
|
|
1691
1710
|
}
|
|
1692
1711
|
if (options.publishable) {
|
|
1693
1712
|
if (!importPath) {
|
|
@@ -1852,7 +1871,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
1852
1871
|
);
|
|
1853
1872
|
}
|
|
1854
1873
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
1855
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
1874
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _146 => _146.workspaceRoot]), () => ( _chunkFGJFAOYFjs.findWorkspaceRoot.call(void 0, ))),
|
|
1856
1875
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
1857
1876
|
);
|
|
1858
1877
|
_chunkFGJFAOYFjs.writeTrace.call(void 0,
|
|
@@ -2039,8 +2058,53 @@ var generator_default4 = withRunGenerator(
|
|
|
2039
2058
|
|
|
2040
2059
|
|
|
2041
2060
|
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
// ../workspace-tools/src/utils/lock-file.ts
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
var _npmparser = require('nx/src/plugins/js/lock-file/npm-parser');
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
var _pnpmparser = require('nx/src/plugins/js/lock-file/pnpm-parser');
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
var _yarnparser = require('nx/src/plugins/js/lock-file/yarn-parser');
|
|
2083
|
+
var YARN_LOCK_FILE = "yarn.lock";
|
|
2084
|
+
var NPM_LOCK_FILE = "package-lock.json";
|
|
2085
|
+
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
2086
|
+
var BUN_LOCK_FILE = "bun.lock";
|
|
2087
|
+
var YARN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, YARN_LOCK_FILE);
|
|
2088
|
+
var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE);
|
|
2089
|
+
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
2090
|
+
var BUN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, BUN_LOCK_FILE);
|
|
2091
|
+
var LOCK_FILE_BY_PACKAGE_MANAGER = {
|
|
2092
|
+
npm: "package-lock.json",
|
|
2093
|
+
yarn: "yarn.lock",
|
|
2094
|
+
pnpm: "pnpm-lock.yaml",
|
|
2095
|
+
bun: "bun.lock"
|
|
2096
|
+
};
|
|
2097
|
+
function getLockFileName(packageManager) {
|
|
2098
|
+
return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
// ../workspace-tools/src/generators/preset/generator.ts
|
|
2042
2102
|
async function presetGeneratorFn(tree, options) {
|
|
2043
2103
|
const projectRoot = ".";
|
|
2104
|
+
const packageManager = _nullishCoalesce(options.packageManager, () => ( "pnpm"));
|
|
2105
|
+
const packageManagerVersion = packageManagerVersions[packageManager];
|
|
2106
|
+
const pmc = _devkit.getPackageManagerCommand.call(void 0, packageManager);
|
|
2107
|
+
const lockFileName = getLockFileName(packageManager);
|
|
2044
2108
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
2045
2109
|
options.namespace ??= options.organization;
|
|
2046
2110
|
_devkit.addProjectConfiguration.call(void 0, tree, `@${options.namespace}/${options.name}`, {
|
|
@@ -2108,11 +2172,6 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2108
2172
|
type: "github",
|
|
2109
2173
|
url: `${options.repositoryUrl}.git`
|
|
2110
2174
|
};
|
|
2111
|
-
json.packageManager ??= "pnpm@10.3.0";
|
|
2112
|
-
json.engines ??= {
|
|
2113
|
-
node: ">=20.11.0",
|
|
2114
|
-
pnpm: ">=10.3.0"
|
|
2115
|
-
};
|
|
2116
2175
|
json.prettier = "@storm-software/prettier/config.json";
|
|
2117
2176
|
json.nx ??= {
|
|
2118
2177
|
includedScripts: [
|
|
@@ -2129,14 +2188,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2129
2188
|
"release"
|
|
2130
2189
|
]
|
|
2131
2190
|
};
|
|
2132
|
-
json.scripts.adr = "
|
|
2133
|
-
json.scripts["adr-preview"] = "
|
|
2134
|
-
json.scripts.prepare =
|
|
2135
|
-
json.scripts.preinstall =
|
|
2136
|
-
json.scripts["install-csb"] = "corepack enable &&
|
|
2191
|
+
json.scripts.adr = pmc.run("log4brains", "adr new");
|
|
2192
|
+
json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
|
|
2193
|
+
json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
|
|
2194
|
+
json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
|
|
2195
|
+
json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
|
|
2137
2196
|
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
2138
|
-
json.scripts.nuke =
|
|
2139
|
-
json.scripts.prebuild =
|
|
2197
|
+
json.scripts.nuke = `nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && ${packageManager} clean && rimraf ${lockFileName} && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules`;
|
|
2198
|
+
json.scripts.prebuild = `${packageManager} clean`;
|
|
2140
2199
|
json.scripts.build = "nx affected -t build --parallel=5";
|
|
2141
2200
|
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
2142
2201
|
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
@@ -2151,45 +2210,53 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2151
2210
|
}
|
|
2152
2211
|
json.scripts.nx = "nx";
|
|
2153
2212
|
json.scripts.graph = "nx graph";
|
|
2154
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
2155
2213
|
if (options.includeApps) {
|
|
2156
2214
|
json.scripts.start = "nx serve";
|
|
2157
|
-
json.scripts.storybook = "
|
|
2215
|
+
json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
|
|
2158
2216
|
}
|
|
2159
2217
|
json.scripts.help = "nx help";
|
|
2160
2218
|
json.scripts["dep-graph"] = "nx dep-graph";
|
|
2161
2219
|
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
2162
2220
|
json.scripts.e2e = "nx e2e";
|
|
2163
2221
|
if (options.includeApps) {
|
|
2164
|
-
json.scripts.test =
|
|
2165
|
-
json.scripts["test-storybook"] =
|
|
2222
|
+
json.scripts.test = `nx test && ${packageManager} test-storybook`;
|
|
2223
|
+
json.scripts["test-storybook"] = `${packageManager} test-storybook`;
|
|
2166
2224
|
} else {
|
|
2167
2225
|
json.scripts.test = "nx test";
|
|
2168
2226
|
}
|
|
2169
|
-
json.scripts.
|
|
2170
|
-
json.scripts
|
|
2171
|
-
|
|
2172
|
-
|
|
2227
|
+
json.scripts.commit = pmc.run("storm-git", "commit");
|
|
2228
|
+
json.scripts["api-extractor"] = pmc.run(
|
|
2229
|
+
"storm-docs",
|
|
2230
|
+
'api-extractor --outputPath="docs/api-reference" --clean'
|
|
2231
|
+
);
|
|
2232
|
+
json.scripts.release = pmc.run("storm-git", "release");
|
|
2173
2233
|
json.scripts.format = "nx format:write";
|
|
2174
|
-
json.scripts["format-sherif"] =
|
|
2175
|
-
json.scripts["format-toml"] =
|
|
2176
|
-
json.scripts["format-readme"] =
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
json.scripts["
|
|
2181
|
-
json.scripts
|
|
2182
|
-
json.
|
|
2234
|
+
json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
|
|
2235
|
+
json.scripts["format-toml"] = `${pmc.exec} taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"`;
|
|
2236
|
+
json.scripts["format-readme"] = pmc.run(
|
|
2237
|
+
"storm-git",
|
|
2238
|
+
'readme --templates="tools/readme-templates"'
|
|
2239
|
+
);
|
|
2240
|
+
json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
|
|
2241
|
+
json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
|
|
2242
|
+
json.scripts["lint-knip"] = `${pmc.exec} knip`;
|
|
2243
|
+
json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
|
|
2244
|
+
json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
|
|
2245
|
+
json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
|
|
2183
2246
|
json.engines = {
|
|
2184
2247
|
node: `>=${nodeVersion}`,
|
|
2185
|
-
|
|
2248
|
+
[packageManager]: `>=${packageManagerVersion}`
|
|
2186
2249
|
};
|
|
2187
2250
|
return json;
|
|
2188
2251
|
});
|
|
2189
2252
|
_devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
|
|
2190
2253
|
...options,
|
|
2254
|
+
packageManager,
|
|
2255
|
+
packageManagerVersion,
|
|
2191
2256
|
pnpmVersion,
|
|
2192
|
-
nodeVersion
|
|
2257
|
+
nodeVersion,
|
|
2258
|
+
lockFileName,
|
|
2259
|
+
exec: pmc.exec
|
|
2193
2260
|
});
|
|
2194
2261
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2195
2262
|
let dependencies = {
|
|
@@ -2648,33 +2715,6 @@ var _release = require('nx/release');
|
|
|
2648
2715
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
2649
2716
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
2650
2717
|
|
|
2651
|
-
// ../workspace-tools/src/utils/lock-file.ts
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
var _npmparser = require('nx/src/plugins/js/lock-file/npm-parser');
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
var _pnpmparser = require('nx/src/plugins/js/lock-file/pnpm-parser');
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
var _yarnparser = require('nx/src/plugins/js/lock-file/yarn-parser');
|
|
2671
|
-
var YARN_LOCK_FILE = "yarn.lock";
|
|
2672
|
-
var NPM_LOCK_FILE = "package-lock.json";
|
|
2673
|
-
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
2674
|
-
var YARN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, YARN_LOCK_FILE);
|
|
2675
|
-
var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE);
|
|
2676
|
-
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
2677
|
-
|
|
2678
2718
|
// ../workspace-tools/config/recommended.json
|
|
2679
2719
|
var recommended_default = {
|
|
2680
2720
|
$schema: "https://cdn.jsdelivr.net/npm/nx/schemas/nx-schema.json",
|
|
@@ -2683,15 +2723,12 @@ var recommended_default = {
|
|
|
2683
2723
|
allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
2684
2724
|
default: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
2685
2725
|
sharedGlobals: [
|
|
2686
|
-
"{workspaceRoot}/.github/workflows/*.yml",
|
|
2687
|
-
"{workspaceRoot}/assets/**/*",
|
|
2688
2726
|
"{workspaceRoot}/tsconfig.json",
|
|
2689
|
-
"{workspaceRoot}/tsconfig
|
|
2727
|
+
"{workspaceRoot}/tsconfig.*.json",
|
|
2690
2728
|
"{workspaceRoot}/.npm@(rc|ignore)",
|
|
2691
2729
|
"{workspaceRoot}/package.json",
|
|
2692
2730
|
"{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
|
|
2693
|
-
"{workspaceRoot}/bun.
|
|
2694
|
-
"{workspaceRoot}/LICENSE",
|
|
2731
|
+
"{workspaceRoot}/bun.lock{,b}",
|
|
2695
2732
|
"{workspaceRoot}/.git@(attributes|ignore)",
|
|
2696
2733
|
"{workspaceRoot}/{nx.json,.nxignore}",
|
|
2697
2734
|
"{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
|
|
@@ -2699,7 +2736,6 @@ var recommended_default = {
|
|
|
2699
2736
|
"{workspaceRoot}/storm-workspace.config.[jt]s",
|
|
2700
2737
|
"{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
|
|
2701
2738
|
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
2702
|
-
"{workspaceRoot}/{flake,shell,devShell}.nix",
|
|
2703
2739
|
"{workspaceRoot}/.envrc",
|
|
2704
2740
|
"{workspaceRoot}/.env{,.local,.*}"
|
|
2705
2741
|
],
|
|
@@ -2806,14 +2842,12 @@ var recommended_default = {
|
|
|
2806
2842
|
"{workspaceRoot}/Cargo.lock",
|
|
2807
2843
|
"{workspaceRoot}/.cargo/config.toml",
|
|
2808
2844
|
"{workspaceRoot}/rust-toolchain",
|
|
2809
|
-
"{workspaceRoot}/rustfmt.toml",
|
|
2810
|
-
"{workspaceRoot}/deny.toml",
|
|
2811
2845
|
"{projectRoot}/Cargo.toml",
|
|
2812
2846
|
"{projectRoot}/.cargo/config.toml",
|
|
2813
2847
|
{
|
|
2814
2848
|
runtime: "node -p '`${process.platform}_${process.arch}`'"
|
|
2815
2849
|
},
|
|
2816
|
-
"{projectRoot}/
|
|
2850
|
+
"{projectRoot}/project.json",
|
|
2817
2851
|
"{projectRoot}/.env{,.local}",
|
|
2818
2852
|
"{projectRoot}/**/*.rs",
|
|
2819
2853
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
@@ -2832,14 +2866,22 @@ var recommended_default = {
|
|
|
2832
2866
|
"{projectRoot}/package.json",
|
|
2833
2867
|
"{projectRoot}/tsconfig.json",
|
|
2834
2868
|
"{projectRoot}/tsconfig.*.json",
|
|
2835
|
-
"{projectRoot}/
|
|
2869
|
+
"{projectRoot}/project.json",
|
|
2836
2870
|
"{projectRoot}/.env{,.*}",
|
|
2837
|
-
"{projectRoot}/docs/**/*",
|
|
2838
|
-
"{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
2871
|
+
"!{projectRoot}/docs/**/*",
|
|
2872
|
+
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
2839
2873
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
2840
2874
|
"{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
|
|
2841
2875
|
"{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
|
|
2842
2876
|
"{projectRoot}/{bin,tools,helpers,scripts}/**/*"
|
|
2877
|
+
],
|
|
2878
|
+
ci: [
|
|
2879
|
+
"sharedGlobals",
|
|
2880
|
+
"{workspaceRoot}/.github/workflows/*.yml",
|
|
2881
|
+
"{workspaceRoot}/assets/**/*",
|
|
2882
|
+
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
2883
|
+
"{workspaceRoot}/.devenv{,.flake.nix}",
|
|
2884
|
+
"{workspaceRoot}/.direnv"
|
|
2843
2885
|
]
|
|
2844
2886
|
},
|
|
2845
2887
|
targetDefaults: {
|
|
@@ -2850,8 +2892,8 @@ var recommended_default = {
|
|
|
2850
2892
|
executor: "nx:run-commands",
|
|
2851
2893
|
options: {
|
|
2852
2894
|
commands: [
|
|
2853
|
-
"
|
|
2854
|
-
"
|
|
2895
|
+
"rimraf --glob {projectRoot}/dist",
|
|
2896
|
+
"rimraf dist/{projectRoot}"
|
|
2855
2897
|
]
|
|
2856
2898
|
}
|
|
2857
2899
|
},
|
|
@@ -2871,7 +2913,7 @@ var recommended_default = {
|
|
|
2871
2913
|
version: {
|
|
2872
2914
|
currentVersionResolver: "git-tag",
|
|
2873
2915
|
specifierSource: "conventional-commits",
|
|
2874
|
-
groupPreVersionCommand: "
|
|
2916
|
+
groupPreVersionCommand: "build",
|
|
2875
2917
|
manifestRootsToUpdate: [
|
|
2876
2918
|
"{projectRoot}",
|
|
2877
2919
|
{
|
|
@@ -440,36 +440,11 @@ var executor_default7 = withRunExecutor(
|
|
|
440
440
|
}
|
|
441
441
|
);
|
|
442
442
|
|
|
443
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
444
|
-
import { exec as exec2 } from "node:child_process";
|
|
445
|
-
import { valid } from "semver";
|
|
446
|
-
import stripAnsi from "strip-ansi";
|
|
447
|
-
|
|
448
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
449
|
-
import { exec } from "node:child_process";
|
|
450
|
-
|
|
451
|
-
// ../pnpm-tools/src/helpers/catalog.ts
|
|
452
|
-
import { coerce, gt, valid as valid2 } from "semver";
|
|
453
|
-
|
|
454
|
-
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
455
|
-
import { existsSync } from "node:fs";
|
|
456
|
-
import { readFile, writeFile } from "node:fs/promises";
|
|
457
|
-
import { parse, stringify } from "yaml";
|
|
458
|
-
|
|
459
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
460
|
-
import {
|
|
461
|
-
createProjectGraphAsync,
|
|
462
|
-
readCachedProjectGraph
|
|
463
|
-
} from "@nx/devkit";
|
|
464
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
465
|
-
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
466
|
-
import { format } from "prettier";
|
|
467
|
-
|
|
468
443
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
469
444
|
import { createJiti as createJiti4 } from "jiti";
|
|
470
445
|
import { execSync as execSync3 } from "node:child_process";
|
|
471
|
-
import { readFile as
|
|
472
|
-
import { format as
|
|
446
|
+
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
447
|
+
import { format as format2 } from "prettier";
|
|
473
448
|
|
|
474
449
|
// ../workspace-tools/src/utils/github.ts
|
|
475
450
|
import { createJiti as createJiti3 } from "jiti";
|
|
@@ -480,10 +455,10 @@ import {
|
|
|
480
455
|
readJsonFile
|
|
481
456
|
} from "@nx/devkit";
|
|
482
457
|
import { execFileSync } from "child_process";
|
|
483
|
-
import { existsSync
|
|
484
|
-
import { readFile
|
|
458
|
+
import { existsSync } from "node:fs";
|
|
459
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
485
460
|
import { dirname, resolve } from "path";
|
|
486
|
-
import { format
|
|
461
|
+
import { format } from "prettier";
|
|
487
462
|
|
|
488
463
|
// ../package-constants/src/tags.ts
|
|
489
464
|
var ProjectTagConstants = {
|
|
@@ -560,6 +535,12 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
560
535
|
}
|
|
561
536
|
};
|
|
562
537
|
|
|
538
|
+
// ../workspace-tools/src/utils/package-manager.ts
|
|
539
|
+
import {
|
|
540
|
+
detectPackageManager,
|
|
541
|
+
getPackageManagerCommand
|
|
542
|
+
} from "@nx/devkit";
|
|
543
|
+
|
|
563
544
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
564
545
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
565
546
|
|
|
@@ -606,7 +587,7 @@ var executor_default8 = withRunExecutor(
|
|
|
606
587
|
|
|
607
588
|
// ../tsdown/src/build.ts
|
|
608
589
|
import {
|
|
609
|
-
createProjectGraphAsync as
|
|
590
|
+
createProjectGraphAsync as createProjectGraphAsync2,
|
|
610
591
|
readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2,
|
|
611
592
|
writeJsonFile
|
|
612
593
|
} from "@nx/devkit";
|
|
@@ -632,7 +613,7 @@ import { relative as relative3 } from "path";
|
|
|
632
613
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
633
614
|
import { CopyAssetsHandler } from "@nx/js/internal";
|
|
634
615
|
import { glob } from "glob";
|
|
635
|
-
import { readFile as
|
|
616
|
+
import { readFile as readFile3, writeFile as writeFile3 } from "node:fs/promises";
|
|
636
617
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
637
618
|
const pendingAssets = Array.from(assets ?? []);
|
|
638
619
|
pendingAssets.push({
|
|
@@ -688,11 +669,11 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
688
669
|
]);
|
|
689
670
|
await Promise.allSettled(
|
|
690
671
|
files.map(
|
|
691
|
-
async (file) =>
|
|
672
|
+
async (file) => writeFile3(
|
|
692
673
|
file,
|
|
693
674
|
`${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
694
675
|
|
|
695
|
-
${await
|
|
676
|
+
${await readFile3(file, "utf8")}
|
|
696
677
|
|
|
697
678
|
${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`
|
|
698
679
|
)
|
|
@@ -704,20 +685,20 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
704
685
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
705
686
|
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
706
687
|
import { Glob } from "glob";
|
|
707
|
-
import { existsSync as
|
|
708
|
-
import { readFile as
|
|
688
|
+
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
689
|
+
import { readFile as readFile4 } from "node:fs/promises";
|
|
709
690
|
import {
|
|
710
|
-
createProjectGraphAsync
|
|
711
|
-
readCachedProjectGraph
|
|
691
|
+
createProjectGraphAsync,
|
|
692
|
+
readCachedProjectGraph,
|
|
712
693
|
readProjectsConfigurationFromProjectGraph
|
|
713
694
|
} from "nx/src/project-graph/project-graph";
|
|
714
695
|
var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, packageJson) => {
|
|
715
696
|
let projectGraph;
|
|
716
697
|
try {
|
|
717
|
-
projectGraph =
|
|
698
|
+
projectGraph = readCachedProjectGraph();
|
|
718
699
|
} catch {
|
|
719
|
-
await
|
|
720
|
-
projectGraph =
|
|
700
|
+
await createProjectGraphAsync();
|
|
701
|
+
projectGraph = readCachedProjectGraph();
|
|
721
702
|
}
|
|
722
703
|
if (!projectGraph) {
|
|
723
704
|
throw new Error(
|
|
@@ -744,8 +725,8 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
744
725
|
projectNode.data.root,
|
|
745
726
|
"package.json"
|
|
746
727
|
);
|
|
747
|
-
if (
|
|
748
|
-
const projectPackageJsonContent = await
|
|
728
|
+
if (existsSync2(projectPackageJsonPath)) {
|
|
729
|
+
const projectPackageJsonContent = await readFile4(
|
|
749
730
|
projectPackageJsonPath,
|
|
750
731
|
"utf8"
|
|
751
732
|
);
|
|
@@ -760,7 +741,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
760
741
|
writeTrace(
|
|
761
742
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
762
743
|
);
|
|
763
|
-
const projectJsonFile = await
|
|
744
|
+
const projectJsonFile = await readFile4(
|
|
764
745
|
joinPaths(projectRoot, "project.json"),
|
|
765
746
|
"utf8"
|
|
766
747
|
);
|
|
@@ -779,7 +760,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
779
760
|
projectConfigurations.projects[dep].root,
|
|
780
761
|
"package.json"
|
|
781
762
|
);
|
|
782
|
-
if (
|
|
763
|
+
if (existsSync2(depPackageJsonPath)) {
|
|
783
764
|
const depPackageJsonContent = readFileSync3(
|
|
784
765
|
depPackageJsonPath,
|
|
785
766
|
"utf8"
|
|
@@ -811,7 +792,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
811
792
|
};
|
|
812
793
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
813
794
|
const workspaceRoot2 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
814
|
-
const workspacePackageJsonContent = await
|
|
795
|
+
const workspacePackageJsonContent = await readFile4(
|
|
815
796
|
joinPaths(workspaceRoot2, "package.json"),
|
|
816
797
|
"utf8"
|
|
817
798
|
);
|
|
@@ -890,8 +871,8 @@ var getEnv = (builder, options) => {
|
|
|
890
871
|
};
|
|
891
872
|
|
|
892
873
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
893
|
-
import { existsSync as
|
|
894
|
-
import { readFile as
|
|
874
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
875
|
+
import { readFile as readFile5 } from "node:fs/promises";
|
|
895
876
|
|
|
896
877
|
// ../build-tools/src/utilities/task-graph.ts
|
|
897
878
|
import {
|
|
@@ -901,7 +882,7 @@ import {
|
|
|
901
882
|
|
|
902
883
|
// ../tsdown/src/build.ts
|
|
903
884
|
import defu from "defu";
|
|
904
|
-
import { existsSync as
|
|
885
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
905
886
|
import hf from "node:fs/promises";
|
|
906
887
|
import { build as tsdown } from "tsdown";
|
|
907
888
|
|
|
@@ -928,15 +909,15 @@ function getDefaultOptions(config) {
|
|
|
928
909
|
...config
|
|
929
910
|
};
|
|
930
911
|
}
|
|
931
|
-
function toTSDownFormat(
|
|
932
|
-
if (!
|
|
912
|
+
function toTSDownFormat(format3) {
|
|
913
|
+
if (!format3 || Array.isArray(format3) && format3.length === 0) {
|
|
933
914
|
return ["cjs", "es"];
|
|
934
|
-
} else if (
|
|
915
|
+
} else if (format3 === "esm") {
|
|
935
916
|
return "es";
|
|
936
|
-
} else if (Array.isArray(
|
|
937
|
-
return
|
|
917
|
+
} else if (Array.isArray(format3)) {
|
|
918
|
+
return format3.map((f) => f === "esm" ? "es" : f);
|
|
938
919
|
}
|
|
939
|
-
return
|
|
920
|
+
return format3;
|
|
940
921
|
}
|
|
941
922
|
|
|
942
923
|
// ../tsdown/src/build.ts
|
|
@@ -951,7 +932,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
951
932
|
});
|
|
952
933
|
writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
953
934
|
const stopwatch = getStopwatch("Build options resolution");
|
|
954
|
-
const projectGraph = await
|
|
935
|
+
const projectGraph = await createProjectGraphAsync2({
|
|
955
936
|
exitOnError: true
|
|
956
937
|
});
|
|
957
938
|
const projectJsonPath = joinPaths(
|
|
@@ -959,7 +940,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
959
940
|
options.projectRoot,
|
|
960
941
|
"project.json"
|
|
961
942
|
);
|
|
962
|
-
if (!
|
|
943
|
+
if (!existsSync4(projectJsonPath)) {
|
|
963
944
|
throw new Error("Cannot find project.json configuration");
|
|
964
945
|
}
|
|
965
946
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
@@ -976,7 +957,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
976
957
|
options.projectRoot,
|
|
977
958
|
"package.json"
|
|
978
959
|
);
|
|
979
|
-
if (!
|
|
960
|
+
if (!existsSync4(packageJsonPath)) {
|
|
980
961
|
throw new Error("Cannot find package.json configuration");
|
|
981
962
|
}
|
|
982
963
|
const debug = options.debug ?? (options.mode || workspaceConfig.mode) === "development";
|
|
@@ -1021,11 +1002,11 @@ var resolveOptions = async (userOptions) => {
|
|
|
1021
1002
|
return result;
|
|
1022
1003
|
};
|
|
1023
1004
|
async function generatePackageJson(options) {
|
|
1024
|
-
if (options.generatePackageJson !== false &&
|
|
1005
|
+
if (options.generatePackageJson !== false && existsSync4(joinPaths(options.projectRoot, "package.json"))) {
|
|
1025
1006
|
writeDebug(" \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
1026
1007
|
const stopwatch = getStopwatch("Write package.json file");
|
|
1027
1008
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
1028
|
-
if (!
|
|
1009
|
+
if (!existsSync4(packageJsonPath)) {
|
|
1029
1010
|
throw new Error("Cannot find package.json configuration");
|
|
1030
1011
|
}
|
|
1031
1012
|
const packageJsonFile = await hf.readFile(
|
|
@@ -1470,7 +1451,16 @@ import {
|
|
|
1470
1451
|
var typesNodeVersion = "20.9.0";
|
|
1471
1452
|
var nxVersion = "^18.0.4";
|
|
1472
1453
|
var nodeVersion = "20.11.0";
|
|
1473
|
-
var pnpmVersion = "
|
|
1454
|
+
var pnpmVersion = "10.3.0";
|
|
1455
|
+
var npmVersion = "10.9.0";
|
|
1456
|
+
var yarnVersion = "4.6.0";
|
|
1457
|
+
var bunVersion = "1.2.0";
|
|
1458
|
+
var packageManagerVersions = {
|
|
1459
|
+
npm: npmVersion,
|
|
1460
|
+
yarn: yarnVersion,
|
|
1461
|
+
pnpm: pnpmVersion,
|
|
1462
|
+
bun: bunVersion
|
|
1463
|
+
};
|
|
1474
1464
|
|
|
1475
1465
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
1476
1466
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
@@ -1601,16 +1591,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1601
1591
|
});
|
|
1602
1592
|
}
|
|
1603
1593
|
if (tree.exists("package.json") && normalized.importPath) {
|
|
1604
|
-
updateJson(tree, "package.json", (json) =>
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1594
|
+
updateJson(tree, "package.json", (json) => {
|
|
1595
|
+
if (config?.packageManager === "yarn") {
|
|
1596
|
+
return {
|
|
1597
|
+
...json,
|
|
1598
|
+
resolutions: {
|
|
1599
|
+
...json?.resolutions,
|
|
1600
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
}
|
|
1604
|
+
if (config?.packageManager === "npm") {
|
|
1605
|
+
return {
|
|
1606
|
+
...json,
|
|
1607
|
+
overrides: {
|
|
1608
|
+
...json?.overrides,
|
|
1609
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
1610
|
+
}
|
|
1611
|
+
};
|
|
1612
|
+
}
|
|
1613
|
+
if (config?.packageManager === "bun") {
|
|
1614
|
+
return {
|
|
1615
|
+
...json,
|
|
1616
|
+
overrides: {
|
|
1617
|
+
...json?.overrides,
|
|
1618
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1612
1621
|
}
|
|
1613
|
-
|
|
1622
|
+
return {
|
|
1623
|
+
...json,
|
|
1624
|
+
pnpm: {
|
|
1625
|
+
...json?.pnpm,
|
|
1626
|
+
overrides: {
|
|
1627
|
+
...json?.pnpm?.overrides,
|
|
1628
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
});
|
|
1614
1633
|
}
|
|
1615
1634
|
addTsConfigPath(tree, normalized.importPath, [
|
|
1616
1635
|
joinPaths(
|
|
@@ -2038,12 +2057,57 @@ import {
|
|
|
2038
2057
|
addProjectConfiguration as addProjectConfiguration2,
|
|
2039
2058
|
formatFiles as formatFiles7,
|
|
2040
2059
|
generateFiles as generateFiles4,
|
|
2060
|
+
getPackageManagerCommand as getPackageManagerCommand2,
|
|
2041
2061
|
joinPathFragments as joinPathFragments5,
|
|
2042
2062
|
updateJson as updateJson2
|
|
2043
2063
|
} from "@nx/devkit";
|
|
2044
2064
|
import * as path2 from "node:path";
|
|
2065
|
+
|
|
2066
|
+
// ../workspace-tools/src/utils/lock-file.ts
|
|
2067
|
+
import {
|
|
2068
|
+
output,
|
|
2069
|
+
readJsonFile as readJsonFile2,
|
|
2070
|
+
workspaceRoot
|
|
2071
|
+
} from "@nx/devkit";
|
|
2072
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
2073
|
+
import { join } from "node:path";
|
|
2074
|
+
import {
|
|
2075
|
+
getNpmLockfileDependencies,
|
|
2076
|
+
getNpmLockfileNodes
|
|
2077
|
+
} from "nx/src/plugins/js/lock-file/npm-parser";
|
|
2078
|
+
import {
|
|
2079
|
+
getPnpmLockfileDependencies,
|
|
2080
|
+
getPnpmLockfileNodes
|
|
2081
|
+
} from "nx/src/plugins/js/lock-file/pnpm-parser";
|
|
2082
|
+
import {
|
|
2083
|
+
getYarnLockfileDependencies,
|
|
2084
|
+
getYarnLockfileNodes
|
|
2085
|
+
} from "nx/src/plugins/js/lock-file/yarn-parser";
|
|
2086
|
+
var YARN_LOCK_FILE = "yarn.lock";
|
|
2087
|
+
var NPM_LOCK_FILE = "package-lock.json";
|
|
2088
|
+
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
2089
|
+
var BUN_LOCK_FILE = "bun.lock";
|
|
2090
|
+
var YARN_LOCK_PATH = join(workspaceRoot, YARN_LOCK_FILE);
|
|
2091
|
+
var NPM_LOCK_PATH = join(workspaceRoot, NPM_LOCK_FILE);
|
|
2092
|
+
var PNPM_LOCK_PATH = join(workspaceRoot, PNPM_LOCK_FILE);
|
|
2093
|
+
var BUN_LOCK_PATH = join(workspaceRoot, BUN_LOCK_FILE);
|
|
2094
|
+
var LOCK_FILE_BY_PACKAGE_MANAGER = {
|
|
2095
|
+
npm: "package-lock.json",
|
|
2096
|
+
yarn: "yarn.lock",
|
|
2097
|
+
pnpm: "pnpm-lock.yaml",
|
|
2098
|
+
bun: "bun.lock"
|
|
2099
|
+
};
|
|
2100
|
+
function getLockFileName(packageManager) {
|
|
2101
|
+
return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
// ../workspace-tools/src/generators/preset/generator.ts
|
|
2045
2105
|
async function presetGeneratorFn(tree, options) {
|
|
2046
2106
|
const projectRoot = ".";
|
|
2107
|
+
const packageManager = options.packageManager ?? "pnpm";
|
|
2108
|
+
const packageManagerVersion = packageManagerVersions[packageManager];
|
|
2109
|
+
const pmc = getPackageManagerCommand2(packageManager);
|
|
2110
|
+
const lockFileName = getLockFileName(packageManager);
|
|
2047
2111
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
2048
2112
|
options.namespace ??= options.organization;
|
|
2049
2113
|
addProjectConfiguration2(tree, `@${options.namespace}/${options.name}`, {
|
|
@@ -2111,11 +2175,6 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2111
2175
|
type: "github",
|
|
2112
2176
|
url: `${options.repositoryUrl}.git`
|
|
2113
2177
|
};
|
|
2114
|
-
json.packageManager ??= "pnpm@10.3.0";
|
|
2115
|
-
json.engines ??= {
|
|
2116
|
-
node: ">=20.11.0",
|
|
2117
|
-
pnpm: ">=10.3.0"
|
|
2118
|
-
};
|
|
2119
2178
|
json.prettier = "@storm-software/prettier/config.json";
|
|
2120
2179
|
json.nx ??= {
|
|
2121
2180
|
includedScripts: [
|
|
@@ -2132,14 +2191,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2132
2191
|
"release"
|
|
2133
2192
|
]
|
|
2134
2193
|
};
|
|
2135
|
-
json.scripts.adr = "
|
|
2136
|
-
json.scripts["adr-preview"] = "
|
|
2137
|
-
json.scripts.prepare =
|
|
2138
|
-
json.scripts.preinstall =
|
|
2139
|
-
json.scripts["install-csb"] = "corepack enable &&
|
|
2194
|
+
json.scripts.adr = pmc.run("log4brains", "adr new");
|
|
2195
|
+
json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
|
|
2196
|
+
json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
|
|
2197
|
+
json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
|
|
2198
|
+
json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
|
|
2140
2199
|
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
2141
|
-
json.scripts.nuke =
|
|
2142
|
-
json.scripts.prebuild =
|
|
2200
|
+
json.scripts.nuke = `nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && ${packageManager} clean && rimraf ${lockFileName} && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules`;
|
|
2201
|
+
json.scripts.prebuild = `${packageManager} clean`;
|
|
2143
2202
|
json.scripts.build = "nx affected -t build --parallel=5";
|
|
2144
2203
|
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
2145
2204
|
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
@@ -2154,45 +2213,53 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2154
2213
|
}
|
|
2155
2214
|
json.scripts.nx = "nx";
|
|
2156
2215
|
json.scripts.graph = "nx graph";
|
|
2157
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
2158
2216
|
if (options.includeApps) {
|
|
2159
2217
|
json.scripts.start = "nx serve";
|
|
2160
|
-
json.scripts.storybook = "
|
|
2218
|
+
json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
|
|
2161
2219
|
}
|
|
2162
2220
|
json.scripts.help = "nx help";
|
|
2163
2221
|
json.scripts["dep-graph"] = "nx dep-graph";
|
|
2164
2222
|
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
2165
2223
|
json.scripts.e2e = "nx e2e";
|
|
2166
2224
|
if (options.includeApps) {
|
|
2167
|
-
json.scripts.test =
|
|
2168
|
-
json.scripts["test-storybook"] =
|
|
2225
|
+
json.scripts.test = `nx test && ${packageManager} test-storybook`;
|
|
2226
|
+
json.scripts["test-storybook"] = `${packageManager} test-storybook`;
|
|
2169
2227
|
} else {
|
|
2170
2228
|
json.scripts.test = "nx test";
|
|
2171
2229
|
}
|
|
2172
|
-
json.scripts.
|
|
2173
|
-
json.scripts
|
|
2174
|
-
|
|
2175
|
-
|
|
2230
|
+
json.scripts.commit = pmc.run("storm-git", "commit");
|
|
2231
|
+
json.scripts["api-extractor"] = pmc.run(
|
|
2232
|
+
"storm-docs",
|
|
2233
|
+
'api-extractor --outputPath="docs/api-reference" --clean'
|
|
2234
|
+
);
|
|
2235
|
+
json.scripts.release = pmc.run("storm-git", "release");
|
|
2176
2236
|
json.scripts.format = "nx format:write";
|
|
2177
|
-
json.scripts["format-sherif"] =
|
|
2178
|
-
json.scripts["format-toml"] =
|
|
2179
|
-
json.scripts["format-readme"] =
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
json.scripts["
|
|
2184
|
-
json.scripts
|
|
2185
|
-
json.
|
|
2237
|
+
json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
|
|
2238
|
+
json.scripts["format-toml"] = `${pmc.exec} taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"`;
|
|
2239
|
+
json.scripts["format-readme"] = pmc.run(
|
|
2240
|
+
"storm-git",
|
|
2241
|
+
'readme --templates="tools/readme-templates"'
|
|
2242
|
+
);
|
|
2243
|
+
json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
|
|
2244
|
+
json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
|
|
2245
|
+
json.scripts["lint-knip"] = `${pmc.exec} knip`;
|
|
2246
|
+
json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
|
|
2247
|
+
json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
|
|
2248
|
+
json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
|
|
2186
2249
|
json.engines = {
|
|
2187
2250
|
node: `>=${nodeVersion}`,
|
|
2188
|
-
|
|
2251
|
+
[packageManager]: `>=${packageManagerVersion}`
|
|
2189
2252
|
};
|
|
2190
2253
|
return json;
|
|
2191
2254
|
});
|
|
2192
2255
|
generateFiles4(tree, path2.join(__dirname, "files"), projectRoot, {
|
|
2193
2256
|
...options,
|
|
2257
|
+
packageManager,
|
|
2258
|
+
packageManagerVersion,
|
|
2194
2259
|
pnpmVersion,
|
|
2195
|
-
nodeVersion
|
|
2260
|
+
nodeVersion,
|
|
2261
|
+
lockFileName,
|
|
2262
|
+
exec: pmc.exec
|
|
2196
2263
|
});
|
|
2197
2264
|
await formatFiles7(tree);
|
|
2198
2265
|
let dependencies = {
|
|
@@ -2651,33 +2718,6 @@ import { names as names5 } from "@nx/devkit";
|
|
|
2651
2718
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
2652
2719
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
2653
2720
|
|
|
2654
|
-
// ../workspace-tools/src/utils/lock-file.ts
|
|
2655
|
-
import {
|
|
2656
|
-
output,
|
|
2657
|
-
readJsonFile as readJsonFile2,
|
|
2658
|
-
workspaceRoot
|
|
2659
|
-
} from "@nx/devkit";
|
|
2660
|
-
import { existsSync as existsSync7 } from "node:fs";
|
|
2661
|
-
import { join as join2 } from "node:path";
|
|
2662
|
-
import {
|
|
2663
|
-
getNpmLockfileDependencies,
|
|
2664
|
-
getNpmLockfileNodes
|
|
2665
|
-
} from "nx/src/plugins/js/lock-file/npm-parser";
|
|
2666
|
-
import {
|
|
2667
|
-
getPnpmLockfileDependencies,
|
|
2668
|
-
getPnpmLockfileNodes
|
|
2669
|
-
} from "nx/src/plugins/js/lock-file/pnpm-parser";
|
|
2670
|
-
import {
|
|
2671
|
-
getYarnLockfileDependencies,
|
|
2672
|
-
getYarnLockfileNodes
|
|
2673
|
-
} from "nx/src/plugins/js/lock-file/yarn-parser";
|
|
2674
|
-
var YARN_LOCK_FILE = "yarn.lock";
|
|
2675
|
-
var NPM_LOCK_FILE = "package-lock.json";
|
|
2676
|
-
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
2677
|
-
var YARN_LOCK_PATH = join2(workspaceRoot, YARN_LOCK_FILE);
|
|
2678
|
-
var NPM_LOCK_PATH = join2(workspaceRoot, NPM_LOCK_FILE);
|
|
2679
|
-
var PNPM_LOCK_PATH = join2(workspaceRoot, PNPM_LOCK_FILE);
|
|
2680
|
-
|
|
2681
2721
|
// ../workspace-tools/config/recommended.json
|
|
2682
2722
|
var recommended_default = {
|
|
2683
2723
|
$schema: "https://cdn.jsdelivr.net/npm/nx/schemas/nx-schema.json",
|
|
@@ -2686,15 +2726,12 @@ var recommended_default = {
|
|
|
2686
2726
|
allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
2687
2727
|
default: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
2688
2728
|
sharedGlobals: [
|
|
2689
|
-
"{workspaceRoot}/.github/workflows/*.yml",
|
|
2690
|
-
"{workspaceRoot}/assets/**/*",
|
|
2691
2729
|
"{workspaceRoot}/tsconfig.json",
|
|
2692
|
-
"{workspaceRoot}/tsconfig
|
|
2730
|
+
"{workspaceRoot}/tsconfig.*.json",
|
|
2693
2731
|
"{workspaceRoot}/.npm@(rc|ignore)",
|
|
2694
2732
|
"{workspaceRoot}/package.json",
|
|
2695
2733
|
"{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
|
|
2696
|
-
"{workspaceRoot}/bun.
|
|
2697
|
-
"{workspaceRoot}/LICENSE",
|
|
2734
|
+
"{workspaceRoot}/bun.lock{,b}",
|
|
2698
2735
|
"{workspaceRoot}/.git@(attributes|ignore)",
|
|
2699
2736
|
"{workspaceRoot}/{nx.json,.nxignore}",
|
|
2700
2737
|
"{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
|
|
@@ -2702,7 +2739,6 @@ var recommended_default = {
|
|
|
2702
2739
|
"{workspaceRoot}/storm-workspace.config.[jt]s",
|
|
2703
2740
|
"{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
|
|
2704
2741
|
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
2705
|
-
"{workspaceRoot}/{flake,shell,devShell}.nix",
|
|
2706
2742
|
"{workspaceRoot}/.envrc",
|
|
2707
2743
|
"{workspaceRoot}/.env{,.local,.*}"
|
|
2708
2744
|
],
|
|
@@ -2809,14 +2845,12 @@ var recommended_default = {
|
|
|
2809
2845
|
"{workspaceRoot}/Cargo.lock",
|
|
2810
2846
|
"{workspaceRoot}/.cargo/config.toml",
|
|
2811
2847
|
"{workspaceRoot}/rust-toolchain",
|
|
2812
|
-
"{workspaceRoot}/rustfmt.toml",
|
|
2813
|
-
"{workspaceRoot}/deny.toml",
|
|
2814
2848
|
"{projectRoot}/Cargo.toml",
|
|
2815
2849
|
"{projectRoot}/.cargo/config.toml",
|
|
2816
2850
|
{
|
|
2817
2851
|
runtime: "node -p '`${process.platform}_${process.arch}`'"
|
|
2818
2852
|
},
|
|
2819
|
-
"{projectRoot}/
|
|
2853
|
+
"{projectRoot}/project.json",
|
|
2820
2854
|
"{projectRoot}/.env{,.local}",
|
|
2821
2855
|
"{projectRoot}/**/*.rs",
|
|
2822
2856
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
@@ -2835,14 +2869,22 @@ var recommended_default = {
|
|
|
2835
2869
|
"{projectRoot}/package.json",
|
|
2836
2870
|
"{projectRoot}/tsconfig.json",
|
|
2837
2871
|
"{projectRoot}/tsconfig.*.json",
|
|
2838
|
-
"{projectRoot}/
|
|
2872
|
+
"{projectRoot}/project.json",
|
|
2839
2873
|
"{projectRoot}/.env{,.*}",
|
|
2840
|
-
"{projectRoot}/docs/**/*",
|
|
2841
|
-
"{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
2874
|
+
"!{projectRoot}/docs/**/*",
|
|
2875
|
+
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
2842
2876
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
2843
2877
|
"{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
|
|
2844
2878
|
"{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
|
|
2845
2879
|
"{projectRoot}/{bin,tools,helpers,scripts}/**/*"
|
|
2880
|
+
],
|
|
2881
|
+
ci: [
|
|
2882
|
+
"sharedGlobals",
|
|
2883
|
+
"{workspaceRoot}/.github/workflows/*.yml",
|
|
2884
|
+
"{workspaceRoot}/assets/**/*",
|
|
2885
|
+
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
2886
|
+
"{workspaceRoot}/.devenv{,.flake.nix}",
|
|
2887
|
+
"{workspaceRoot}/.direnv"
|
|
2846
2888
|
]
|
|
2847
2889
|
},
|
|
2848
2890
|
targetDefaults: {
|
|
@@ -2853,8 +2895,8 @@ var recommended_default = {
|
|
|
2853
2895
|
executor: "nx:run-commands",
|
|
2854
2896
|
options: {
|
|
2855
2897
|
commands: [
|
|
2856
|
-
"
|
|
2857
|
-
"
|
|
2898
|
+
"rimraf --glob {projectRoot}/dist",
|
|
2899
|
+
"rimraf dist/{projectRoot}"
|
|
2858
2900
|
]
|
|
2859
2901
|
}
|
|
2860
2902
|
},
|
|
@@ -2874,7 +2916,7 @@ var recommended_default = {
|
|
|
2874
2916
|
version: {
|
|
2875
2917
|
currentVersionResolver: "git-tag",
|
|
2876
2918
|
specifierSource: "conventional-commits",
|
|
2877
|
-
groupPreVersionCommand: "
|
|
2919
|
+
groupPreVersionCommand: "build",
|
|
2878
2920
|
manifestRootsToUpdate: [
|
|
2879
2921
|
"{projectRoot}",
|
|
2880
2922
|
{
|
|
@@ -2927,7 +2969,7 @@ import {
|
|
|
2927
2969
|
readJsonFile as readJsonFile3
|
|
2928
2970
|
} from "@nx/devkit";
|
|
2929
2971
|
import defu3 from "defu";
|
|
2930
|
-
import { existsSync as
|
|
2972
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
2931
2973
|
import { dirname as dirname2, join as join3 } from "node:path";
|
|
2932
2974
|
|
|
2933
2975
|
// ../workspace-tools/src/utils/typia-transform.ts
|
package/dist/executors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";require('./chunk-E7SPQEPH.js');
|
|
2
|
-
require('./chunk-OV42YLWT.js');
|
|
3
2
|
require('./chunk-MUZP5CYT.js');
|
|
4
3
|
require('./chunk-6ASLZIIM.js');
|
|
5
4
|
require('./chunk-HJOXIWSH.js');
|
|
5
|
+
require('./chunk-OV42YLWT.js');
|
|
6
6
|
require('./chunk-UFCT73TW.js');
|
|
7
7
|
require('./chunk-FGJFAOYF.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-HYHKZPRR.mjs";
|
|
2
|
-
import "./chunk-JQTWB6VJ.mjs";
|
|
3
2
|
import "./chunk-RYOFSTHS.mjs";
|
|
4
3
|
import "./chunk-ZWCDQGFA.mjs";
|
|
5
4
|
import "./chunk-DW5BLHAS.mjs";
|
|
5
|
+
import "./chunk-JQTWB6VJ.mjs";
|
|
6
6
|
import "./chunk-KSOFBENQ.mjs";
|
|
7
7
|
import "./chunk-BLVSBRSL.mjs";
|
|
8
8
|
import "./chunk-4RR3IGJL.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKUXDLXS2js = require('./chunk-KUXDLXS2.js');
|
|
5
5
|
require('./chunk-FGJFAOYF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.initGenerator =
|
|
8
|
+
exports.initGenerator = _chunkKUXDLXS2js.initGenerator;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-E7SPQEPH.js');
|
|
2
|
-
require('./chunk-OV42YLWT.js');
|
|
3
2
|
require('./chunk-MUZP5CYT.js');
|
|
4
3
|
require('./chunk-6ASLZIIM.js');
|
|
5
4
|
require('./chunk-HJOXIWSH.js');
|
|
6
5
|
require('./chunk-N2YKXZ5R.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkKUXDLXS2js = require('./chunk-KUXDLXS2.js');
|
|
7
9
|
require('./chunk-GUQOEBFW.js');
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
var _chunkILC773N2js = require('./chunk-ILC773N2.js');
|
|
13
|
+
require('./chunk-OV42YLWT.js');
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
var _chunkUFCT73TWjs = require('./chunk-UFCT73TW.js');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _chunk4O6D2LBCjs = require('./chunk-4O6D2LBC.js');
|
|
17
17
|
require('./chunk-FGJFAOYF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator =
|
|
22
|
+
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunkKUXDLXS2js.initGenerator; exports.withTerraformExecutor = _chunkUFCT73TWjs.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "./chunk-HYHKZPRR.mjs";
|
|
2
|
-
import "./chunk-JQTWB6VJ.mjs";
|
|
3
2
|
import "./chunk-RYOFSTHS.mjs";
|
|
4
3
|
import "./chunk-ZWCDQGFA.mjs";
|
|
5
4
|
import "./chunk-DW5BLHAS.mjs";
|
|
6
5
|
import "./chunk-23KFTIT2.mjs";
|
|
6
|
+
import {
|
|
7
|
+
initGenerator
|
|
8
|
+
} from "./chunk-M7BR7ZMV.mjs";
|
|
7
9
|
import "./chunk-CA7S5MOH.mjs";
|
|
8
10
|
import {
|
|
9
11
|
base_terraform_executor_untyped_default
|
|
10
12
|
} from "./chunk-EL25IDXP.mjs";
|
|
13
|
+
import "./chunk-JQTWB6VJ.mjs";
|
|
11
14
|
import {
|
|
12
15
|
withTerraformExecutor
|
|
13
16
|
} from "./chunk-KSOFBENQ.mjs";
|
|
14
|
-
import {
|
|
15
|
-
initGenerator
|
|
16
|
-
} from "./chunk-RS42LQNA.mjs";
|
|
17
17
|
import "./chunk-BLVSBRSL.mjs";
|
|
18
18
|
import "./chunk-4RR3IGJL.mjs";
|
|
19
19
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKUXDLXS2js = require('../../../chunk-KUXDLXS2.js');
|
|
5
5
|
require('../../../chunk-FGJFAOYF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkKUXDLXS2js.init_default; exports.initGenerator = _chunkKUXDLXS2js.initGenerator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/terraform-tools",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.287",
|
|
4
4
|
"description": "Tools for managing Terraform infrastructure within a Nx workspace.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iac",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"typings": "dist/index.d.ts",
|
|
114
114
|
"dependencies": {
|
|
115
115
|
"@nx/devkit": "23.0.1",
|
|
116
|
-
"@storm-software/config": "^1.138.
|
|
117
|
-
"@storm-software/config-tools": "^1.190.
|
|
118
|
-
"@storm-software/workspace-tools": "^1.296.
|
|
116
|
+
"@storm-software/config": "^1.138.41",
|
|
117
|
+
"@storm-software/config-tools": "^1.190.104",
|
|
118
|
+
"@storm-software/workspace-tools": "^1.296.84",
|
|
119
119
|
"shelljs": "^0.8.5"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"publishConfig": { "access": "public" },
|
|
130
130
|
"executors": "./executors.json",
|
|
131
131
|
"generators": "./generators.json",
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "e9118ed4d0235c8643e71d0d8370987a2945f8d1"
|
|
133
133
|
}
|