@storm-software/workspace-tools 1.296.81 → 1.296.85

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.
Files changed (80) hide show
  1. package/README.md +1 -1
  2. package/config/base.json +13 -14
  3. package/config/bun.json +230 -0
  4. package/config/recommended.json +17 -15
  5. package/dist/{chunk-SZWM7COV.js → chunk-3G7PNDZ5.js} +15 -2
  6. package/dist/chunk-5BGCA73V.mjs +39 -0
  7. package/dist/{chunk-WCUI5X7P.js → chunk-5KAJDSTQ.js} +17 -15
  8. package/dist/{chunk-3VIV3TF3.js → chunk-CSH4G6YP.js} +11 -5
  9. package/dist/{chunk-QC5ON3X4.mjs → chunk-DEHA5C77.mjs} +15 -2
  10. package/dist/{chunk-Q36BH543.mjs → chunk-E2PVUX2W.mjs} +25 -209
  11. package/dist/{chunk-YXDHTGAK.js → chunk-FETI3TYM.js} +47 -35
  12. package/dist/{chunk-2OB3TJFJ.mjs → chunk-FQ7VZ2JR.mjs} +1 -1
  13. package/dist/{chunk-C2QNKR3W.mjs → chunk-G35OKYMG.mjs} +1 -1
  14. package/dist/{chunk-TM2CRDJW.js → chunk-HN5UXNLM.js} +33 -12
  15. package/dist/{chunk-2UJDNCR7.mjs → chunk-HU2ZYTZL.mjs} +44 -32
  16. package/dist/{chunk-2F7AZHRH.js → chunk-ILSI74FW.js} +49 -20
  17. package/dist/{chunk-NNDVMJGY.mjs → chunk-KMTNXFZA.mjs} +17 -15
  18. package/dist/chunk-KSEB2U7B.js +318 -0
  19. package/dist/{chunk-EHJC5RYU.mjs → chunk-M7W3EPWR.mjs} +2 -2
  20. package/dist/{chunk-323C3SE6.js → chunk-MYALGFOC.js} +3 -3
  21. package/dist/chunk-OGB3BDE5.js +39 -0
  22. package/dist/{chunk-77B77QNY.mjs → chunk-VQYZG5YE.mjs} +33 -12
  23. package/dist/{chunk-R4GXDUM2.mjs → chunk-WU2HALDD.mjs} +11 -5
  24. package/dist/{chunk-NTTC774E.mjs → chunk-XSHN3XHD.mjs} +39 -10
  25. package/dist/{chunk-EEMND2GI.js → chunk-ZM4LIWD4.js} +3 -3
  26. package/dist/{chunk-2R2MHEOI.js → chunk-ZO6ZPXB7.js} +5 -5
  27. package/dist/executors.js +14 -13
  28. package/dist/executors.mjs +15 -14
  29. package/dist/generators.js +10 -9
  30. package/dist/generators.mjs +11 -10
  31. package/dist/index.d.mts +4 -3
  32. package/dist/index.d.ts +4 -3
  33. package/dist/index.js +62 -36
  34. package/dist/index.mjs +67 -41
  35. package/dist/src/base/index.js +3 -3
  36. package/dist/src/base/index.mjs +2 -2
  37. package/dist/src/executors/npm-publish/executor.js +3 -2
  38. package/dist/src/executors/npm-publish/executor.mjs +2 -1
  39. package/dist/src/generators/browser-library/generator.js +4 -4
  40. package/dist/src/generators/browser-library/generator.mjs +3 -3
  41. package/dist/src/generators/neutral-library/generator.js +4 -4
  42. package/dist/src/generators/neutral-library/generator.mjs +3 -3
  43. package/dist/src/generators/node-library/generator.js +4 -4
  44. package/dist/src/generators/node-library/generator.mjs +3 -3
  45. package/dist/src/generators/preset/generator.js +4 -3
  46. package/dist/src/generators/preset/generator.mjs +3 -2
  47. package/dist/src/plugins/rust/cargo-toml.js +6 -2
  48. package/dist/src/plugins/rust/cargo-toml.mjs +5 -1
  49. package/dist/src/plugins/rust/index.js +6 -2
  50. package/dist/src/plugins/rust/index.mjs +5 -1
  51. package/dist/src/plugins/typescript/index.js +19 -14
  52. package/dist/src/plugins/typescript/index.mjs +20 -15
  53. package/dist/src/plugins/typescript/tsdown.js +16 -11
  54. package/dist/src/plugins/typescript/tsdown.mjs +16 -11
  55. package/dist/src/plugins/typescript/tsup.js +16 -11
  56. package/dist/src/plugins/typescript/tsup.mjs +16 -11
  57. package/dist/src/plugins/typescript/untyped-schema.js +16 -8
  58. package/dist/src/plugins/typescript/untyped-schema.mjs +16 -8
  59. package/dist/src/utils/index.d.mts +4 -3
  60. package/dist/src/utils/index.d.ts +4 -3
  61. package/dist/src/utils/index.js +37 -10
  62. package/dist/src/utils/index.mjs +45 -18
  63. package/dist/src/utils/lock-file.d.mts +16 -4
  64. package/dist/src/utils/lock-file.d.ts +16 -4
  65. package/dist/src/utils/lock-file.js +12 -2
  66. package/dist/src/utils/lock-file.mjs +11 -1
  67. package/dist/src/utils/nx-json.js +2 -2
  68. package/dist/src/utils/nx-json.mjs +1 -1
  69. package/dist/src/utils/package-manager.d.mts +33 -0
  70. package/dist/src/utils/package-manager.d.ts +33 -0
  71. package/dist/src/utils/package-manager.js +14 -0
  72. package/dist/src/utils/package-manager.mjs +15 -0
  73. package/dist/src/utils/versions.d.mts +11 -2
  74. package/dist/src/utils/versions.d.ts +11 -2
  75. package/dist/src/utils/versions.js +10 -2
  76. package/dist/src/utils/versions.mjs +11 -3
  77. package/package.json +15 -10
  78. package/dist/chunk-F6U5OQR6.js +0 -502
  79. /package/dist/{chunk-DO2X7OZO.js → chunk-CVKUY5YY.js} +0 -0
  80. /package/dist/{chunk-XCVH63OO.mjs → chunk-QCN77EOQ.mjs} +0 -0
