@storm-software/workspace-tools 1.43.7 → 1.43.8

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.
@@ -29754,7 +29754,7 @@ var require_jsonfile = __commonJS({
29754
29754
  return obj;
29755
29755
  }
29756
29756
  var readFile = universalify.fromPromise(_readFile);
29757
- function readFileSync3(file, options = {}) {
29757
+ function readFileSync2(file, options = {}) {
29758
29758
  if (typeof options === "string") {
29759
29759
  options = { encoding: options };
29760
29760
  }
@@ -29786,7 +29786,7 @@ var require_jsonfile = __commonJS({
29786
29786
  }
29787
29787
  var jsonfile = {
29788
29788
  readFile,
29789
- readFileSync: readFileSync3,
29789
+ readFileSync: readFileSync2,
29790
29790
  writeFile: writeFile2,
29791
29791
  writeFileSync: writeFileSync2
29792
29792
  };
@@ -46989,7 +46989,7 @@ var require_lib6 = __commonJS({
46989
46989
  function _interopRequireDefault(obj) {
46990
46990
  return obj && obj.__esModule ? obj : { default: obj };
46991
46991
  }
46992
- var readFileSync3 = (fp) => {
46992
+ var readFileSync2 = (fp) => {
46993
46993
  return _fs.default.readFileSync(fp, "utf8");
46994
46994
  };
46995
46995
  var pathExists = (fp) => new Promise((resolve) => {
@@ -47113,7 +47113,7 @@ var require_lib6 = __commonJS({
47113
47113
  if (this.packageJsonCache.has(filepath2)) {
47114
47114
  return this.packageJsonCache.get(filepath2)[options.packageKey];
47115
47115
  }
47116
- const data2 = this.options.parseJSON(readFileSync3(filepath2));
47116
+ const data2 = this.options.parseJSON(readFileSync2(filepath2));
47117
47117
  return data2;
47118
47118
  }
47119
47119
  };
@@ -47147,7 +47147,7 @@ var require_lib6 = __commonJS({
47147
47147
  if (this.packageJsonCache.has(filepath2)) {
47148
47148
  return this.packageJsonCache.get(filepath2)[options.packageKey];
47149
47149
  }
47150
- const data2 = this.options.parseJSON(readFileSync3(filepath2));
47150
+ const data2 = this.options.parseJSON(readFileSync2(filepath2));
47151
47151
  return data2;
47152
47152
  }
47153
47153
  };
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
73213
73213
  var normalize2 = createSafeHandler((url) => {
73214
73214
  });
73215
73215
  exports.normalize = normalize2;
73216
- function join4(aRoot, aPath) {
73216
+ function join3(aRoot, aPath) {
73217
73217
  const pathType = getURLType(aPath);
73218
73218
  const rootType = getURLType(aRoot);
73219
73219
  aRoot = ensureDirectory(aRoot);
@@ -73239,7 +73239,7 @@ var require_util5 = __commonJS({
73239
73239
  const newPath = withBase(aPath, withBase(aRoot, base));
73240
73240
  return computeRelativeURL(base, newPath);
73241
73241
  }
73242
- exports.join = join4;
73242
+ exports.join = join3;
73243
73243
  function relative(rootURL, targetURL) {
73244
73244
  const result = relativeIfPossible(rootURL, targetURL);
73245
73245
  return typeof result === "string" ? result : normalize2(targetURL);
@@ -73269,9 +73269,9 @@ var require_util5 = __commonJS({
73269
73269
  }
73270
73270
  let url = normalize2(sourceURL || "");
73271
73271
  if (sourceRoot)
73272
- url = join4(sourceRoot, url);
73272
+ url = join3(sourceRoot, url);
73273
73273
  if (sourceMapURL)
73274
- url = join4(trimFilename(sourceMapURL), url);
73274
+ url = join3(trimFilename(sourceMapURL), url);
73275
73275
  return url;
73276
73276
  }
73277
73277
  exports.computeSourceURL = computeSourceURL;
@@ -75036,8 +75036,8 @@ var require_source_map = __commonJS({
75036
75036
  // node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js
75037
75037
  var require_native = __commonJS({
75038
75038
  "node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
75039
- var { existsSync: existsSync3 } = require("node:fs");
75040
- var { join: join4 } = require("node:path");
75039
+ var { existsSync: existsSync2 } = require("node:fs");
75040
+ var { join: join3 } = require("node:path");
75041
75041
  var { platform, arch, report } = require("node:process");
75042
75042
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
75043
75043
  var bindingsByPlatformAndArch = {
@@ -75087,7 +75087,7 @@ If this is important to you, please consider supporting Rollup to make a native
75087
75087
  return imported.base;
75088
75088
  }
75089
75089
  var localName = `./rollup.${packageBase}.node`;
75090
- var { parse, parseAsync, xxhashBase64Url } = existsSync3(join4(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
75090
+ var { parse, parseAsync, xxhashBase64Url } = existsSync2(join3(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
75091
75091
  module2.exports.parse = parse;
75092
75092
  module2.exports.parseAsync = parseAsync;
75093
75093
  module2.exports.xxhashBase64Url = xxhashBase64Url;
@@ -111220,7 +111220,7 @@ var require_TransformerError = __commonJS({
111220
111220
  TransformerError2.from = function(method) {
111221
111221
  return function(errors) {
111222
111222
  var body = errors.map(function(e) {
111223
- var subject = e.explore.object === null ? "" : join4(e.explore.object)(e.explore.property);
111223
+ var subject = e.explore.object === null ? "" : join3(e.explore.object)(e.explore.property);
111224
111224
  var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e.name);
111225
111225
  return "- ".concat(type, "\n").concat(e.messages.map(function(msg) {
111226
111226
  return " - ".concat(msg);
@@ -111232,7 +111232,7 @@ var require_TransformerError = __commonJS({
111232
111232
  });
111233
111233
  };
111234
111234
  };
111235
- var join4 = function(object) {
111235
+ var join3 = function(object) {
111236
111236
  return function(key) {
111237
111237
  if (key === null)
111238
111238
  return object.name;
@@ -117312,13 +117312,13 @@ var require_application_object = __commonJS({
117312
117312
  return __assign2(__assign2({ type: "object", properties, nullable: options.purpose === "swagger" ? nullable : void 0, required: required.length ? required : void 0, description: obj.description }, options.surplus ? { "x-typia-jsDocTags": obj.jsDocTags } : {}), options.purpose === "ajv" ? extraProps : options.surplus ? {
117313
117313
  "x-typia-additionalProperties": extraProps.additionalProperties,
117314
117314
  "x-typia-patternProperties": extraProps.patternProperties,
117315
- additionalProperties: join4(options)(components)(extraMeta)
117315
+ additionalProperties: join3(options)(components)(extraMeta)
117316
117316
  } : {});
117317
117317
  };
117318
117318
  };
117319
117319
  };
117320
117320
  };
117321
- var join4 = function(options) {
117321
+ var join3 = function(options) {
117322
117322
  return function(components) {
117323
117323
  return function(extra) {
117324
117324
  var _a;
@@ -126460,10 +126460,6 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
126460
126460
  return result;
126461
126461
  }
126462
126462
 
126463
- // packages/config-tools/src/utilities/get-default-config.ts
126464
- var import_node_fs2 = require("node:fs");
126465
- var import_node_path2 = require("node:path");
126466
-
126467
126463
  // node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
126468
126464
  var util;
126469
126465
  (function(util2) {
@@ -130124,51 +130120,6 @@ var DefaultStormConfig = {
130124
130120
  colors: { ...DefaultColorConfig },
130125
130121
  extensions: {}
130126
130122
  };
130127
- var getDefaultConfig = (config = {}, root) => {
130128
- let name = "storm-workspace";
130129
- let namespace = "storm-software";
130130
- let repository = "https://github.com/storm-software/storm-ops";
130131
- let license = DefaultStormConfig.license;
130132
- let homepage = DefaultStormConfig.homepage;
130133
- const workspaceRoot = findWorkspaceRoot(root);
130134
- if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(workspaceRoot, "package.json"))) {
130135
- const file = (0, import_node_fs2.readFileSync)((0, import_node_path2.join)(workspaceRoot, "package.json"), {
130136
- encoding: "utf-8"
130137
- });
130138
- if (file) {
130139
- const packageJson = JSON.parse(file);
130140
- if (packageJson.name) {
130141
- name = packageJson.name;
130142
- }
130143
- if (packageJson.namespace) {
130144
- namespace = packageJson.namespace;
130145
- }
130146
- if (packageJson.repository?.url) {
130147
- repository = packageJson.repository?.url;
130148
- }
130149
- if (packageJson.license) {
130150
- license = packageJson.license;
130151
- }
130152
- if (packageJson.homepage) {
130153
- homepage = packageJson.homepage;
130154
- }
130155
- }
130156
- }
130157
- return StormConfigSchema.parse({
130158
- ...DefaultStormConfig,
130159
- ...config,
130160
- colors: { ...DefaultColorConfig, ...config.colors },
130161
- workspaceRoot,
130162
- name,
130163
- namespace,
130164
- repository,
130165
- license: license ?? DefaultStormConfig.license,
130166
- homepage: homepage ?? DefaultStormConfig.homepage,
130167
- extensions: {
130168
- ...config.extensions
130169
- }
130170
- });
130171
- };
130172
130123
 
130173
130124
  // packages/config-tools/src/utilities/get-log-level.ts
130174
130125
  var getLogLevel = (label) => {
@@ -130570,26 +130521,15 @@ var getConfigEnv = () => {
130570
130521
 
130571
130522
  // packages/config-tools/src/create-storm-config.ts
130572
130523
  var loadStormConfig = async (workspaceRoot) => {
130573
- let config = {};
130574
130524
  let _workspaceRoot = workspaceRoot;
130575
130525
  if (!_workspaceRoot) {
130576
130526
  _workspaceRoot = findWorkspaceRoot();
130577
130527
  }
130578
- const configFile = await getDefaultConfig(
130579
- {
130580
- ...await getConfigFile(_workspaceRoot),
130581
- ...getConfigEnv()
130582
- },
130583
- _workspaceRoot
130584
- );
130585
- if (configFile) {
130586
- config = StormConfigSchema.parse(configFile);
130587
- } else {
130588
- writeWarning(
130589
- config,
130590
- "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
130591
- );
130592
- }
130528
+ const configFile = {
130529
+ ...await getConfigFile(_workspaceRoot),
130530
+ ...getConfigEnv()
130531
+ };
130532
+ const config = StormConfigSchema.parse(configFile);
130593
130533
  setConfigEnv(config);
130594
130534
  return config;
130595
130535
  };
@@ -130807,9 +130747,9 @@ ${commentStart} ----------------------------------------------------------------
130807
130747
  };
130808
130748
 
130809
130749
  // packages/workspace-tools/src/executors/tsup/executor.ts
130810
- var import_node_fs3 = require("node:fs");
130750
+ var import_node_fs2 = require("node:fs");
130811
130751
  var import_promises2 = require("node:fs/promises");
130812
- var import_node_path3 = require("node:path");
130752
+ var import_node_path2 = require("node:path");
130813
130753
  var import_esbuild_decorators = __toESM(require_src());
130814
130754
  var import_devkit2 = __toESM(require_devkit());
130815
130755
  var import_js = __toESM(require_src2());
@@ -137229,9 +137169,9 @@ ${Object.keys(options).map(
137229
137169
  if (!result.success) {
137230
137170
  throw new Error("The Build process failed trying to copy assets");
137231
137171
  }
137232
- const pathToPackageJson = (0, import_node_path3.join)(context.root, projectRoot, "package.json");
137172
+ const pathToPackageJson = (0, import_node_path2.join)(context.root, projectRoot, "package.json");
137233
137173
  const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
137234
- const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_node_path3.join)(workspaceRoot, "package.json"));
137174
+ const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_node_path2.join)(workspaceRoot, "package.json"));
137235
137175
  options.external = options.external || [];
137236
137176
  if (workspacePackageJson?.dependencies) {
137237
137177
  options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
@@ -137390,11 +137330,11 @@ ${externalDependencies.map((dep) => {
137390
137330
  },
137391
137331
  ...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
137392
137332
  [removeExtension(entryPoint).replace(sourceRoot, "")]: {
137393
- types: (0, import_node_path3.join)(
137333
+ types: (0, import_node_path2.join)(
137394
137334
  `./${distPaths[0]}`,
137395
137335
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
137396
137336
  ),
137397
- default: (0, import_node_path3.join)(
137337
+ default: (0, import_node_path2.join)(
137398
137338
  `./${distPaths[0]}`,
137399
137339
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
137400
137340
  )
@@ -137440,7 +137380,7 @@ ${externalDependencies.map((dep) => {
137440
137380
  if (distSrc.startsWith("/")) {
137441
137381
  distSrc = distSrc.substring(1);
137442
137382
  }
137443
- packageJson.source ??= `${(0, import_node_path3.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
137383
+ packageJson.source ??= `${(0, import_node_path2.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
137444
137384
  }
137445
137385
  packageJson.sideEffects ??= false;
137446
137386
  packageJson.files ??= ["dist/**/*"];
@@ -137458,10 +137398,10 @@ ${externalDependencies.map((dep) => {
137458
137398
  packageJson.license ??= workspacePackageJson.license;
137459
137399
  packageJson.keywords ??= workspacePackageJson.keywords;
137460
137400
  packageJson.repository ??= workspacePackageJson.repository;
137461
- packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path3.join)("packages", context.projectName);
137462
- const packageJsonPath = (0, import_node_path3.join)(context.root, options.outputPath, "package.json");
137401
+ packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path2.join)("packages", context.projectName);
137402
+ const packageJsonPath = (0, import_node_path2.join)(context.root, options.outputPath, "package.json");
137463
137403
  writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
137464
- (0, import_node_fs3.writeFileSync)(
137404
+ (0, import_node_fs2.writeFileSync)(
137465
137405
  packageJsonPath,
137466
137406
  await (0, import_prettier.format)(JSON.stringify(packageJson), {
137467
137407
  ...prettierOptions,
@@ -137485,7 +137425,7 @@ ${externalDependencies.map((dep) => {
137485
137425
  await (0, import_prettier.format)(
137486
137426
  `${options.banner ? options.banner.startsWith("//") ? options.banner : `// ${options.banner}` : ""}
137487
137427
 
137488
- ${(0, import_node_fs3.readFileSync)(file, "utf-8")}`,
137428
+ ${(0, import_node_fs2.readFileSync)(file, "utf-8")}`,
137489
137429
  {
137490
137430
  ...prettierOptions,
137491
137431
  parser: "typescript"
@@ -137590,11 +137530,11 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
137590
137530
  emitDeclarationOnly: true,
137591
137531
  declaration: true,
137592
137532
  declarationMap: true,
137593
- declarationDir: (0, import_node_path3.join)(workspaceRoot, "tmp", ".tsup", "declaration")
137533
+ declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
137594
137534
  }
137595
137535
  },
137596
137536
  ts.sys,
137597
- (0, import_node_path3.dirname)(options.tsConfig)
137537
+ (0, import_node_path2.dirname)(options.tsConfig)
137598
137538
  );
137599
137539
  tsConfig.options.pathsBasePath = workspaceRoot;
137600
137540
  if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
@@ -29754,7 +29754,7 @@ var require_jsonfile = __commonJS({
29754
29754
  return obj;
29755
29755
  }
29756
29756
  var readFile = universalify.fromPromise(_readFile);
29757
- function readFileSync3(file, options = {}) {
29757
+ function readFileSync2(file, options = {}) {
29758
29758
  if (typeof options === "string") {
29759
29759
  options = { encoding: options };
29760
29760
  }
@@ -29786,7 +29786,7 @@ var require_jsonfile = __commonJS({
29786
29786
  }
29787
29787
  var jsonfile = {
29788
29788
  readFile,
29789
- readFileSync: readFileSync3,
29789
+ readFileSync: readFileSync2,
29790
29790
  writeFile: writeFile2,
29791
29791
  writeFileSync: writeFileSync2
29792
29792
  };
@@ -46989,7 +46989,7 @@ var require_lib6 = __commonJS({
46989
46989
  function _interopRequireDefault(obj) {
46990
46990
  return obj && obj.__esModule ? obj : { default: obj };
46991
46991
  }
46992
- var readFileSync3 = (fp) => {
46992
+ var readFileSync2 = (fp) => {
46993
46993
  return _fs.default.readFileSync(fp, "utf8");
46994
46994
  };
46995
46995
  var pathExists = (fp) => new Promise((resolve) => {
@@ -47113,7 +47113,7 @@ var require_lib6 = __commonJS({
47113
47113
  if (this.packageJsonCache.has(filepath2)) {
47114
47114
  return this.packageJsonCache.get(filepath2)[options.packageKey];
47115
47115
  }
47116
- const data2 = this.options.parseJSON(readFileSync3(filepath2));
47116
+ const data2 = this.options.parseJSON(readFileSync2(filepath2));
47117
47117
  return data2;
47118
47118
  }
47119
47119
  };
@@ -47147,7 +47147,7 @@ var require_lib6 = __commonJS({
47147
47147
  if (this.packageJsonCache.has(filepath2)) {
47148
47148
  return this.packageJsonCache.get(filepath2)[options.packageKey];
47149
47149
  }
47150
- const data2 = this.options.parseJSON(readFileSync3(filepath2));
47150
+ const data2 = this.options.parseJSON(readFileSync2(filepath2));
47151
47151
  return data2;
47152
47152
  }
47153
47153
  };
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
73213
73213
  var normalize2 = createSafeHandler((url) => {
73214
73214
  });
73215
73215
  exports.normalize = normalize2;
73216
- function join4(aRoot, aPath) {
73216
+ function join3(aRoot, aPath) {
73217
73217
  const pathType = getURLType(aPath);
73218
73218
  const rootType = getURLType(aRoot);
73219
73219
  aRoot = ensureDirectory(aRoot);
@@ -73239,7 +73239,7 @@ var require_util5 = __commonJS({
73239
73239
  const newPath = withBase(aPath, withBase(aRoot, base));
73240
73240
  return computeRelativeURL(base, newPath);
73241
73241
  }
73242
- exports.join = join4;
73242
+ exports.join = join3;
73243
73243
  function relative(rootURL, targetURL) {
73244
73244
  const result = relativeIfPossible(rootURL, targetURL);
73245
73245
  return typeof result === "string" ? result : normalize2(targetURL);
@@ -73269,9 +73269,9 @@ var require_util5 = __commonJS({
73269
73269
  }
73270
73270
  let url = normalize2(sourceURL || "");
73271
73271
  if (sourceRoot)
73272
- url = join4(sourceRoot, url);
73272
+ url = join3(sourceRoot, url);
73273
73273
  if (sourceMapURL)
73274
- url = join4(trimFilename(sourceMapURL), url);
73274
+ url = join3(trimFilename(sourceMapURL), url);
73275
73275
  return url;
73276
73276
  }
73277
73277
  exports.computeSourceURL = computeSourceURL;
@@ -75036,8 +75036,8 @@ var require_source_map = __commonJS({
75036
75036
  // node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js
75037
75037
  var require_native = __commonJS({
75038
75038
  "node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
75039
- var { existsSync: existsSync3 } = require("node:fs");
75040
- var { join: join4 } = require("node:path");
75039
+ var { existsSync: existsSync2 } = require("node:fs");
75040
+ var { join: join3 } = require("node:path");
75041
75041
  var { platform, arch, report } = require("node:process");
75042
75042
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
75043
75043
  var bindingsByPlatformAndArch = {
@@ -75087,7 +75087,7 @@ If this is important to you, please consider supporting Rollup to make a native
75087
75087
  return imported.base;
75088
75088
  }
75089
75089
  var localName = `./rollup.${packageBase}.node`;
75090
- var { parse, parseAsync, xxhashBase64Url } = existsSync3(join4(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
75090
+ var { parse, parseAsync, xxhashBase64Url } = existsSync2(join3(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
75091
75091
  module2.exports.parse = parse;
75092
75092
  module2.exports.parseAsync = parseAsync;
75093
75093
  module2.exports.xxhashBase64Url = xxhashBase64Url;
@@ -111220,7 +111220,7 @@ var require_TransformerError = __commonJS({
111220
111220
  TransformerError2.from = function(method) {
111221
111221
  return function(errors) {
111222
111222
  var body = errors.map(function(e) {
111223
- var subject = e.explore.object === null ? "" : join4(e.explore.object)(e.explore.property);
111223
+ var subject = e.explore.object === null ? "" : join3(e.explore.object)(e.explore.property);
111224
111224
  var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e.name);
111225
111225
  return "- ".concat(type, "\n").concat(e.messages.map(function(msg) {
111226
111226
  return " - ".concat(msg);
@@ -111232,7 +111232,7 @@ var require_TransformerError = __commonJS({
111232
111232
  });
111233
111233
  };
111234
111234
  };
111235
- var join4 = function(object) {
111235
+ var join3 = function(object) {
111236
111236
  return function(key) {
111237
111237
  if (key === null)
111238
111238
  return object.name;
@@ -117312,13 +117312,13 @@ var require_application_object = __commonJS({
117312
117312
  return __assign2(__assign2({ type: "object", properties, nullable: options.purpose === "swagger" ? nullable : void 0, required: required.length ? required : void 0, description: obj.description }, options.surplus ? { "x-typia-jsDocTags": obj.jsDocTags } : {}), options.purpose === "ajv" ? extraProps : options.surplus ? {
117313
117313
  "x-typia-additionalProperties": extraProps.additionalProperties,
117314
117314
  "x-typia-patternProperties": extraProps.patternProperties,
117315
- additionalProperties: join4(options)(components)(extraMeta)
117315
+ additionalProperties: join3(options)(components)(extraMeta)
117316
117316
  } : {});
117317
117317
  };
117318
117318
  };
117319
117319
  };
117320
117320
  };
117321
- var join4 = function(options) {
117321
+ var join3 = function(options) {
117322
117322
  return function(components) {
117323
117323
  return function(extra) {
117324
117324
  var _a;
@@ -126460,10 +126460,6 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
126460
126460
  return result;
126461
126461
  }
126462
126462
 
126463
- // packages/config-tools/src/utilities/get-default-config.ts
126464
- var import_node_fs2 = require("node:fs");
126465
- var import_node_path2 = require("node:path");
126466
-
126467
126463
  // node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
126468
126464
  var util;
126469
126465
  (function(util2) {
@@ -130124,51 +130120,6 @@ var DefaultStormConfig = {
130124
130120
  colors: { ...DefaultColorConfig },
130125
130121
  extensions: {}
130126
130122
  };
130127
- var getDefaultConfig = (config = {}, root) => {
130128
- let name = "storm-workspace";
130129
- let namespace = "storm-software";
130130
- let repository = "https://github.com/storm-software/storm-ops";
130131
- let license = DefaultStormConfig.license;
130132
- let homepage = DefaultStormConfig.homepage;
130133
- const workspaceRoot = findWorkspaceRoot(root);
130134
- if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(workspaceRoot, "package.json"))) {
130135
- const file = (0, import_node_fs2.readFileSync)((0, import_node_path2.join)(workspaceRoot, "package.json"), {
130136
- encoding: "utf-8"
130137
- });
130138
- if (file) {
130139
- const packageJson = JSON.parse(file);
130140
- if (packageJson.name) {
130141
- name = packageJson.name;
130142
- }
130143
- if (packageJson.namespace) {
130144
- namespace = packageJson.namespace;
130145
- }
130146
- if (packageJson.repository?.url) {
130147
- repository = packageJson.repository?.url;
130148
- }
130149
- if (packageJson.license) {
130150
- license = packageJson.license;
130151
- }
130152
- if (packageJson.homepage) {
130153
- homepage = packageJson.homepage;
130154
- }
130155
- }
130156
- }
130157
- return StormConfigSchema.parse({
130158
- ...DefaultStormConfig,
130159
- ...config,
130160
- colors: { ...DefaultColorConfig, ...config.colors },
130161
- workspaceRoot,
130162
- name,
130163
- namespace,
130164
- repository,
130165
- license: license ?? DefaultStormConfig.license,
130166
- homepage: homepage ?? DefaultStormConfig.homepage,
130167
- extensions: {
130168
- ...config.extensions
130169
- }
130170
- });
130171
- };
130172
130123
 
130173
130124
  // packages/config-tools/src/utilities/get-log-level.ts
130174
130125
  var getLogLevel = (label) => {
@@ -130570,26 +130521,15 @@ var getConfigEnv = () => {
130570
130521
 
130571
130522
  // packages/config-tools/src/create-storm-config.ts
130572
130523
  var loadStormConfig = async (workspaceRoot) => {
130573
- let config = {};
130574
130524
  let _workspaceRoot = workspaceRoot;
130575
130525
  if (!_workspaceRoot) {
130576
130526
  _workspaceRoot = findWorkspaceRoot();
130577
130527
  }
130578
- const configFile = await getDefaultConfig(
130579
- {
130580
- ...await getConfigFile(_workspaceRoot),
130581
- ...getConfigEnv()
130582
- },
130583
- _workspaceRoot
130584
- );
130585
- if (configFile) {
130586
- config = StormConfigSchema.parse(configFile);
130587
- } else {
130588
- writeWarning(
130589
- config,
130590
- "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
130591
- );
130592
- }
130528
+ const configFile = {
130529
+ ...await getConfigFile(_workspaceRoot),
130530
+ ...getConfigEnv()
130531
+ };
130532
+ const config = StormConfigSchema.parse(configFile);
130593
130533
  setConfigEnv(config);
130594
130534
  return config;
130595
130535
  };
@@ -130807,9 +130747,9 @@ ${commentStart} ----------------------------------------------------------------
130807
130747
  };
130808
130748
 
130809
130749
  // packages/workspace-tools/src/executors/tsup/executor.ts
130810
- var import_node_fs3 = require("node:fs");
130750
+ var import_node_fs2 = require("node:fs");
130811
130751
  var import_promises2 = require("node:fs/promises");
130812
- var import_node_path3 = require("node:path");
130752
+ var import_node_path2 = require("node:path");
130813
130753
  var import_esbuild_decorators = __toESM(require_src());
130814
130754
  var import_devkit2 = __toESM(require_devkit());
130815
130755
  var import_js = __toESM(require_src2());
@@ -137229,9 +137169,9 @@ ${Object.keys(options).map(
137229
137169
  if (!result.success) {
137230
137170
  throw new Error("The Build process failed trying to copy assets");
137231
137171
  }
137232
- const pathToPackageJson = (0, import_node_path3.join)(context.root, projectRoot, "package.json");
137172
+ const pathToPackageJson = (0, import_node_path2.join)(context.root, projectRoot, "package.json");
137233
137173
  const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit2.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
137234
- const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_node_path3.join)(workspaceRoot, "package.json"));
137174
+ const workspacePackageJson = (0, import_devkit2.readJsonFile)((0, import_node_path2.join)(workspaceRoot, "package.json"));
137235
137175
  options.external = options.external || [];
137236
137176
  if (workspacePackageJson?.dependencies) {
137237
137177
  options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
@@ -137390,11 +137330,11 @@ ${externalDependencies.map((dep) => {
137390
137330
  },
137391
137331
  ...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
137392
137332
  [removeExtension(entryPoint).replace(sourceRoot, "")]: {
137393
- types: (0, import_node_path3.join)(
137333
+ types: (0, import_node_path2.join)(
137394
137334
  `./${distPaths[0]}`,
137395
137335
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
137396
137336
  ),
137397
- default: (0, import_node_path3.join)(
137337
+ default: (0, import_node_path2.join)(
137398
137338
  `./${distPaths[0]}`,
137399
137339
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
137400
137340
  )
@@ -137440,7 +137380,7 @@ ${externalDependencies.map((dep) => {
137440
137380
  if (distSrc.startsWith("/")) {
137441
137381
  distSrc = distSrc.substring(1);
137442
137382
  }
137443
- packageJson.source ??= `${(0, import_node_path3.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
137383
+ packageJson.source ??= `${(0, import_node_path2.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
137444
137384
  }
137445
137385
  packageJson.sideEffects ??= false;
137446
137386
  packageJson.files ??= ["dist/**/*"];
@@ -137458,10 +137398,10 @@ ${externalDependencies.map((dep) => {
137458
137398
  packageJson.license ??= workspacePackageJson.license;
137459
137399
  packageJson.keywords ??= workspacePackageJson.keywords;
137460
137400
  packageJson.repository ??= workspacePackageJson.repository;
137461
- packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path3.join)("packages", context.projectName);
137462
- const packageJsonPath = (0, import_node_path3.join)(context.root, options.outputPath, "package.json");
137401
+ packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path2.join)("packages", context.projectName);
137402
+ const packageJsonPath = (0, import_node_path2.join)(context.root, options.outputPath, "package.json");
137463
137403
  writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
137464
- (0, import_node_fs3.writeFileSync)(
137404
+ (0, import_node_fs2.writeFileSync)(
137465
137405
  packageJsonPath,
137466
137406
  await (0, import_prettier.format)(JSON.stringify(packageJson), {
137467
137407
  ...prettierOptions,
@@ -137485,7 +137425,7 @@ ${externalDependencies.map((dep) => {
137485
137425
  await (0, import_prettier.format)(
137486
137426
  `${options.banner ? options.banner.startsWith("//") ? options.banner : `// ${options.banner}` : ""}
137487
137427
 
137488
- ${(0, import_node_fs3.readFileSync)(file, "utf-8")}`,
137428
+ ${(0, import_node_fs2.readFileSync)(file, "utf-8")}`,
137489
137429
  {
137490
137430
  ...prettierOptions,
137491
137431
  parser: "typescript"
@@ -137590,11 +137530,11 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
137590
137530
  emitDeclarationOnly: true,
137591
137531
  declaration: true,
137592
137532
  declarationMap: true,
137593
- declarationDir: (0, import_node_path3.join)(workspaceRoot, "tmp", ".tsup", "declaration")
137533
+ declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
137594
137534
  }
137595
137535
  },
137596
137536
  ts.sys,
137597
- (0, import_node_path3.dirname)(options.tsConfig)
137537
+ (0, import_node_path2.dirname)(options.tsConfig)
137598
137538
  );
137599
137539
  tsConfig.options.pathsBasePath = workspaceRoot;
137600
137540
  if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {