@storm-software/workspace-tools 1.145.0 → 1.146.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.
@@ -4043,9 +4043,6 @@ var init_schema = __esm({
4043
4043
  "The worker of the package (this is the bot that will be used to perform various tasks)"
4044
4044
  ),
4045
4045
  env: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
4046
- ci: z.boolean().default(true).describe(
4047
- "An indicator specifying if the current environment is a CI environment"
4048
- ),
4049
4046
  workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
4050
4047
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
4051
4048
  externalPackagePatterns: z.array(z.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -20,21 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var init_exports = {};
21
21
  __export(init_exports, {
22
22
  default: () => init_default,
23
- stormInitGenerator: () => stormInitGenerator
23
+ initGenerator: () => initGenerator
24
24
  });
25
25
  module.exports = __toCommonJS(init_exports);
26
26
  var import_devkit = require("@nx/devkit");
27
-
28
- // packages/workspace-tools/src/utils/versions.ts
29
- var nxVersion = "^18.0.4";
30
-
31
- // packages/workspace-tools/src/generators/init/init.ts
32
- async function stormInitGenerator(tree, schema) {
27
+ async function initGenerator(tree, schema) {
33
28
  const task = (0, import_devkit.addDependenciesToPackageJson)(
34
29
  tree,
35
30
  {
36
- nx: nxVersion,
37
- "@nx/workspace": nxVersion,
31
+ nx: "^19.5.6",
32
+ "@nx/workspace": "^19.5.6",
33
+ "@nx/js": "^19.5.6",
34
+ "@storm-software/eslint": "latest",
35
+ "@storm-software/prettier": "latest",
38
36
  "@storm-software/config-tools": "latest",
39
37
  "@storm-software/testing-tools": "latest",
40
38
  "@storm-software/git-tools": "latest",
@@ -47,8 +45,8 @@ async function stormInitGenerator(tree, schema) {
47
45
  }
48
46
  return task;
49
47
  }
50
- var init_default = stormInitGenerator;
48
+ var init_default = initGenerator;
51
49
  // Annotate the CommonJS export names for ESM import in node:
52
50
  0 && (module.exports = {
53
- stormInitGenerator
51
+ initGenerator
54
52
  });
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -65400,9 +65400,6 @@ var init_schema = __esm({
65400
65400
  "The worker of the package (this is the bot that will be used to perform various tasks)"
65401
65401
  ),
65402
65402
  env: z2.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
65403
- ci: z2.boolean().default(true).describe(
65404
- "An indicator specifying if the current environment is a CI environment"
65405
- ),
65406
65403
  workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
65407
65404
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
65408
65405
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
@@ -65529,7 +65526,6 @@ var init_get_default_config = __esm({
65529
65526
  env: "production",
65530
65527
  branch: "main",
65531
65528
  organization: "storm-software",
65532
- ci: true,
65533
65529
  configFile: null,
65534
65530
  runtimeVersion: "1.0.0",
65535
65531
  colors: { ...DEFAULT_COLOR_CONFIG },
@@ -67436,11 +67432,13 @@ var init_run = __esm({
67436
67432
  "packages/config-tools/src/utilities/run.ts"() {
67437
67433
  import_node_child_process5 = require("node:child_process");
67438
67434
  LARGE_BUFFER = 1024 * 1e6;
67439
- run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit") => {
67435
+ run = (config, command, cwd2 = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
67440
67436
  return (0, import_node_child_process5.execSync)(command, {
67441
67437
  cwd: cwd2,
67442
67438
  env: {
67443
67439
  ...process.env,
67440
+ ...env,
67441
+ CLICOLOR: "true",
67444
67442
  FORCE_COLOR: "true"
67445
67443
  },
67446
67444
  stdio,
@@ -67682,9 +67680,14 @@ var init_get_env = __esm({
67682
67680
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
67683
67681
  outputDirectory: correctPaths(process.env[`${prefix}OUTPUT_DIRECTORY`]),
67684
67682
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
67685
- ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
67686
- process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
67687
- ) : void 0,
67683
+ // ci:
67684
+ // process.env[`${prefix}CI`] !== undefined
67685
+ // ? Boolean(
67686
+ // process.env[`${prefix}CI`] ??
67687
+ // process.env.CI ??
67688
+ // process.env.CONTINUOUS_INTEGRATION
67689
+ // )
67690
+ // : undefined,
67688
67691
  repository: process.env[`${prefix}REPOSITORY`],
67689
67692
  branch: process.env[`${prefix}BRANCH`],
67690
67693
  preid: process.env[`${prefix}PRE_ID`],
@@ -67885,11 +67888,6 @@ var init_set_env = __esm({
67885
67888
  process.env.NODE_ENV = config.env;
67886
67889
  process.env.ENVIRONMENT = config.env;
67887
67890
  }
67888
- if (config.ci) {
67889
- process.env[`${prefix}CI`] = String(config.ci);
67890
- process.env.CI = String(config.ci);
67891
- process.env.CONTINUOUS_INTEGRATION = String(config.ci);
67892
- }
67893
67891
  if (config.colors?.base?.light || config.colors?.base?.dark) {
67894
67892
  for (const key of Object.keys(config.colors)) {
67895
67893
  setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
@@ -68058,7 +68056,7 @@ var init_create_storm_config = __esm({
68058
68056
  };
68059
68057
  createStormConfig = (extensionName, schema, workspaceRoot) => {
68060
68058
  let result;
68061
- if (!_static_cache) {
68059
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 3e4) {
68062
68060
  const config = getConfigEnv();
68063
68061
  const defaultConfig = getDefaultConfig(config, workspaceRoot);
68064
68062
  result = StormConfigSchema.parse({
@@ -68071,7 +68069,7 @@ var init_create_storm_config = __esm({
68071
68069
  });
68072
68070
  result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
68073
68071
  } else {
68074
- result = _static_cache;
68072
+ result = _static_cache.data;
68075
68073
  }
68076
68074
  if (schema && extensionName) {
68077
68075
  result.extensions = {
@@ -68079,7 +68077,10 @@ var init_create_storm_config = __esm({
68079
68077
  [extensionName]: createConfigExtension(extensionName, schema)
68080
68078
  };
68081
68079
  }
68082
- _static_cache = result;
68080
+ _static_cache = {
68081
+ timestamp: Date.now(),
68082
+ data: result
68083
+ };
68083
68084
  return result;
68084
68085
  };
68085
68086
  createConfigExtension = (extensionName, schema) => {
@@ -68096,6 +68097,13 @@ var init_create_storm_config = __esm({
68096
68097
  };
68097
68098
  loadStormConfig = async (workspaceRoot) => {
68098
68099
  let config = {};
68100
+ if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
68101
+ writeInfo(
68102
+ `Configuration cache hit - ${_static_cache.timestamp}`,
68103
+ _static_cache.data
68104
+ );
68105
+ return _static_cache.data;
68106
+ }
68099
68107
  let _workspaceRoot = workspaceRoot;
68100
68108
  if (!_workspaceRoot) {
68101
68109
  _workspaceRoot = findWorkspaceRoot();
@@ -68303,7 +68311,6 @@ ${Object.keys(options ?? {}).map((key) => ` - ${key}=${JSON.stringify(options[ke
68303
68311
  };
68304
68312
 
68305
68313
  // packages/workspace-tools/src/utils/versions.ts
68306
- var typescriptVersion = "~5.2.2";
68307
68314
  var nodeVersion = "20.11.0";
68308
68315
  var pnpmVersion = "8.10.2";
68309
68316
 
@@ -68349,7 +68356,7 @@ async function presetGeneratorFn(tree, options) {
68349
68356
  ];
68350
68357
  json.homepage ??= "https://stormsoftware.com";
68351
68358
  json.bugs ??= {
68352
- url: "https://stormsoftware.com/support",
68359
+ url: `https://github.com/${options.organization}/${options.name}/issues`,
68353
68360
  email: "support@stormsoftware.com"
68354
68361
  };
68355
68362
  json.license = "Apache-2.0";
@@ -68358,17 +68365,49 @@ async function presetGeneratorFn(tree, options) {
68358
68365
  email: "contact@stormsoftware.com",
68359
68366
  url: "https://stormsoftware.com"
68360
68367
  };
68368
+ json.maintainers ??= [
68369
+ {
68370
+ "name": "Storm Software",
68371
+ "email": "contact@stormsoftware.com",
68372
+ "url": "https://stormsoftware.com"
68373
+ },
68374
+ {
68375
+ "name": "Pat Sullivan",
68376
+ "email": "pat@stormsoftware.com",
68377
+ "url": "https://patsullivan.org"
68378
+ }
68379
+ ];
68361
68380
  json.funding ??= {
68362
68381
  type: "github",
68363
68382
  url: "https://github.com/sponsors/storm-software"
68364
68383
  };
68365
68384
  json.namespace ??= `@${options.namespace}`;
68366
68385
  json.description ??= options.description;
68367
- options.repositoryUrl ??= `https://github.com/${options.organization}/${options.name}}`;
68386
+ options.repositoryUrl ??= `https://github.com/${options.organization}/${options.name}`;
68368
68387
  json.repository ??= {
68369
68388
  type: "github",
68370
68389
  url: `${options.repositoryUrl}.git`
68371
68390
  };
68391
+ json.packageManager ??= "pnpm@9.6.0";
68392
+ json.engines ??= {
68393
+ "node": ">=20.11.0",
68394
+ "pnpm": ">=9.6.0"
68395
+ };
68396
+ json.devEngines ??= {
68397
+ "node": "20.x || 21.x"
68398
+ };
68399
+ json.nx ??= {
68400
+ "includedScripts": [
68401
+ "lint-ls",
68402
+ "lint",
68403
+ "format",
68404
+ "format-readme",
68405
+ "format-prettier",
68406
+ "format-toml",
68407
+ "commit",
68408
+ "release"
68409
+ ]
68410
+ };
68372
68411
  json.scripts.adr = "pnpm log4brains adr new";
68373
68412
  json.scripts["adr-preview"] = "pnpm log4brains preview";
68374
68413
  json.scripts.prepare = "pnpm add lefthook -w && pnpm lefthook install";
@@ -68425,25 +68464,6 @@ async function presetGeneratorFn(tree, options) {
68425
68464
  node: `>=${nodeVersion}`,
68426
68465
  pnpm: `>=${pnpmVersion}`
68427
68466
  };
68428
- if (options.includeApps) {
68429
- json.bundlewatch = {
68430
- files: [
68431
- {
68432
- path: "dist/*/*.js",
68433
- maxSize: "200kB"
68434
- }
68435
- ],
68436
- ci: {
68437
- trackBranches: ["main", "alpha", "beta"]
68438
- }
68439
- };
68440
- json.nextBundleAnalysis = {
68441
- buildOutputDirectory: "dist/apps/web/app/.next"
68442
- };
68443
- }
68444
- json.nx = {
68445
- includedScripts: ["lint", "format"]
68446
- };
68447
68467
  return json;
68448
68468
  });
68449
68469
  (0, import_devkit.generateFiles)(tree, path5.join(__dirname, "files"), projectRoot, {
@@ -68453,15 +68473,15 @@ async function presetGeneratorFn(tree, options) {
68453
68473
  });
68454
68474
  await (0, import_devkit.formatFiles)(tree);
68455
68475
  let dependencies = {
68456
- "@commitlint/cli": "19.2.1",
68457
68476
  "@ls-lint/ls-lint": "2.2.3",
68458
68477
  "@ltd/j-toml": "1.38.0",
68459
- "@nx/devkit": "19.1.0",
68460
- "@nx/esbuild": "19.1.0",
68461
- "@nx/eslint": "19.1.0",
68462
- "@nx/js": "19.1.0",
68463
- "@nx/plugin": "19.1.0",
68464
- "@nx/workspace": "19.1.0",
68478
+ "@microsoft/tsdoc": "0.15.0",
68479
+ "@nx/devkit": "^19.5.3",
68480
+ "@nx/esbuild": "19.5.3",
68481
+ "@nx/eslint-plugin": ">=19.5.3",
68482
+ "@nx/js": "^19.5.3",
68483
+ "@nx/plugin": "19.5.3",
68484
+ "@nx/workspace": "^19.5.3",
68465
68485
  "@storm-software/config": "latest",
68466
68486
  "@storm-software/config-tools": "latest",
68467
68487
  "@storm-software/git-tools": "latest",
@@ -68471,44 +68491,35 @@ async function presetGeneratorFn(tree, options) {
68471
68491
  "@storm-software/eslint": "latest",
68472
68492
  "@storm-software/eslint-plugin": "latest",
68473
68493
  "@storm-software/prettier": "latest",
68474
- "@swc-node/register": "1.9.0",
68475
- "@swc/cli": "0.3.12",
68476
- "@swc/core": "1.4.12",
68477
- "@swc/helpers": "0.5.8",
68478
- "@swc/wasm": "1.4.12",
68479
68494
  "@taplo/cli": "0.7.0",
68480
68495
  "@types/jest": "29.5.12",
68481
- "@types/node": "20.12.5",
68482
- "conventional-changelog-conventionalcommits": "7.0.2",
68483
- "esbuild": "0.20.2",
68496
+ "@types/node": "^20.14.10",
68497
+ "conventional-changelog-conventionalcommits": "8.0.0",
68498
+ "copyfiles": "2.4.1",
68499
+ "esbuild": "0.21.5",
68484
68500
  "esbuild-register": "3.5.0",
68485
- "eslint": "^9.0.0",
68486
- "eslint-config-storm-software": "latest",
68487
- "eslint-plugin-import": "^2.29.1",
68488
- "eslint-plugin-jsx-a11y": "^6.8.0",
68489
- "eslint-plugin-react": "^7.34.1",
68490
- "eslint-plugin-react-hooks": "^4.6.0",
68501
+ "eslint": "9.5.0",
68491
68502
  "jest": "29.7.0",
68492
68503
  "jest-environment-jsdom": "29.7.0",
68493
68504
  "jest-environment-node": "29.7.0",
68494
- "lefthook": "1.6.8",
68495
- "nx": "19.1.0",
68496
- "prettier": "3.2.5",
68497
- "rimraf": "5.0.5",
68498
- "ts-jest": "29.1.2",
68505
+ "knip": "5.25.2",
68506
+ "lefthook": "1.6.18",
68507
+ "nx": "^19.5.3",
68508
+ "prettier": "3.3.2",
68509
+ "prettier-plugin-prisma": "5.0.0",
68510
+ "rimraf": "5.0.7",
68511
+ "sherif": "0.10.0",
68512
+ "ts-jest": "29.1.5",
68499
68513
  "ts-loader": "9.5.1",
68500
68514
  "ts-node": "10.9.2",
68501
68515
  "tsconfig-paths": "4.2.0",
68502
- "tslib": "2.6.2",
68503
- "typescript": typescriptVersion,
68504
- "verdaccio": "5.30.3",
68505
- "knip": "5.25.2",
68506
- "sherif": "0.10.0"
68516
+ "tslib": "2.6.3",
68517
+ "typescript": "5.5.3",
68518
+ "verdaccio": "5.31.1"
68507
68519
  };
68508
68520
  if (options.includeApps) {
68509
68521
  dependencies = {
68510
68522
  ...dependencies,
68511
- bundlewatch: "latest",
68512
68523
  react: "latest",
68513
68524
  "react-dom": "latest",
68514
68525
  storybook: "latest",