@@ -1,7 +1,11 @@
1
+ import {
2
+ getLockFileName
3
+ } from "./chunk-VQYZG5YE.mjs";
1
4
  import {
2
5
  nodeVersion,
6
+ packageManagerVersions,
3
7
  pnpmVersion
4
- } from "./chunk-QC5ON3X4.mjs";
8
+ } from "./chunk-DEHA5C77.mjs";
5
9
  import {
6
10
  withRunGenerator
7
11
  } from "./chunk-Y5BPWYHW.mjs";
@@ -15,12 +19,17 @@ import {
15
19
  addProjectConfiguration,
16
20
  formatFiles,
17
21
  generateFiles,
22
+ getPackageManagerCommand,
18
23
  joinPathFragments,
19
24
  updateJson
20
25
  } from "@nx/devkit";
21
26
  import * as path from "node:path";
22
27
  async function presetGeneratorFn(tree, options) {
23
28
  const projectRoot = ".";
29
+ const packageManager = options.packageManager ?? "pnpm";
30
+ const packageManagerVersion = packageManagerVersions[packageManager];
31
+ const pmc = getPackageManagerCommand(packageManager);
32
+ const lockFileName = getLockFileName(packageManager);
24
33
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
25
34
  options.namespace ??= options.organization;
26
35
  addProjectConfiguration(tree, `@${options.namespace}/${options.name}`, {
@@ -88,11 +97,6 @@ async function presetGeneratorFn(tree, options) {
88
97
  type: "github",
89
98
  url: `${options.repositoryUrl}.git`
90
99
  };
91
- json.packageManager ??= "pnpm@10.3.0";
92
- json.engines ??= {
93
- node: ">=20.11.0",
94
- pnpm: ">=10.3.0"
95
- };
96
100
  json.prettier = "@storm-software/prettier/config.json";
97
101
  json.nx ??= {
98
102
  includedScripts: [
@@ -109,14 +113,14 @@ async function presetGeneratorFn(tree, options) {
109
113
  "release"
110
114
  ]
111
115
  };
112
- json.scripts.adr = "pnpm log4brains adr new";
113
- json.scripts["adr-preview"] = "pnpm log4brains preview";
114
- json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
115
- json.scripts.preinstall = "npx -y only-allow pnpm";
116
- json.scripts["install-csb"] = "corepack enable && pnpm install --no-frozen-lockfile";
116
+ json.scripts.adr = pmc.run("log4brains", "adr new");
117
+ json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
118
+ json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
119
+ json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
120
+ json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
117
121
  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";
118
- json.scripts.nuke = "nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && pnpm clean && rimraf pnpm-lock.yaml && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules";
119
- json.scripts.prebuild = "pnpm clean";
122
+ 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`;
123
+ json.scripts.prebuild = `${packageManager} clean`;
120
124
  json.scripts.build = "nx affected -t build --parallel=5";
121
125
  json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
122
126
  json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
@@ -131,45 +135,53 @@ async function presetGeneratorFn(tree, options) {
131
135
  }
132
136
  json.scripts.nx = "nx";
133
137
  json.scripts.graph = "nx graph";
134
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
135
138
  if (options.includeApps) {
136
139
  json.scripts.start = "nx serve";
137
- json.scripts.storybook = "pnpm storybook dev -p 6006";
140
+ json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
138
141
  }
139
142
  json.scripts.help = "nx help";
140
143
  json.scripts["dep-graph"] = "nx dep-graph";
141
144
  json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
142
145
  json.scripts.e2e = "nx e2e";
143
146
  if (options.includeApps) {
144
- json.scripts.test = "nx test && pnpm test-storybook";
145
- json.scripts["test-storybook"] = "pnpm test-storybook";
147
+ json.scripts.test = `nx test && ${packageManager} test-storybook`;
148
+ json.scripts["test-storybook"] = `${packageManager} test-storybook`;
146
149
  } else {
147
150
  json.scripts.test = "nx test";
148
151
  }
149
- json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
150
- json.scripts.commit = "pnpm storm-git commit";
151
- json.scripts["api-extractor"] = 'pnpm storm-docs api-extractor --outputPath="docs/api-reference" --clean';
152
- json.scripts.release = "pnpm storm-git release";
152
+ json.scripts.commit = pmc.run("storm-git", "commit");
153
+ json.scripts["api-extractor"] = pmc.run(
154
+ "storm-docs",
155
+ 'api-extractor --outputPath="docs/api-reference" --clean'
156
+ );
157
+ json.scripts.release = pmc.run("storm-git", "release");
153
158
  json.scripts.format = "nx format:write";
154
- json.scripts["format-sherif"] = "pnpm exec sherif -f -i typescript -i react -i react-dom";
155
- json.scripts["format-toml"] = 'pnpm exec taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"';
156
- json.scripts["format-readme"] = 'pnpm storm-git readme --templates="tools/readme-templates"';
157
- json.scripts["format-prettier"] = "pnpm exec prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index";
158
- json.scripts.lint = "pnpm storm-lint all --skip-cspell";
159
- json.scripts["lint-knip"] = "pnpm exec knip";
160
- json.scripts["lint-sherif"] = "pnpm exec sherif -i typescript -i react -i react-dom";
161
- json.scripts["lint-ls"] = 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"';
162
- json.packageManager ??= `pnpm@${pnpmVersion}`;
159
+ json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
160
+ 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"`;
161
+ json.scripts["format-readme"] = pmc.run(
162
+ "storm-git",
163
+ 'readme --templates="tools/readme-templates"'
164
+ );
165
+ json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
166
+ json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
167
+ json.scripts["lint-knip"] = `${pmc.exec} knip`;
168
+ json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
169
+ json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
170
+ json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
163
171
  json.engines = {
164
172
  node: `>=${nodeVersion}`,
165
- pnpm: `>=${pnpmVersion}`
173
+ [packageManager]: `>=${packageManagerVersion}`
166
174
  };
167
175
  return json;
168
176
  });
169
177
  generateFiles(tree, path.join(__dirname, "files"), projectRoot, {
170
178
  ...options,
179
+ packageManager,
180
+ packageManagerVersion,
171
181
  pnpmVersion,
172
- nodeVersion
182
+ nodeVersion,
183
+ lockFileName,
184
+ exec: pmc.exec
173
185
  });
174
186
  await formatFiles(tree);
175
187
  let dependencies = {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
- var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
3
+ var _chunk3G7PNDZ5js = require('./chunk-3G7PNDZ5.js');
4
4
 
5
5
 
6
6
 
@@ -155,16 +155,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
155
155
  });
156
156
  }
