@storm-software/build-tools 0.135.4 → 0.135.6

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 (50) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-SYSXNB3M.js → chunk-4P3AQZVE.js} +8 -8
  3. package/dist/{chunk-L7W4YZE4.js → chunk-DIPQPQCV.js} +2 -2
  4. package/dist/{chunk-QMLJ4YOF.js → chunk-F4IA5EOZ.js} +120 -71
  5. package/dist/{chunk-ASTOW4W7.mjs → chunk-GZBLAV5N.mjs} +1 -1
  6. package/dist/{chunk-D7IEQ7P2.js → chunk-H37GZ5HC.js} +13 -13
  7. package/dist/{chunk-SZMRYRJK.mjs → chunk-IOSCJN6Z.mjs} +1 -1
  8. package/dist/{chunk-TYWDA4EL.mjs → chunk-IZFBLO57.mjs} +1 -1
  9. package/dist/{chunk-275E2SAD.js → chunk-NSSZFPK3.js} +20 -16
  10. package/dist/{chunk-HCFLWTVN.mjs → chunk-OOTITTRD.mjs} +88 -39
  11. package/dist/{chunk-RCQ3JZXR.mjs → chunk-OWHNR6AR.mjs} +3 -3
  12. package/dist/{chunk-KJNY2WFO.mjs → chunk-OZZ4PV5Q.mjs} +1 -1
  13. package/dist/{chunk-DRXCFXBB.mjs → chunk-RLC4K7JE.mjs} +18 -14
  14. package/dist/{chunk-YXBRJJCU.js → chunk-SX4QCTRO.js} +5 -5
  15. package/dist/{chunk-7TZNJMAB.js → chunk-YZWFPYXZ.js} +8 -8
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +8 -8
  19. package/dist/index.mjs +7 -7
  20. package/dist/plugins/analyze.js +3 -3
  21. package/dist/plugins/analyze.mjs +2 -2
  22. package/dist/plugins/index.js +4 -4
  23. package/dist/plugins/index.mjs +3 -3
  24. package/dist/plugins/ts-resolve.js +3 -3
  25. package/dist/plugins/ts-resolve.mjs +2 -2
  26. package/dist/{types-v0neDT-G.d.ts → types-Km4Ix66C.d.mts} +3 -3
  27. package/dist/{types-v0neDT-G.d.mts → types-Km4Ix66C.d.ts} +3 -3
  28. package/dist/types.d.mts +1 -1
  29. package/dist/types.d.ts +1 -1
  30. package/dist/utilities/copy-assets.d.mts +1 -1
  31. package/dist/utilities/copy-assets.d.ts +1 -1
  32. package/dist/utilities/copy-assets.js +4 -4
  33. package/dist/utilities/copy-assets.mjs +3 -3
  34. package/dist/utilities/generate-package-json.d.mts +1 -1
  35. package/dist/utilities/generate-package-json.d.ts +1 -1
  36. package/dist/utilities/generate-package-json.js +3 -3
  37. package/dist/utilities/generate-package-json.mjs +2 -2
  38. package/dist/utilities/get-entry-points.d.mts +1 -1
  39. package/dist/utilities/get-entry-points.d.ts +1 -1
  40. package/dist/utilities/get-entry-points.js +3 -3
  41. package/dist/utilities/get-entry-points.mjs +2 -2
  42. package/dist/utilities/get-env.d.mts +1 -1
  43. package/dist/utilities/get-env.d.ts +1 -1
  44. package/dist/utilities/index.d.mts +1 -1
  45. package/dist/utilities/index.d.ts +1 -1
  46. package/dist/utilities/index.js +6 -6
  47. package/dist/utilities/index.mjs +5 -5
  48. package/dist/utilities/read-nx-config.js +3 -3
  49. package/dist/utilities/read-nx-config.mjs +2 -2
  50. package/package.json +1 -1
@@ -260,6 +260,8 @@ var ColorConfigMapSchema = _zod2.default.union([
260
260
  }),
261
261
  _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
262
262
  ]);
