@storm-software/workspace-tools 1.62.23 → 1.62.25

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 1.62.25 (2024-03-01)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **tsconfig:** Added `lib` option to base tsconfig file ([7e7a848c](https://github.com/storm-software/storm-ops/commit/7e7a848c))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.62.24 (2024-03-01)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Ensure invalid env are not provided to build ([e6921ea7](https://github.com/storm-software/storm-ops/commit/e6921ea7))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.62.23 (2024-03-01)
2
26
 
3
27
 
@@ -5,8 +5,7 @@
5
5
 
6
6
  const getImportMetaUrl = () =>
7
7
  typeof document === "undefined"
8
- ? new URL("file:" + __filename).href
9
- : (document.currentScript && document.currentScript.src) ||
10
- new URL("main.js", document.baseURI).href;
8
+ ? new URL(`file:${__filename}`).href
9
+ : document.currentScript?.src || new URL("main.js", document.baseURI).href;
11
10
 
12
11
  export const importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1,6 +1,6 @@
1
1
  // Shim globals in esm bundle
2
- import path from "path";
3
- import { fileURLToPath } from "url";
2
+ import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
4
 
5
5
  const getFilename = () => fileURLToPath(import.meta.url);
6
6
  const getDirname = () => path.dirname(getFilename());
package/index.js CHANGED
@@ -116902,7 +116902,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
116902
116902
  var hardline3 = [hardlineWithoutBreakParent3, breakParent3];
116903
116903
  var literalline2 = [literallineWithoutBreakParent2, breakParent3];
116904
116904
  var cursor3 = { type: DOC_TYPE_CURSOR3 };
116905
- function join4(separator, docs) {
116905
+ function join5(separator, docs) {
116906
116906
  assertDoc3(separator);
116907
116907
  assertDocArray3(docs);
116908
116908
  const parts = [];
@@ -117300,7 +117300,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
117300
117300
  return mapDoc3(doc, (currentDoc) => cleanDocFn3(currentDoc));
117301
117301
  }
117302
117302
  function replaceEndOfLine2(doc, replacement = literalline2) {
117303
- return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join4(replacement, currentDoc.split("\n")) : currentDoc);
117303
+ return mapDoc3(doc, (currentDoc) => typeof currentDoc === "string" ? join5(replacement, currentDoc.split("\n")) : currentDoc);
117304
117304
  }
117305
117305
  function canBreakFn2(doc) {
117306
117306
  if (doc.type === DOC_TYPE_LINE3) {
@@ -117875,7 +117875,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
117875
117875
  };
117876
117876
  }
117877
117877
  var builders2 = {
117878
- join: join4,
117878
+ join: join5,
117879
117879
  line: line3,
117880
117880
  softline: softline2,
117881
117881
  hardline: hardline3,
@@ -143410,7 +143410,7 @@ var require_util2 = __commonJS({
143410
143410
  return path15;
143411
143411
  });
143412
143412
  exports2.normalize = normalize2;
143413
- function join4(aRoot, aPath) {
143413
+ function join5(aRoot, aPath) {
143414
143414
  if (aRoot === "") {
143415
143415
  aRoot = ".";
143416
143416
  }
@@ -143442,7 +143442,7 @@ var require_util2 = __commonJS({
143442
143442
  }
143443
143443
  return joined;
143444
143444
  }
143445
- exports2.join = join4;
143445
+ exports2.join = join5;
143446
143446
  exports2.isAbsolute = function(aPath) {
143447
143447
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
143448
143448
  };
@@ -143615,7 +143615,7 @@ var require_util2 = __commonJS({
143615
143615
  parsed.path = parsed.path.substring(0, index + 1);
143616
143616
  }
143617
143617
  }
143618
- sourceURL = join4(urlGenerate(parsed), sourceURL);
143618
+ sourceURL = join5(urlGenerate(parsed), sourceURL);
143619
143619
  }
143620
143620
  return normalize2(sourceURL);
143621
143621
  }
@@ -147307,14 +147307,14 @@ var require_path2 = __commonJS({
147307
147307
  return normalize2(path16.slice(0, endIndex));
147308
147308
  }
147309
147309
  exports2.dirname = dirname4;
147310
- function join4(p12, ...others) {
147310
+ function join5(p12, ...others) {
147311
147311
  if (others.length > 0) {
147312
147312
  return normalize2((p12 ? p12 + exports2.NormalizedSep : "") + others.join(exports2.NormalizedSep));
147313
147313
  } else {
147314
147314
  return p12;
147315
147315
  }
147316
147316
  }
147317
- exports2.join = join4;
147317
+ exports2.join = join5;
147318
147318
  function isAbsolute(p4) {
147319
147319
  return p4.startsWith(exports2.NormalizedSep);
147320
147320
  }
@@ -147349,7 +147349,7 @@ var require_path2 = __commonJS({
147349
147349
  if (isAbsolute(p22)) {
147350
147350
  return p22;
147351
147351
  } else {
147352
- return join4(p12, p22);
147352
+ return join5(p12, p22);
147353
147353
  }
147354
147354
  }
147355
147355
  exports2.resolve = resolve3;
@@ -164746,7 +164746,7 @@ var require_buffer_list = __commonJS({
164746
164746
  }
164747
164747
  }, {
164748
164748
  key: "join",
164749
- value: function join4(s) {
164749
+ value: function join5(s) {
164750
164750
  if (this.length === 0)
164751
164751
  return "";
164752
164752
  var p4 = this.head;
@@ -177364,7 +177364,7 @@ var require_util4 = __commonJS({
177364
177364
  return path15;
177365
177365
  }
177366
177366
  exports2.normalize = normalize2;
177367
- function join4(aRoot, aPath) {
177367
+ function join5(aRoot, aPath) {
177368
177368
  if (aRoot === "") {
177369
177369
  aRoot = ".";
177370
177370
  }
@@ -177396,7 +177396,7 @@ var require_util4 = __commonJS({
177396
177396
  }
177397
177397
  return joined;
177398
177398
  }
177399
- exports2.join = join4;
177399
+ exports2.join = join5;
177400
177400
  exports2.isAbsolute = function(aPath) {
177401
177401
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
177402
177402
  };
@@ -177569,7 +177569,7 @@ var require_util4 = __commonJS({
177569
177569
  parsed.path = parsed.path.substring(0, index + 1);
177570
177570
  }
177571
177571
  }
177572
- sourceURL = join4(urlGenerate(parsed), sourceURL);
177572
+ sourceURL = join5(urlGenerate(parsed), sourceURL);
177573
177573
  }
177574
177574
  return normalize2(sourceURL);
177575
177575
  }
@@ -419587,7 +419587,7 @@ var require_util7 = __commonJS({
419587
419587
  var normalize2 = createSafeHandler((url2) => {
419588
419588
  });
419589
419589
  exports2.normalize = normalize2;
419590
- function join4(aRoot, aPath) {
419590
+ function join5(aRoot, aPath) {
419591
419591
  const pathType = getURLType(aPath);
419592
419592
  const rootType = getURLType(aRoot);
419593
419593
  aRoot = ensureDirectory(aRoot);
@@ -419613,7 +419613,7 @@ var require_util7 = __commonJS({
419613
419613
  const newPath = withBase(aPath, withBase(aRoot, base));
419614
419614
  return computeRelativeURL(base, newPath);
419615
419615
  }
419616
- exports2.join = join4;
419616
+ exports2.join = join5;
419617
419617
  function relative2(rootURL, targetURL) {
419618
419618
  const result = relativeIfPossible(rootURL, targetURL);
419619
419619
  return typeof result === "string" ? result : normalize2(targetURL);
@@ -419643,9 +419643,9 @@ var require_util7 = __commonJS({
419643
419643
  }
419644
419644
  let url2 = normalize2(sourceURL || "");
419645
419645
  if (sourceRoot)
419646
- url2 = join4(sourceRoot, url2);
419646
+ url2 = join5(sourceRoot, url2);
419647
419647
  if (sourceMapURL)
419648
- url2 = join4(trimFilename(sourceMapURL), url2);
419648
+ url2 = join5(trimFilename(sourceMapURL), url2);
419649
419649
  return url2;
419650
419650
  }
419651
419651
  exports2.computeSourceURL = computeSourceURL;
@@ -421411,7 +421411,7 @@ var require_source_map3 = __commonJS({
421411
421411
  var require_native = __commonJS({
421412
421412
  "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
421413
421413
  var { existsSync: existsSync2 } = require("node:fs");
421414
- var { join: join4 } = require("node:path");
421414
+ var { join: join5 } = require("node:path");
421415
421415
  var { platform, arch, report } = require("node:process");
421416
421416
  var isMusl = () => !report.getReport().header.glibcVersionRuntime;
421417
421417
  var bindingsByPlatformAndArch = {
@@ -421485,7 +421485,7 @@ If this is important to you, please consider supporting Rollup to make a native
421485
421485
  }
421486
421486
  };
421487
421487
  var { parse: parse6, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
421488
- existsSync2(join4(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
421488
+ existsSync2(join5(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
421489
421489
  );
421490
421490
  module2.exports.parse = parse6;
421491
421491
  module2.exports.parseAsync = parseAsync;
@@ -455653,7 +455653,7 @@ var require_TransformerError = __commonJS({
455653
455653
  TransformerError2.from = function(method) {
455654
455654
  return function(errors) {
455655
455655
  var body = errors.map(function(e3) {
455656
- var subject = e3.explore.object === null ? "" : join4(e3.explore.object)(e3.explore.property);
455656
+ var subject = e3.explore.object === null ? "" : join5(e3.explore.object)(e3.explore.property);
455657
455657
  var type2 = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e3.name);
455658
455658
  return "- ".concat(type2, "\n").concat(e3.messages.map(function(msg) {
455659
455659
  return " - ".concat(msg);
@@ -455665,7 +455665,7 @@ var require_TransformerError = __commonJS({
455665
455665
  });
455666
455666
  };
455667
455667
  };
455668
- var join4 = function(object) {
455668
+ var join5 = function(object) {
455669
455669
  return function(key2) {
455670
455670
  if (key2 === null)
455671
455671
  return object.name;
@@ -461765,13 +461765,13 @@ var require_application_object = __commonJS({
461765
461765
  // swagger can't express patternProperties
461766
461766
  "x-typia-additionalProperties": extraProps.additionalProperties,
461767
461767
  "x-typia-patternProperties": extraProps.patternProperties,
461768
- additionalProperties: join4(options8)(components)(extraMeta)
461768
+ additionalProperties: join5(options8)(components)(extraMeta)
461769
461769
  } : {});
461770
461770
  };
461771
461771
  };
461772
461772
  };
461773
461773
  };
461774
- var join4 = function(options8) {
461774
+ var join5 = function(options8) {
461775
461775
  return function(components) {
461776
461776
  return function(extra) {
461777
461777
  var _a3;
@@ -474756,26 +474756,16 @@ ${options8.banner}
474756
474756
  };
474757
474757
  function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
474758
474758
  const config = (0, import_typescript.readConfigFile)(options8.tsConfig, import_typescript.sys.readFile).config;
474759
- const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(
474760
- {
474761
- ...config,
474762
- compilerOptions: {
474763
- ...config.compilerOptions,
474764
- outDir: outputPath,
474765
- noEmit: false,
474766
- esModuleInterop: true,
474767
- incremental: false,
474768
- noUnusedLocals: false,
474769
- emitDeclarationOnly: true,
474770
- declaration: true,
474771
- declarationMap: true,
474772
- declarationDir: (0, import_devkit3.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
474773
- },
474774
- include: ["**/*"]
474775
- },
474776
- import_typescript.sys,
474777
- (0, import_node_path2.dirname)(options8.tsConfig)
474778
- );
474759
+ const tsConfig = (0, import_typescript.parseJsonConfigFileContent)(config, import_typescript.sys, (0, import_node_path2.dirname)(options8.tsConfig), {
474760
+ outDir: outputPath,
474761
+ noEmit: false,
474762
+ esModuleInterop: true,
474763
+ noUnusedLocals: false,
474764
+ emitDeclarationOnly: true,
474765
+ declaration: true,
474766
+ declarationMap: true,
474767
+ declarationDir: (0, import_node_path2.join)(workspaceRoot, "tmp", ".tsup", "declaration")
474768
+ });
474779
474769
  tsConfig.options.pathsBasePath = workspaceRoot;
474780
474770
  if ((config.compilerOptions?.incremental || tsConfig.options.incremental) && !tsConfig.options.tsBuildInfoFile) {
474781
474771
  tsConfig.options.tsBuildInfoFile = (0, import_devkit3.joinPathFragments)(outputPath, "tsconfig.tsbuildinfo");
@@ -481364,6 +481354,7 @@ ${externalDependencies.map((dep) => {
481364
481354
  (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.js"),
481365
481355
  (0, import_devkit4.joinPathFragments)(workspaceRoot, options8.outputPath, "src/**/*.jsx")
481366
481356
  ]);
481357
+ options8.verbose = options8.verbose || getLogLevel(config?.logLevel) >= LogLevel.DEBUG;
481367
481358
  await Promise.allSettled(
481368
481359
  files.map(
481369
481360
  async (file) => (0, import_fs_extra.writeFile)(
@@ -481432,7 +481423,7 @@ var neutralConfig = ({
481432
481423
  external,
481433
481424
  banner = {},
481434
481425
  platform = "neutral",
481435
- verbose = false,
481426
+ verbose = true,
481436
481427
  metafile = true,
481437
481428
  skipNativeModulesPlugin = false,
481438
481429
  define: define2,
@@ -481562,7 +481553,7 @@ function nodeConfig({
481562
481553
  external,
481563
481554
  banner = {},
481564
481555
  platform = "node",
481565
- verbose = false,
481556
+ verbose = true,
481566
481557
  apiReport = true,
481567
481558
  docModel = true,
481568
481559
  tsdocMetadata = true,
@@ -481691,7 +481682,7 @@ var browserConfig = ({
481691
481682
  external,
481692
481683
  banner = {},
481693
481684
  platform = "browser",
481694
- verbose = false,
481685
+ verbose = true,
481695
481686
  metafile = true,
481696
481687
  skipNativeModulesPlugin = false,
481697
481688
  define: define2,