157
157
  if (tree.exists("package.json") && normalized.importPath) {
158
- _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
159
- ...json,
160
- pnpm: {
161
- ..._optionalChain([json, 'optionalAccess', _10 => _10.pnpm]),
162
- overrides: {
163
- ..._optionalChain([json, 'optionalAccess', _11 => _11.pnpm, 'optionalAccess', _12 => _12.overrides]),
164
- [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
165
- }
158
+ _devkit.updateJson.call(void 0, tree, "package.json", (json) => {
159
+ if (_optionalChain([config, 'optionalAccess', _10 => _10.packageManager]) === "yarn") {
160
+ return {
161
+ ...json,
162
+ resolutions: {
163
+ ..._optionalChain([json, 'optionalAccess', _11 => _11.resolutions]),
164
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
165
+ }
166
+ };
167
+ }
168
+ if (_optionalChain([config, 'optionalAccess', _12 => _12.packageManager]) === "npm") {
169
+ return {
170
+ ...json,
171
+ overrides: {
172
+ ..._optionalChain([json, 'optionalAccess', _13 => _13.overrides]),
173
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
174
+ }
175
+ };
176
+ }
177
+ if (_optionalChain([config, 'optionalAccess', _14 => _14.packageManager]) === "bun") {
178
+ return {
179
+ ...json,
180
+ overrides: {
181
+ ..._optionalChain([json, 'optionalAccess', _15 => _15.overrides]),
182
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
183
+ }
184
+ };
166
185
  }
167
- }));
186
+ return {
187
+ ...json,
188
+ pnpm: {
189
+ ..._optionalChain([json, 'optionalAccess', _16 => _16.pnpm]),
190
+ overrides: {
191
+ ..._optionalChain([json, 'optionalAccess', _17 => _17.pnpm, 'optionalAccess', _18 => _18.overrides]),
192
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
193
+ }
194
+ }
195
+ };
196
+ });
168
197
  }