263
+ var ExtendsItemSchema = _zod2.default.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
264
+ var ExtendsSchema = ExtendsItemSchema.or(_zod2.default.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
263
265
  var WorkspaceBotConfigSchema = _zod2.default.object({
264
266
  name: _zod2.default.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
265
267
  email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
@@ -274,11 +276,11 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
274
276
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
275
277
  var StormConfigSchema = _zod2.default.object({
276
278
  $schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
277
- extends: _zod2.default.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
279
+ extends: ExtendsSchema.optional(),
278
280
  name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
279
281
  namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
280
282
  organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
281
- repository: _zod2.default.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
283
+ repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
282
284
  license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
283
285
  homepage: _zod2.default.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
284
286
  docs: _zod2.default.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
@@ -342,6 +344,7 @@ var COLOR_KEYS = [
342
344
 
343
345
  // ../config-tools/src/utilities/get-default-config.ts
344
346
 
347
+ var _promises = require('fs/promises');
345
348
 
346
349
  var DEFAULT_COLOR_CONFIG = {
347
350
  "light": {
@@ -371,17 +374,15 @@ var DEFAULT_COLOR_CONFIG = {
371
374
  "negative": "#dc2626"
372
375
  }
373
376
  };
374
- var getDefaultConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (root) => {
377
+ var getDefaultConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (root) => {
375
378
  let license = STORM_DEFAULT_LICENSE;
376
379
  let homepage = STORM_DEFAULT_HOMEPAGE;
377
- let name;
378
- let namespace;
379
- let repository;
380
+ let name = void 0;
381
+ let namespace = void 0;
382
+ let repository = void 0;
380
383
  const workspaceRoot = findWorkspaceRoot(root);
381
384
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
382
- const file = _fs.readFileSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"), {
383
- encoding: "utf8"
384
- });
385
+ const file = await _promises.readFile.call(void 0, joinPaths(workspaceRoot, "package.json"), "utf8");
385
386
  if (file) {
386
387
  const packageJson = JSON.parse(file);
387
388
  if (packageJson.name) {
@@ -390,8 +391,12 @@ var getDefaultConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (roo
390
391
  if (packageJson.namespace) {
391
392
  namespace = packageJson.namespace;
392
393
  }
393
- if (_optionalChain([packageJson, 'access', _2 => _2.repository, 'optionalAccess', _3 => _3.url])) {
394
- repository = _optionalChain([packageJson, 'access', _4 => _4.repository, 'optionalAccess', _5 => _5.url]);
394
+ if (packageJson.repository) {
395
+ if (typeof packageJson.repository === "string") {
396
+ repository = packageJson.repository;
397
+ } else if (packageJson.repository.url) {
398
+ repository = packageJson.repository.url;
399
+ }
395
400
  }
396
401
  if (packageJson.license) {
397
402
  license = packageJson.license;
@@ -436,7 +441,7 @@ var chalkDefault = {
436
441
  };
437
442
  var getChalk = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
438
443
  let _chalk = _chalk3.default;
439
- if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
444
+ if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
440
445
  _chalk = chalkDefault;
441
446
  }
442
447
  return _chalk;
@@ -477,7 +482,7 @@ var formatTimestamp = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (date
477
482
 
478
483
  // ../config-tools/src/logger/console.ts
479
484
  var getLogFn = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
480
- const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
485
+ const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
481
486
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
482
487
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
483
488
  return (_) => {
@@ -542,7 +547,6 @@ var writeWarning = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message
542
547
  var writeInfo = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
543
548
  var writeDebug = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
544
549
  var writeTrace = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
545
- var writeSystem = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ALL, config)(message), "writeSystem");
546
550
  var MAX_DEPTH = 4;
547
551
  var formatLogMessage = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
548
552
  if (depth2 > MAX_DEPTH) {
@@ -562,7 +566,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${pre
562
566
  }, "formatLogMessage");
563
567
  var _isFunction = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (value) => {
564
568
  try {
565
- return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
569
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
566
570
  } catch (e) {
567
571
  return false;
568
572
  }
@@ -587,4 +591,4 @@ var _isFunction = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (value) =
587
591
 
588
592
 
589
593
 
590
- exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.writeSystem = writeSystem; exports.formatLogMessage = formatLogMessage;
594
+ exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.StormConfigSchema = StormConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.formatLogMessage = formatLogMessage;
@@ -4,6 +4,7 @@ import {
4
4
  STORM_DEFAULT_DOCS,
5
5
  STORM_DEFAULT_HOMEPAGE,
6
6
  STORM_DEFAULT_LICENSING,
7
+ StormConfigSchema,
7
8
  correctPaths,
8
9
  findWorkspaceRoot,
9
10
  formatLogMessage,
@@ -11,10 +12,9 @@ import {
11
12
  getLogLevel,
12
13
  getLogLevelLabel,
13
14
  joinPaths,
14
- writeSystem,
15
15
  writeTrace,
16
16
  writeWarning
17
- } from "./chunk-DRXCFXBB.mjs";
17
+ } from "./chunk-RLC4K7JE.mjs";
18
18
  import {
19
19
  __name
20
20
  } from "./chunk-O6YSETKJ.mjs";
@@ -24,19 +24,19 @@ import { loadConfig } from "c12";
24
24
  import defu from "defu";
25
25
  var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
26
26
  const workspacePath = filePath || findWorkspaceRoot(filePath);
27
- let config = await loadConfig({
28
- cwd: workspacePath,
29
- packageJson: true,
30
- name: fileName,
31
- envName: fileName?.toUpperCase(),
32
- jitiOptions: {
33
- debug: false,
34
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
35
- },
36
- ...options
37
- });
38
- if (!config || Object.keys(config).length === 0) {
39
- config = await loadConfig({
27
+ const configs = await Promise.all([
28
+ loadConfig({
29
+ cwd: workspacePath,
30
+ packageJson: true,
31
+ name: fileName,
32
+ envName: fileName?.toUpperCase(),
33
+ jitiOptions: {
34
+ debug: false,
35
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
36
+ },
37
+ ...options
38
+ }),
39
+ loadConfig({
40
40
  cwd: workspacePath,
41
41
  packageJson: true,
42
42
  name: fileName,
@@ -47,9 +47,9 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
47
47
  },
48
48
  configFile: fileName,
49
49
  ...options
50
- });
51
- }
52
- return config;
50
+ })
51
+ ]);
52
+ return defu(configs[0] ?? {}, configs[1] ?? {});
53
53
  }, "getConfigFileByName");
54
54
  var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
55
55
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
@@ -57,7 +57,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
57
57
  let config = result.config;
58
58
  const configFile = result.configFile;
59
59
  if (config && configFile && Object.keys(config).length > 0) {
60
- writeSystem(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
60
+ writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
61
61
  logLevel: "all"
62
62
  });
63
63
  }
@@ -65,7 +65,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
65
65
  const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
66
66
  for (const result2 of results) {
67
67
  if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
68
- writeSystem(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
68
+ writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
69
69
  logLevel: "all"
70
70
  });
71
71
  config = defu(result2.config ?? {}, config ?? {});
@@ -83,6 +83,16 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
83
83
  import defu2 from "defu";
84
84
 
85
85
  // ../config-tools/src/env/get-env.ts
86
+ var getExtensionEnv = /* @__PURE__ */ __name((extensionName) => {
87
+ const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
88
+ return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
89
+ const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
90
+ if (name) {
91
+ ret[name] = process.env[key];
92
+ }
93
+ return ret;
94
+ }, {});
95
+ }, "getExtensionEnv");
86
96
  var getConfigEnv = /* @__PURE__ */ __name(() => {
87
97
  const prefix = "STORM_";
88
98
  let config = {
@@ -242,7 +252,7 @@ var setExtensionEnv = /* @__PURE__ */ __name((extensionName, extension) => {
242
252
  var setConfigEnv = /* @__PURE__ */ __name((config) => {
243
253
  const prefix = "STORM_";
244
254
  if (config.extends) {
245
- process.env[`${prefix}EXTENDS`] = config.extends;
255
+ process.env[`${prefix}EXTENDS`] = Array.isArray(config.extends) ? JSON.stringify(config.extends) : config.extends;
246
256
  }
247
257
  if (config.name) {
248
258
  process.env[`${prefix}NAME`] = config.name;
@@ -472,37 +482,76 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
472
482
  }, "setBaseThemeColorConfigEnv");
473
483
 
474
484
  // ../config-tools/src/create-storm-config.ts
485
+ var _extension_cache = /* @__PURE__ */ new WeakMap();
475
486
  var _static_cache = void 0;
476
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
477
- let config = {};
478
- if (_static_cache?.data && _static_cache?.timestamp && _static_cache.timestamp >= Date.now() + 3e4) {
479
- writeTrace(`Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
480
- return _static_cache.data;
481
- }
482
- let _workspaceRoot = workspaceRoot;
483
- if (!_workspaceRoot) {
484
- _workspaceRoot = findWorkspaceRoot();
485
- }
486
- const configFile = await getConfigFile(_workspaceRoot);
487
- if (!configFile) {
488
- writeWarning("No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
489
- logLevel: "all"
490
- });
487
+ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
488
+ let result;
489
+ if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
490
+ let _workspaceRoot = workspaceRoot;
491
+ if (!_workspaceRoot) {
492
+ _workspaceRoot = findWorkspaceRoot();
493
+ }
494
+ const configEnv = getConfigEnv();
495
+ const defaultConfig = await getDefaultConfig(_workspaceRoot);
496
+ const configFile = await getConfigFile(_workspaceRoot);
497
+ if (!configFile && !skipLogs) {
498
+ writeWarning("No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
499
+ logLevel: "all"
500
+ });
501
+ }
502
+ result = await StormConfigSchema.parseAsync(defu2(configEnv, configFile, defaultConfig));
503
+ result.workspaceRoot ??= _workspaceRoot;
504
+ } else {
505
+ result = _static_cache.data;
491
506
  }
492
- config = defu2(getConfigEnv(), configFile, getDefaultConfig(_workspaceRoot));
507
+ if (schema && extensionName) {
508
+ result.extensions = {
509
+ ...result.extensions,
510
+ [extensionName]: createConfigExtension(extensionName, schema)
511
+ };
512
+ }
513
+ _static_cache = {
514
+ timestamp: Date.now(),
515
+ data: result
516
+ };
517
+ return result;
518
+ }, "createStormConfig");
519
+ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
520
+ const extension_cache_key = {
521
+ extensionName
522
+ };
523
+ if (_extension_cache.has(extension_cache_key)) {
524
+ return _extension_cache.get(extension_cache_key);
525
+ }
526
+ let extension = getExtensionEnv(extensionName);
527
+ if (schema) {
528
+ extension = schema.parse(extension);
529
+ }
530
+ _extension_cache.set(extension_cache_key, extension);
531
+ return extension;
532
+ }, "createConfigExtension");
533
+ var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
534
+ const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
493
535
  setConfigEnv(config);
494
- writeTrace(`\u2699\uFE0F Using Storm configuration:
536
+ if (!skipLogs) {
537
+ writeTrace(`\u2699\uFE0F Using Storm configuration:
495
538
  ${formatLogMessage(config)}`, config);
539
+ }
496
540
  return config;
497
541
  }, "loadStormConfig");
498
542
 
543
+ // ../config-tools/src/get-config.ts
544
+ var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
545
+ return loadStormConfig(workspaceRoot, skipLogs);
546
+ }, "getConfig");
547
+
499
548
  // src/utilities/read-nx-config.ts
500
549
  import { existsSync } from "node:fs";
501
550
  import { readFile } from "node:fs/promises";
502
551
  var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot) => {
503
552
  let rootDir = workspaceRoot;
504
553
  if (!rootDir) {
505
- const config = await loadStormConfig();
554
+ const config = await getConfig();
506
555
  rootDir = config.workspaceRoot;
507
556
  }
508
557
  const nxJsonPath = joinPaths(rootDir, "nx.json");
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  readNxConfig
3
- } from "./chunk-HCFLWTVN.mjs";
3
+ } from "./chunk-OOTITTRD.mjs";
4
4
  import {
5
5
  isVerbose,
6
6
  joinPaths,
7
7
  writeDebug,
8
8
  writeTrace
9
- } from "./chunk-DRXCFXBB.mjs";
9
+ } from "./chunk-RLC4K7JE.mjs";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-O6YSETKJ.mjs";
@@ -19,7 +19,7 @@ import { readFile, writeFile } from "node:fs/promises";
19
19
  var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
20
20
  const pendingAssets = Array.from(assets ?? []);
21
21
  pendingAssets.push({
22
- input: projectRoot,
22
+ input: joinPaths(config.workspaceRoot, projectRoot),
23
23
  glob: "*.md",
24
24
  output: "."
25
25
  });
@@ -3,7 +3,7 @@ import {
3
3
  findWorkspaceRoot,
4
4
  joinPaths,
5
5
  writeDebug
6
- } from "./chunk-DRXCFXBB.mjs";
6
+ } from "./chunk-RLC4K7JE.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-O6YSETKJ.mjs";
@@ -260,6 +260,8 @@ var ColorConfigMapSchema = z.union([
260
260
  }),
261
261
  z.record(z.string(), ColorConfigSchema)
262
262
  ]);
263
+ var ExtendsItemSchema = z.string().trim().describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
264
+ var ExtendsSchema = ExtendsItemSchema.or(z.array(ExtendsItemSchema)).describe("The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration.");
263
265
  var WorkspaceBotConfigSchema = z.object({
264
266
  name: z.string().trim().default("Stormie-Bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
265
267
  email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
@@ -274,11 +276,11 @@ var WorkspaceDirectoryConfigSchema = z.object({
274
276
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
275
277
  var StormConfigSchema = z.object({
276
278
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
277
- extends: z.string().trim().optional().describe("The path to a base JSON file to use as a configuration preset file"),
279
+ extends: ExtendsSchema.optional(),
278
280
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
279
281
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
280
282
  organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
281
- repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
283
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
282
284
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
283
285
  homepage: z.string().trim().url().default(STORM_DEFAULT_HOMEPAGE).describe("The homepage of the workspace"),
284
286
  docs: z.string().trim().url().default(STORM_DEFAULT_DOCS).describe("The base documentation site for the workspace"),
@@ -341,7 +343,8 @@ var COLOR_KEYS = [
341
343
  ];
342
344
 
343
345
  // ../config-tools/src/utilities/get-default-config.ts
344
- import { existsSync as existsSync2, readFileSync } from "node:fs";
346
+ import { existsSync as existsSync2 } from "node:fs";
347
+ import { readFile } from "node:fs/promises";
345
348
  import { join as join2 } from "node:path";
346
349
  var DEFAULT_COLOR_CONFIG = {
347
350
  "light": {
@@ -371,17 +374,15 @@ var DEFAULT_COLOR_CONFIG = {
371
374
  "negative": "#dc2626"
372
375
  }
373
376
  };
374
- var getDefaultConfig = /* @__PURE__ */ __name((root) => {
377
+ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
375
378
  let license = STORM_DEFAULT_LICENSE;
376
379
  let homepage = STORM_DEFAULT_HOMEPAGE;
377
- let name;
378
- let namespace;
379
- let repository;
380
+ let name = void 0;
381
+ let namespace = void 0;
382
+ let repository = void 0;
380
383
  const workspaceRoot = findWorkspaceRoot(root);
381
384
  if (existsSync2(join2(workspaceRoot, "package.json"))) {
382
- const file = readFileSync(join2(workspaceRoot, "package.json"), {
383
- encoding: "utf8"
384
- });
385
+ const file = await readFile(joinPaths(workspaceRoot, "package.json"), "utf8");
385
386
  if (file) {
386
387
  const packageJson = JSON.parse(file);
387
388
  if (packageJson.name) {
@@ -390,8 +391,12 @@ var getDefaultConfig = /* @__PURE__ */ __name((root) => {
390
391
  if (packageJson.namespace) {
391
392
  namespace = packageJson.namespace;
392
393
  }
393
- if (packageJson.repository?.url) {
394
- repository = packageJson.repository?.url;
394
+ if (packageJson.repository) {
395
+ if (typeof packageJson.repository === "string") {
396
+ repository = packageJson.repository;
397
+ } else if (packageJson.repository.url) {
398
+ repository = packageJson.repository.url;
399
+ }
395
400
  }
396
401
  if (packageJson.license) {
397
402
  license = packageJson.license;
@@ -542,7 +547,6 @@ var writeWarning = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel
542
547
  var writeInfo = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
543
548
  var writeDebug = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
544
549
  var writeTrace = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
545
- var writeSystem = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.ALL, config)(message), "writeSystem");
546
550
  var MAX_DEPTH = 4;
547
551
  var formatLogMessage = /* @__PURE__ */ __name((message, options = {}, depth2 = 0) => {
548
552
  if (depth2 > MAX_DEPTH) {
@@ -573,6 +577,7 @@ export {
573
577
  STORM_DEFAULT_DOCS,
574
578
  STORM_DEFAULT_HOMEPAGE,
575
579
  STORM_DEFAULT_LICENSING,
580
+ StormConfigSchema,
576
581
  COLOR_KEYS,
577
582
  correctPaths,
578
583
  joinPaths,
@@ -585,6 +590,5 @@ export {
585
590
  writeInfo,
586
591
  writeDebug,
587
592
  writeTrace,
588
- writeSystem,
589
593
  formatLogMessage
590
594
  };
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk275E2SADjs = require('./chunk-275E2SAD.js');
6
+ var _chunkNSSZFPK3js = require('./chunk-NSSZFPK3.js');
7
7
 
8
8
 
9
9
  var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
@@ -11,7 +11,7 @@ var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
11
11
  // src/utilities/get-entry-points.ts
12
12
  var _glob = require('glob');
13
13
  var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
14
- const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk275E2SADjs.findWorkspaceRoot.call(void 0, );
14
+ const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkNSSZFPK3js.findWorkspaceRoot.call(void 0, );
15
15
  const entryPoints = [];
16
16
  if (entry) {
17
17
  if (Array.isArray(entry)) {
@@ -23,7 +23,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
23
23
  }
24
24
  }
25
25
  if (emitOnAll) {
26
- entryPoints.push(_chunk275E2SADjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
26
+ entryPoints.push(_chunkNSSZFPK3js.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
27
27
  }
28
28
  const results = [];
29
29
  for (const entryPoint in entryPoints) {
@@ -32,9 +32,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
32
32
  withFileTypes: true
33
33
  });
34
34
  results.push(...files.reduce((ret, filePath) => {
35
- const result = _chunk275E2SADjs.correctPaths.call(void 0, _chunk275E2SADjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk275E2SADjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunk275E2SADjs.correctPaths.call(void 0, projectRoot), ""));
35
+ const result = _chunkNSSZFPK3js.correctPaths.call(void 0, _chunkNSSZFPK3js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkNSSZFPK3js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkNSSZFPK3js.correctPaths.call(void 0, projectRoot), ""));
36
36
  if (result) {
37
- _chunk275E2SADjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk275E2SADjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
37
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkNSSZFPK3js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
38
38
  if (!results.includes(result)) {
39
39
  results.push(result);
40
40
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunk275E2SADjs = require('./chunk-275E2SAD.js');
3
+ var _chunkNSSZFPK3js = require('./chunk-NSSZFPK3.js');
4
4
 
5
5
 
6
6
  var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
@@ -25,8 +25,8 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
25
25
  return {
26
26
  name: `storm:ts-resolve`,
27
27
  async resolveId(source, importer) {
28
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
29
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
28
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
29
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
30
30
  if (!importer) {
31
31
  return null;
32
32
  }
@@ -37,7 +37,7 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
37
37
  return false;
38
38
  }
39
39
  if (ignore && ignore(source, importer)) {
40
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
40
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
41
41
  return null;
42
42
  }
43
43
  if (resolveOnly) {
@@ -46,12 +46,12 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
46
46
  return v.test(source);
47
47
  });
48
48
  if (!shouldResolve) {
49
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
49
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
50
50
  return null;
51
51
  }
52
52
  }
53
53
  if (_path2.default.isAbsolute(source)) {
54
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
54
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
55
55
  return null;
56
56
  }
57
57
  const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
@@ -83,10 +83,10 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
83
83
  });
84
84
  }
85
85
  if (id) {
86
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
86
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
87
87
  return id;
88
88
  }
89
- _chunk275E2SADjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
89
+ _chunkNSSZFPK3js.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
90
90
  return false;
91
91
  }
92
92
  };
package/dist/index.d.mts CHANGED
@@ -14,7 +14,7 @@ export { getExternalDependencies, getExtraDependencies, getInternalDependencies
14
14
  export { readNxConfig } from './utilities/read-nx-config.mjs';
15
15
  export { createTaskId, getAllWorkspaceTaskGraphs } from './utilities/task-graph.mjs';
16
16
  import 'rollup';
17
- import './types-v0neDT-G.mjs';
17
+ import './types-Km4Ix66C.mjs';
18
18
  import 'zod';
19
19
  import '@nx/devkit';
20
20
  import '@nx/js/src/utils/buildable-libs-utils';
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export { getExternalDependencies, getExtraDependencies, getInternalDependencies
14
14
  export { readNxConfig } from './utilities/read-nx-config.js';
15
15
  export { createTaskId, getAllWorkspaceTaskGraphs } from './utilities/task-graph.js';
16
16
  import 'rollup';
17
- import './types-v0neDT-G.js';
17
+ import './types-Km4Ix66C.js';
18
18
  import 'zod';
19
19
  import '@nx/devkit';
20
20
  import '@nx/js/src/utils/buildable-libs-utils';
package/dist/index.js CHANGED
@@ -5,19 +5,19 @@
5
5
  var _chunkJP4YIUPAjs = require('./chunk-JP4YIUPA.js');
6
6
 
7
7
 
8
- var _chunkD7IEQ7P2js = require('./chunk-D7IEQ7P2.js');
8
+ var _chunkH37GZ5HCjs = require('./chunk-H37GZ5HC.js');
9
9
 
10
10
 
11
- var _chunkQMLJ4YOFjs = require('./chunk-QMLJ4YOF.js');
11
+ var _chunkF4IA5EOZjs = require('./chunk-F4IA5EOZ.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- var _chunkSYSXNB3Mjs = require('./chunk-SYSXNB3M.js');
17
+ var _chunk4P3AQZVEjs = require('./chunk-4P3AQZVE.js');
18
18
 
19
19
 
20
- var _chunkYXBRJJCUjs = require('./chunk-YXBRJJCU.js');
20
+ var _chunkSX4QCTROjs = require('./chunk-SX4QCTRO.js');
21
21
 
22
22
 
23
23
  var _chunkIZKGYT3Djs = require('./chunk-IZKGYT3D.js');
@@ -43,14 +43,14 @@ require('./chunk-GGNOJ77I.js');
43
43
  require('./chunk-WPFIBCZT.js');
44
44
 
45
45
 
46
- var _chunkL7W4YZE4js = require('./chunk-L7W4YZE4.js');
46
+ var _chunkDIPQPQCVjs = require('./chunk-DIPQPQCV.js');
47
47
 
48
48
 
49
49
  var _chunk2TV7ZJSKjs = require('./chunk-2TV7ZJSK.js');
50
50
 
51
51
 
52
- var _chunk7TZNJMABjs = require('./chunk-7TZNJMAB.js');
53
- require('./chunk-275E2SAD.js');
52
+ var _chunkYZWFPYXZjs = require('./chunk-YZWFPYXZ.js');
53
+ require('./chunk-NSSZFPK3.js');
54
54
 
55
55
 
56
56
  var _chunkY3HRAWPUjs = require('./chunk-Y3HRAWPU.js');
@@ -80,4 +80,4 @@ require('./chunk-SHUYVCID.js');
80
80
 
81
81
 
82
82
 
83
- exports.DEFAULT_COMPILED_BANNER = _chunk2KEW5JJ7js.DEFAULT_COMPILED_BANNER; exports.DEFAULT_ENVIRONMENT = _chunk2KEW5JJ7js.DEFAULT_ENVIRONMENT; exports.DEFAULT_ORGANIZATION = _chunk2KEW5JJ7js.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunk2KEW5JJ7js.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunk2KEW5JJ7js.DEFAULT_TARGET; exports.addPackageDependencies = _chunkSYSXNB3Mjs.addPackageDependencies; exports.addPackageJsonExport = _chunkSYSXNB3Mjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkSYSXNB3Mjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkSYSXNB3Mjs.addWorkspacePackageJsonFields; exports.analyze = _chunkL7W4YZE4js.analyze; exports.copyAssets = _chunkD7IEQ7P2js.copyAssets; exports.createTaskId = _chunkJP4YIUPAjs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkJP4YIUPAjs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunkYXBRJJCUjs.getEntryPoints; exports.getEnv = _chunkIZKGYT3Djs.getEnv; exports.getExternalDependencies = _chunkVSAQXEXDjs.getExternalDependencies; exports.getExtraDependencies = _chunkVSAQXEXDjs.getExtraDependencies; exports.getFileBanner = _chunkPBTSVWXLjs.getFileBanner; exports.getInternalDependencies = _chunkVSAQXEXDjs.getInternalDependencies; exports.getOutExtension = _chunkTWCCJQYFjs.getOutExtension; exports.readNxConfig = _chunkQMLJ4YOFjs.readNxConfig; exports.swc = _chunk2TV7ZJSKjs.swc; exports.tsResolvePlugin = _chunk7TZNJMABjs.tsResolvePlugin; exports.typeDefinitions = _chunkY3HRAWPUjs.typeDefinitions;
83
+ exports.DEFAULT_COMPILED_BANNER = _chunk2KEW5JJ7js.DEFAULT_COMPILED_BANNER; exports.DEFAULT_ENVIRONMENT = _chunk2KEW5JJ7js.DEFAULT_ENVIRONMENT; exports.DEFAULT_ORGANIZATION = _chunk2KEW5JJ7js.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunk2KEW5JJ7js.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunk2KEW5JJ7js.DEFAULT_TARGET; exports.addPackageDependencies = _chunk4P3AQZVEjs.addPackageDependencies; exports.addPackageJsonExport = _chunk4P3AQZVEjs.addPackageJsonExport; exports.addPackageJsonExports = _chunk4P3AQZVEjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunk4P3AQZVEjs.addWorkspacePackageJsonFields; exports.analyze = _chunkDIPQPQCVjs.analyze; exports.copyAssets = _chunkH37GZ5HCjs.copyAssets; exports.createTaskId = _chunkJP4YIUPAjs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkJP4YIUPAjs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunkSX4QCTROjs.getEntryPoints; exports.getEnv = _chunkIZKGYT3Djs.getEnv; exports.getExternalDependencies = _chunkVSAQXEXDjs.getExternalDependencies; exports.getExtraDependencies = _chunkVSAQXEXDjs.getExtraDependencies; exports.getFileBanner = _chunkPBTSVWXLjs.getFileBanner; exports.getInternalDependencies = _chunkVSAQXEXDjs.getInternalDependencies; exports.getOutExtension = _chunkTWCCJQYFjs.getOutExtension; exports.readNxConfig = _chunkF4IA5EOZjs.readNxConfig; exports.swc = _chunk2TV7ZJSKjs.swc; exports.tsResolvePlugin = _chunkYZWFPYXZjs.tsResolvePlugin; exports.typeDefinitions = _chunkY3HRAWPUjs.typeDefinitions;