@storm-software/terraform-tools 0.66.282 → 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 +56 -0
- package/README.md +1 -1
- package/dist/{chunk-DHJTU33T.mjs → chunk-4RR3IGJL.mjs} +1 -1
- package/dist/{chunk-4O6D2LBC.js → chunk-KUXDLXS2.js} +167 -125
- package/dist/{chunk-DXQIZNEJ.mjs → chunk-M7BR7ZMV.mjs} +187 -145
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/terraform-executor.mjs +1 -1
- package/dist/src/executors/apply/executor.mjs +1 -1
- package/dist/src/executors/destroy/executor.mjs +1 -1
- package/dist/src/executors/output/executor.mjs +1 -1
- package/dist/src/executors/plan/executor.mjs +1 -1
- package/dist/src/generators/init/init.js +2 -2
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/tsup.config.mjs +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,62 @@
|
|
|
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
|
+
|
|
41
|
+
## [0.66.284](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.284) (07/16/2026)
|
|
42
|
+
|
|
43
|
+
### Miscellaneous
|
|
44
|
+
|
|
45
|
+
- **git-tools:** Added nested `bun` and `pnpm` modules for `lefthook` ([1a543f7f5](https://github.com/storm-software/storm-ops/commit/1a543f7f5))
|
|
46
|
+
|
|
47
|
+
### Updated Dependencies
|
|
48
|
+
|
|
49
|
+
- Updated **config** to **v1.138.38**
|
|
50
|
+
- Updated **config-tools** to **v1.190.101**
|
|
51
|
+
- Updated **workspace-tools** to **v1.296.81**
|
|
52
|
+
|
|
53
|
+
## [0.66.283](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.283) (07/16/2026)
|
|
54
|
+
|
|
55
|
+
### Updated Dependencies
|
|
56
|
+
|
|
57
|
+
- Updated **config** to **v1.138.37**
|
|
58
|
+
- Updated **config-tools** to **v1.190.100**
|
|
59
|
+
- Updated **workspace-tools** to **v1.296.80**
|
|
60
|
+
|
|
5
61
|
## [0.66.282](https://github.com/storm-software/storm-ops/releases/tag/terraform-tools%400.66.282) (07/13/2026)
|
|
6
62
|
|
|
7
63
|
### 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 -->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=a9def7e06ce25c19654987ab91979289197bf4d3e7e124c514a4487c3e8d68c6__4d4bc1c01039622d83fab8d0e0c72c85/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -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
|
{
|