169
198
  _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
170
199
  _chunkCQDBLKPFjs.joinPaths.call(void 0,
@@ -178,10 +207,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
178
207
  ]);
179
208
  if (tree.exists("package.json")) {
180
209
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
181
- if (_optionalChain([packageJson, 'optionalAccess', _13 => _13.repository])) {
210
+ if (_optionalChain([packageJson, 'optionalAccess', _19 => _19.repository])) {
182
211
  repository = packageJson.repository;
183
212
  }
184
- if (_optionalChain([packageJson, 'optionalAccess', _14 => _14.description])) {
213
+ if (_optionalChain([packageJson, 'optionalAccess', _20 => _20.description])) {
185
214
  description = packageJson.description;
186
215
  }
187
216
  }
@@ -218,22 +247,22 @@ function getOutputPath(options) {
218
247
  function createProjectTsConfigJson(tree, options) {
219
248
  const tsconfig = {
220
249
  extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
221
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.tsconfigOptions]), () => ( {})),
250
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _21 => _21.tsconfigOptions]), () => ( {})),
222
251
  compilerOptions: {
223
252
  ...options.rootProject ? _js.tsConfigBaseOptions : {},
224
253
  outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
225
254
  noEmit: true,
226
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _16 => _16.tsconfigOptions, 'optionalAccess', _17 => _17.compilerOptions]), () => ( {}))
255
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _22 => _22.tsconfigOptions, 'optionalAccess', _23 => _23.compilerOptions]), () => ( {}))
227
256
  },
