@storm-software/workspace-tools 1.198.0 → 1.201.0

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 (33) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -1
  3. package/config/nx-cloud.json +2 -3
  4. package/config/nx-default.json +4 -6
  5. package/config/nx.json +3 -2
  6. package/index.js +20 -20
  7. package/meta.json +80 -80
  8. package/package.json +4 -4
  9. package/src/base/base-executor.js +20 -20
  10. package/src/base/base-generator.js +20 -20
  11. package/src/base/index.js +20 -20
  12. package/src/executors/cargo-build/executor.js +20 -20
  13. package/src/executors/cargo-check/executor.js +20 -20
  14. package/src/executors/cargo-clippy/executor.js +20 -20
  15. package/src/executors/cargo-doc/executor.js +20 -20
  16. package/src/executors/cargo-format/executor.js +20 -20
  17. package/src/executors/clean-package/executor.js +20 -20
  18. package/src/executors/rolldown/executor.js +20 -20
  19. package/src/executors/rollup/executor.js +20 -20
  20. package/src/executors/size-limit/executor.js +20 -20
  21. package/src/executors/tsup/executor.js +20 -20
  22. package/src/executors/tsup-browser/executor.js +20 -20
  23. package/src/executors/tsup-neutral/executor.js +20 -20
  24. package/src/executors/tsup-node/executor.js +20 -20
  25. package/src/executors/typia/executor.js +20 -20
  26. package/src/executors/unbuild/executor.js +20 -20
  27. package/src/generators/browser-library/generator.js +20 -20
  28. package/src/generators/config-schema/generator.js +20 -20
  29. package/src/generators/neutral-library/generator.js +20 -20
  30. package/src/generators/node-library/generator.js +20 -20
  31. package/src/generators/preset/generator.js +20 -20
  32. package/src/generators/release-version/generator.js +20 -20
  33. package/src/utils/index.js +20 -20
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ ## 1.201.0 (2024-12-01)
2
+
3
+ ### Features
4
+
5
+ - **storm-ops:** Added `lint-sherif` script to the CI workflow
6
+ ([906e0c2b](https://github.com/storm-software/storm-ops/commit/906e0c2b))
7
+
8
+ ## 1.200.0 (2024-11-30)
9
+
10
+ ### Features
11
+
12
+ - **workspace-tools:** Upgrade the Nx configuration target tasks
13
+ ([8a5b0504](https://github.com/storm-software/storm-ops/commit/8a5b0504))
14
+ - **storm-ops:** Added `sherif` and `knip` linting to CI pipeline
15
+ ([181d782a](https://github.com/storm-software/storm-ops/commit/181d782a))
16
+
17
+ ## 1.199.0 (2024-11-18)
18
+
19
+ ### Features
20
+
21
+ - **build-tools:** Allow default package.json exports by no longer overriding
22
+ them ([f19fc362](https://github.com/storm-software/storm-ops/commit/f19fc362))
23
+
24
+ ## 1.198.1 (2024-11-10)
25
+
26
+ ### Bug Fixes
27
+
28
+ - **config-tools:** Ensure trace logging is not marked as system logging
29
+ ([e8dca171](https://github.com/storm-software/storm-ops/commit/e8dca171))
30
+
1
31
  ## 1.198.0 (2024-11-08)
2
32
 
3
33
  ### Features
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-1.197.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.200.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -292,12 +292,11 @@
292
292
  },
293
293
  "lint-sherif": {
294
294
  "cache": true,
295
- "outputs": ["{projectRoot}/package.jso"],
295
+ "outputs": ["{projectRoot}/package.json"],
296
296
  "inputs": ["{workspaceRoot}/package.json", "{projectRoot}/package.json"],
297
297
  "executor": "nx:run-commands",
298
298
  "options": {
299
- "command": "pnpm exec sherif -i react -i react-dom",
300
- "color": true
299
+ "command": "pnpx sherif -i react -i react-dom -i typescript"
301
300
  }
302
301
  },
303
302
  "lint-knip": {
@@ -3,7 +3,6 @@
3
3
  "extends": "nx/presets/npm.json",
4
4
  "tasksRunnerOptions": {
5
5
  "default": {
6
- "runner": "nx/tasks-runners/default",
7
6
  "options": {
8
7
  "cacheableOperations": [
9
8
  "lint-sherif",
@@ -14,6 +13,7 @@
14
13
  "format-readme",
15
14
  "format-toml",
16
15
  "format-prettier",
16
+ "format-sherif",
17
17
  "format",
18
18
  "clean",
19
19
  "build-base",
@@ -318,12 +318,11 @@
318
318
  },
319
319
  "lint-sherif": {
320
320
  "cache": true,
321
- "outputs": ["{projectRoot}/package.jso"],
321
+ "outputs": ["{projectRoot}/package.json"],
322
322
  "inputs": ["{workspaceRoot}/package.json", "{projectRoot}/package.json"],
323
323
  "executor": "nx:run-commands",
324
324
  "options": {
325
- "command": "pnpm exec sherif -i react -i react-dom",
326
- "color": true
325
+ "command": "pnpx sherif -i react -i react-dom -i typescript"
327
326
  }
328
327
  },
329
328
  "lint-knip": {
@@ -331,8 +330,7 @@
331
330
  "inputs": ["linting", "default", "^production"],
332
331
  "executor": "nx:run-commands",
333
332
  "options": {
334
- "command": "pnpm exec knip",
335
- "color": true
333
+ "command": "pnpx knip"
336
334
  }
337
335
  },
338
336
  "lint": {
package/config/nx.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "extends": "nx/presets/npm.json",
4
4
  "tasksRunnerOptions": {
5
5
  "default": {
6
- "runner": "nx/tasks-runners/default",
6
+ // "runner": "nx/tasks-runners/default",
7
7
  "options": {
8
8
  "cacheableOperations": [
9
9
  "lint-sherif",
@@ -14,6 +14,7 @@
14
14
  "format-readme",
15
15
  "format-toml",
16
16
  "format-prettier",
17
+ "lint-sherif",
17
18
  "format",
18
19
  "clean",
19
20
  "build-base",
@@ -318,7 +319,7 @@
318
319
  },
319
320
  "lint-sherif": {
320
321
  "cache": true,
321
- "outputs": ["{projectRoot}/package.jso"],
322
+ "outputs": ["{projectRoot}/package.json"],
322
323
  "inputs": ["{workspaceRoot}/package.json", "{projectRoot}/package.json"],
323
324
  "executor": "nx:run-commands",
324
325
  "options": {
package/index.js CHANGED
@@ -66546,7 +66546,7 @@ var init_logger = __esm({
66546
66546
  getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66547
66547
  const _chalk = getChalk();
66548
66548
  const colors2 = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
66549
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66549
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66550
66550
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66551
66551
  return (_6) => {
66552
66552
  };
@@ -66554,9 +66554,9 @@ var init_logger = __esm({
66554
66554
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66555
66555
  return (message) => {
66556
66556
  console.error(
66557
- `${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.fatal ?? "#7d1a1a").whiteBright(
66557
+ `${_chalk.bold.hex(colors2.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors2.fatal ?? "#7d1a1a").whiteBright(
66558
66558
  " \u{1F480} Fatal "
66559
- )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}\r
66559
+ )} ${_chalk.hex(colors2.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66560
66560
  `
66561
66561
  );
66562
66562
  };
@@ -66566,7 +66566,7 @@ var init_logger = __esm({
66566
66566
  console.error(
66567
66567
  `${_chalk.bold.hex(colors2.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors2.danger ?? "#f85149").whiteBright(
66568
66568
  " \u2718 Error "
66569
- )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}\r
66569
+ )} ${_chalk.hex(colors2.danger ?? "#f85149")(formatLogMessage(message))}
66570
66570
  `
66571
66571
  );
66572
66572
  };
@@ -66576,7 +66576,7 @@ var init_logger = __esm({
66576
66576
  console.warn(
66577
66577
  `${_chalk.bold.hex(colors2.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors2.warning ?? "#e3b341").whiteBright(
66578
66578
  " \u26A0 Warn "
66579
- )} ${_chalk.hex(colors2.warning ?? "#e3b341")(formatLogMessage(message))}\r
66579
+ )} ${_chalk.hex(colors2.warning ?? "#e3b341")(formatLogMessage(message))}
66580
66580
  `
66581
66581
  );
66582
66582
  };
@@ -66586,7 +66586,7 @@ var init_logger = __esm({
66586
66586
  console.info(
66587
66587
  `${_chalk.bold.hex(colors2.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors2.success ?? "#56d364").whiteBright(
66588
66588
  " \u2713 Success "
66589
- )} ${_chalk.hex(colors2.success ?? "#56d364")(formatLogMessage(message))}\r
66589
+ )} ${_chalk.hex(colors2.success ?? "#56d364")(formatLogMessage(message))}
66590
66590
  `
66591
66591
  );
66592
66592
  };
@@ -66596,17 +66596,17 @@ var init_logger = __esm({
66596
66596
  console.info(
66597
66597
  `${_chalk.bold.hex(colors2.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors2.info ?? "#58a6ff").whiteBright(
66598
66598
  " \u2139 Info "
66599
- )} ${_chalk.hex(colors2.info ?? "#58a6ff")(formatLogMessage(message))}\r
66599
+ )} ${_chalk.hex(colors2.info ?? "#58a6ff")(formatLogMessage(message))}
66600
66600
  `
66601
66601
  );
66602
66602
  };
66603
66603
  }
66604
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66604
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66605
66605
  return (message) => {
66606
66606
  console.debug(
66607
66607
  `${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
66608
66608
  " \u{1F6E0} Debug "
66609
- )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66609
+ )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}
66610
66610
  `
66611
66611
  );
66612
66612
  };
@@ -66615,7 +66615,7 @@ var init_logger = __esm({
66615
66615
  console.log(
66616
66616
  `${_chalk.bold.hex(colors2.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors2.brand ?? "#1fb2a6").whiteBright(
66617
66617
  " \u2709 System "
66618
- )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
66618
+ )} ${_chalk.hex(colors2.brand ?? "#1fb2a6")(formatLogMessage(message))}
66619
66619
  `
66620
66620
  );
66621
66621
  };
@@ -66774,8 +66774,8 @@ var init_get_config_file = __esm({
66774
66774
  name: fileName,
66775
66775
  envName: fileName?.toUpperCase(),
66776
66776
  jitiOptions: {
66777
- debug: true,
66778
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66777
+ debug: false,
66778
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66779
66779
  },
66780
66780
  ...options
66781
66781
  });
@@ -66786,8 +66786,8 @@ var init_get_config_file = __esm({
66786
66786
  name: fileName,
66787
66787
  envName: fileName?.toUpperCase(),
66788
66788
  jitiOptions: {
66789
- debug: true,
66790
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66789
+ debug: false,
66790
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66791
66791
  },
66792
66792
  configFile: fileName,
66793
66793
  ...options
@@ -66800,9 +66800,9 @@ var init_get_config_file = __esm({
66800
66800
  const result = await getConfigFileByName("storm", workspacePath);
66801
66801
  let config = result.config;
66802
66802
  const configFile = result.configFile;
66803
- if (config && Object.keys(config).length > 0) {
66804
- writeTrace(
66805
- `Found Storm configuration file "${configFile}" at "${workspacePath}"`,
66803
+ if (config && configFile && Object.keys(config).length > 0) {
66804
+ writeSystem(
66805
+ `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
66806
66806
  {
66807
66807
  logLevel: "all"
66808
66808
  }
@@ -66815,9 +66815,9 @@ var init_get_config_file = __esm({
66815
66815
  )
66816
66816
  );
66817
66817
  for (const result2 of results) {
66818
- if (result2?.config && Object.keys(result2.config).length > 0) {
66819
- writeTrace(
66820
- `Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
66818
+ if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
66819
+ writeSystem(
66820
+ `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
66821
66821
  {
66822
66822
  logLevel: "all"
66823
66823
  }