228
- files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _18 => _18.tsconfigOptions, 'optionalAccess', _19 => _19.files]), () => ( []))],
257
+ files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _24 => _24.tsconfigOptions, 'optionalAccess', _25 => _25.files]), () => ( []))],
229
258
  include: [
230
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _20 => _20.tsconfigOptions, 'optionalAccess', _21 => _21.include]), () => ( [])),
259
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _26 => _26.tsconfigOptions, 'optionalAccess', _27 => _27.include]), () => ( [])),
231
260
  "src/**/*.ts",
232
261
  "src/**/*.js",
233
262
  "bin/**/*"
234
263
  ],
235
264
  exclude: [
236
- ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _22 => _22.tsconfigOptions, 'optionalAccess', _23 => _23.exclude]), () => ( [])),
265
+ ..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _28 => _28.tsconfigOptions, 'optionalAccess', _29 => _29.exclude]), () => ( [])),
237
266
  "jest.config.ts",
238
267
  "src/**/*.spec.ts",
239
268
  "src/**/*.test.ts"
@@ -243,8 +272,8 @@ function createProjectTsConfigJson(tree, options) {
243
272
  }
244
273
  async function normalizeOptions(tree, options, config) {
245
274
  let importPath = options.importPath;
246
- if (!importPath && _optionalChain([config, 'optionalAccess', _24 => _24.namespace])) {
247
- importPath = `@${_optionalChain([config, 'optionalAccess', _25 => _25.namespace])}/${options.name}`;
275
+ if (!importPath && _optionalChain([config, 'optionalAccess', _30 => _30.namespace])) {
276
+ importPath = `@${_optionalChain([config, 'optionalAccess', _31 => _31.namespace])}/${options.name}`;
248
277
  }
249
278
  if (options.publishable) {
250
279
  if (!importPath) {
@@ -257,7 +286,7 @@ async function normalizeOptions(tree, options, config) {
257
286
  if (options.publishable === false && options.buildable === false) {
258
287
  bundler = "none";
259
288
  }
260
- const { Linter } = _devkit.ensurePackage.call(void 0, "@nx/eslint", _chunkSZWM7COVjs.nxVersion);
289
+ const { Linter } = _devkit.ensurePackage.call(void 0, "@nx/eslint", _chunk3G7PNDZ5js.nxVersion);
261
290
  const rootProject = false;
262
291
  const {
263
292
  projectName,
@@ -6,15 +6,12 @@ var recommended_default = {
6
6
  allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
7
7
  default: ["sharedGlobals", "{projectRoot}/**/*"],
8
8
  sharedGlobals: [
9
- "{workspaceRoot}/.github/workflows/*.yml",
10
- "{workspaceRoot}/assets/**/*",
11
9
  "{workspaceRoot}/tsconfig.json",
12
- "{workspaceRoot}/tsconfig.base.json",
10
+ "{workspaceRoot}/tsconfig.*.json",
13
11
  "{workspaceRoot}/.npm@(rc|ignore)",
14
12
  "{workspaceRoot}/package.json",
15
13
  "{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
16
- "{workspaceRoot}/bun.lockb",
17
- "{workspaceRoot}/LICENSE",
14
+ "{workspaceRoot}/bun.lock{,b}",
18
15
  "{workspaceRoot}/.git@(attributes|ignore)",
19
16
  "{workspaceRoot}/{nx.json,.nxignore}",
20
17
  "{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
@@ -22,7 +19,6 @@ var recommended_default = {
22
19
  "{workspaceRoot}/storm-workspace.config.[jt]s",
23
20
  "{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
24
21
  "{workspaceRoot}/devenv.@(lock|nix|yaml)",
25
- "{workspaceRoot}/{flake,shell,devShell}.nix",
26
22
  "{workspaceRoot}/.envrc",
27
23
  "{workspaceRoot}/.env{,.local,.*}"
28
24
  ],
@@ -129,14 +125,12 @@ var recommended_default = {
129
125
  "{workspaceRoot}/Cargo.lock",
130
126
  "{workspaceRoot}/.cargo/config.toml",
131
127
  "{workspaceRoot}/rust-toolchain",
132
- "{workspaceRoot}/rustfmt.toml",
133
- "{workspaceRoot}/deny.toml",
134
128
  "{projectRoot}/Cargo.toml",
135
129
  "{projectRoot}/.cargo/config.toml",
136
130
  {
137
131
  runtime: "node -p '`${process.platform}_${process.arch}`'"
138
132
  },
139
- "{projectRoot}/{project.json,CHANGELOG.md}",
133
+ "{projectRoot}/project.json",
140
134
  "{projectRoot}/.env{,.local}",
141
135
  "{projectRoot}/**/*.rs",
142
136
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
@@ -155,14 +149,22 @@ var recommended_default = {
155
149
  "{projectRoot}/package.json",
156
150
  "{projectRoot}/tsconfig.json",
157
151
  "{projectRoot}/tsconfig.*.json",
158
- "{projectRoot}/{project.json,README.md,CHANGELOG.md}",
152
+ "{projectRoot}/project.json",
159
153
  "{projectRoot}/.env{,.*}",
160
- "{projectRoot}/docs/**/*",
161
- "{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
154
+ "!{projectRoot}/docs/**/*",
155
+ "!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
162
156
  "{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
163
157
  "{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
164
158
  "{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
165
159
  "{projectRoot}/{bin,tools,helpers,scripts}/**/*"
160
+ ],
161
+ ci: [
162
+ "sharedGlobals",
163
+ "{workspaceRoot}/.github/workflows/*.yml",
164
+ "{workspaceRoot}/assets/**/*",
165
+ "{workspaceRoot}/devenv.@(lock|nix|yaml)",
166
+ "{workspaceRoot}/.devenv{,.flake.nix}",
167
+ "{workspaceRoot}/.direnv"
166
168
  ]
167
169
  },
168
170
  targetDefaults: {
@@ -173,8 +175,8 @@ var recommended_default = {
173
175
  executor: "nx:run-commands",
174
176
  options: {
175
177
  commands: [
176
- "pnpm exec rimraf --glob {projectRoot}/dist",
177
- "pnpm exec rimraf dist/{projectRoot}"
178
+ "pnpm rimraf --glob {projectRoot}/dist",
179
+ "pnpm rimraf dist/{projectRoot}"
178
180
  ]
179
181
  }
180
182
  },
@@ -194,7 +196,7 @@ var recommended_default = {
194
196
  version: {
195
197
  currentVersionResolver: "git-tag",
196
198
  specifierSource: "conventional-commits",
197
- groupPreVersionCommand: "pnpm build",
199
+ groupPreVersionCommand: "build",
198
200
  manifestRootsToUpdate: [
199
201
  "{projectRoot}",
200
202
  {