@storm-software/workspace-tools 1.43.18 → 1.43.20

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,17 @@
1
+ ## [1.43.19](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.18...workspace-tools-v1.43.19) (2024-01-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Ensure correct minify option is passed into tsup build ([0093304](https://github.com/storm-software/storm-ops/commit/00933044d216fa99bf64de883674fab24f624fbd))
7
+
8
+ ## [1.43.18](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.17...workspace-tools-v1.43.18) (2024-01-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Removed call to transformer in nx typescript options formatter ([fce06b5](https://github.com/storm-software/storm-ops/commit/fce06b5ea3a5e8bea5b718f181bd6a0c0c0288a6))
14
+
1
15
  ## [1.43.17](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.43.16...workspace-tools-v1.43.17) (2024-01-17)
2
16
 
3
17
 
package/index.js CHANGED
@@ -73213,7 +73213,7 @@ var require_util5 = __commonJS({
73213
73213
  var normalize2 = createSafeHandler((url) => {
73214
73214
  });
73215
73215
  exports.normalize = normalize2;
73216
- function join7(aRoot, aPath) {
73216
+ function join6(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 = join7;
73242
+ exports.join = join6;
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 = join7(sourceRoot, url);
73272
+ url = join6(sourceRoot, url);
73273
73273
  if (sourceMapURL)
73274
- url = join7(trimFilename(sourceMapURL), url);
73274
+ url = join6(trimFilename(sourceMapURL), url);
73275
73275
  return url;
73276
73276
  }
73277
73277
  exports.computeSourceURL = computeSourceURL;
@@ -75037,7 +75037,7 @@ var require_source_map = __commonJS({
75037
75037
  var require_native = __commonJS({
75038
75038
  "node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/native.js"(exports, module2) {
75039
75039
  var { existsSync: existsSync5 } = require("node:fs");
75040
- var { join: join7 } = require("node:path");
75040
+ var { join: join6 } = 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 } = existsSync5(join7(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
75090
+ var { parse, parseAsync, xxhashBase64Url } = existsSync5(join6(__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;
@@ -111229,7 +111229,7 @@ var require_TransformerError = __commonJS({
111229
111229
  TransformerError2.from = function(method) {
111230
111230
  return function(errors) {
111231
111231
  var body = errors.map(function(e) {
111232
- var subject = e.explore.object === null ? "" : join7(e.explore.object)(e.explore.property);
111232
+ var subject = e.explore.object === null ? "" : join6(e.explore.object)(e.explore.property);
111233
111233
  var type = "".concat(subject.length ? "".concat(subject, ": ") : "").concat(e.name);
111234
111234
  return "- ".concat(type, "\n").concat(e.messages.map(function(msg) {
111235
111235
  return " - ".concat(msg);
@@ -111241,7 +111241,7 @@ var require_TransformerError = __commonJS({
111241
111241
  });
111242
111242
  };
111243
111243
  };
111244
- var join7 = function(object) {
111244
+ var join6 = function(object) {
111245
111245
  return function(key) {
111246
111246
  if (key === null)
111247
111247
  return object.name;
@@ -117321,13 +117321,13 @@ var require_application_object = __commonJS({
117321
117321
  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 ? {
117322
117322
  "x-typia-additionalProperties": extraProps.additionalProperties,
117323
117323
  "x-typia-patternProperties": extraProps.patternProperties,
117324
- additionalProperties: join7(options)(components)(extraMeta)
117324
+ additionalProperties: join6(options)(components)(extraMeta)
117325
117325
  } : {});
117326
117326
  };
117327
117327
  };
117328
117328
  };
117329
117329
  };
117330
- var join7 = function(options) {
117330
+ var join6 = function(options) {
117331
117331
  return function(components) {
117332
117332
  return function(extra) {
117333
117333
  var _a;
@@ -130874,6 +130874,7 @@ function defaultConfig({
130874
130874
  plugins,
130875
130875
  generatePackageJson,
130876
130876
  dtsTsConfig,
130877
+ minify = false,
130877
130878
  getTransform
130878
130879
  }) {
130879
130880
  return {
@@ -130909,7 +130910,7 @@ function defaultConfig({
130909
130910
  }
130910
130911
  }
130911
130912
  },
130912
- minify: false,
130913
+ minify,
130913
130914
  apiReport,
130914
130915
  docModel,
130915
130916
  tsdocMetadata,
@@ -137710,9 +137711,9 @@ ${Object.keys(options).map(
137710
137711
  if (!result.success) {
137711
137712
  throw new Error("The Build process failed trying to copy assets");
137712
137713
  }
137713
- const pathToPackageJson = (0, import_node_path3.join)(context.root, projectRoot, "package.json");
137714
+ const pathToPackageJson = (0, import_devkit3.joinPathFragments)(context.root, projectRoot, "package.json");
137714
137715
  const packageJson = (0, import_fileutils.fileExists)(pathToPackageJson) ? (0, import_devkit3.readJsonFile)(pathToPackageJson) : { name: context.projectName, version: "0.0.1" };
137715
- const workspacePackageJson = (0, import_devkit3.readJsonFile)((0, import_node_path3.join)(workspaceRoot, "package.json"));
137716
+ const workspacePackageJson = (0, import_devkit3.readJsonFile)((0, import_devkit3.joinPathFragments)(workspaceRoot, "package.json"));
137716
137717
  options.external = options.external || [];
137717
137718
  if (workspacePackageJson?.dependencies) {
137718
137719
  options.external = Object.keys(workspacePackageJson?.dependencies).reduce(
@@ -137870,11 +137871,11 @@ ${externalDependencies.map((dep) => {
137870
137871
  },
137871
137872
  ...(options.additionalEntryPoints ?? []).map((entryPoint) => ({
137872
137873
  [removeExtension(entryPoint).replace(sourceRoot, "")]: {
137873
- types: (0, import_node_path3.join)(
137874
+ types: (0, import_devkit3.joinPathFragments)(
137874
137875
  `./${distPaths[0]}`,
137875
137876
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.d.ts`
137876
137877
  ),
137877
- default: (0, import_node_path3.join)(
137878
+ default: (0, import_devkit3.joinPathFragments)(
137878
137879
  `./${distPaths[0]}`,
137879
137880
  `${removeExtension(entryPoint.replace(sourceRoot, ""))}.js`
137880
137881
  )
@@ -137920,7 +137921,7 @@ ${externalDependencies.map((dep) => {
137920
137921
  if (distSrc.startsWith("/")) {
137921
137922
  distSrc = distSrc.substring(1);
137922
137923
  }
137923
- packageJson.source ??= `${(0, import_node_path3.join)(distSrc, "index.ts").replaceAll("\\", "/")}`;
137924
+ packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
137924
137925
  }
137925
137926
  packageJson.sideEffects ??= false;
137926
137927
  packageJson.files ??= ["dist/**/*"];
@@ -137938,8 +137939,8 @@ ${externalDependencies.map((dep) => {
137938
137939
  packageJson.license ??= workspacePackageJson.license;
137939
137940
  packageJson.keywords ??= workspacePackageJson.keywords;
137940
137941
  packageJson.repository ??= workspacePackageJson.repository;
137941
- packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path3.join)("packages", context.projectName);
137942
- const packageJsonPath = (0, import_node_path3.join)(context.root, options.outputPath, "package.json");
137942
+ packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_devkit3.joinPathFragments)("packages", context.projectName);
137943
+ const packageJsonPath = (0, import_devkit3.joinPathFragments)(context.root, options.outputPath, "package.json");
137943
137944
  writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
137944
137945
  (0, import_node_fs2.writeFileSync)(
137945
137946
  packageJsonPath,
@@ -138071,7 +138072,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
138071
138072
  emitDeclarationOnly: true,
138072
138073
  declaration: true,
138073
138074
  declarationMap: true,
138074
- declarationDir: (0, import_node_path3.join)(workspaceRoot, "tmp", ".tsup", "declaration")
138075
+ declarationDir: (0, import_devkit3.joinPathFragments)(workspaceRoot, "tmp", ".tsup", "declaration")
138075
138076
  }
138076
138077
  },
138077
138078
  ts.sys,
@@ -138084,18 +138085,13 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
138084
138085
  return tsConfig;
138085
138086
  }
138086
138087
  var build = async (options, config) => {
138087
- try {
138088
- if (Array.isArray(options)) {
138089
- await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
138090
- } else {
138091
- if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
138092
- console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
138093
- }
138094
- await (0, import_tsup.build)(options);
138088
+ if (Array.isArray(options)) {
138089
+ await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
138090
+ } else {
138091
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
138092
+ console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
138095
138093
  }
138096
- } catch (e) {
138097
- console.error("\u26A0\uFE0F A failure occured during the Tsup Build executor");
138098
- console.error(e);
138094
+ await (0, import_tsup.build)(options);
138099
138095
  }
138100
138096
  };
138101
138097
  var applyDefaultOptions = (options) => {
@@ -138113,6 +138109,7 @@ var applyDefaultOptions = (options) => {
138113
138109
  options.assets ??= [];
138114
138110
  options.plugins ??= [];
138115
138111
  options.includeSrc ??= false;
138112
+ options.minify ??= false;
138116
138113
  options.clean ??= true;
138117
138114
  options.bundle ??= true;
138118
138115
  options.debug ??= false;
@@ -138174,6 +138171,7 @@ var neutralConfig = ({
138174
138171
  plugins,
138175
138172
  generatePackageJson,
138176
138173
  dtsTsConfig,
138174
+ minify = false,
138177
138175
  getTransform
138178
138176
  }) => {
138179
138177
  const outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist");
@@ -138200,7 +138198,7 @@ var neutralConfig = ({
138200
138198
  define: define2,
138201
138199
  env: env2,
138202
138200
  dts: false,
138203
- minify: false,
138201
+ minify,
138204
138202
  experimentalDts: {
138205
138203
  entry,
138206
138204
  compilerOptions: {
@@ -138221,7 +138219,7 @@ var neutralConfig = ({
138221
138219
  outExtension,
138222
138220
  getTransform
138223
138221
  };
138224
- if (!debug) {
138222
+ if (!debug || minify) {
138225
138223
  options.minify = "terser";
138226
138224
  options.terserOptions = {
138227
138225
  compress: true,
@@ -138301,6 +138299,7 @@ function nodeConfig({
138301
138299
  plugins,
138302
138300
  generatePackageJson,
138303
138301
  dtsTsConfig,
138302
+ minify = false,
138304
138303
  getTransform
138305
138304
  }) {
138306
138305
  const options = {
@@ -138326,7 +138325,7 @@ function nodeConfig({
138326
138325
  define: define2,
138327
138326
  env: env2,
138328
138327
  dts: false,
138329
- minify: false,
138328
+ minify,
138330
138329
  experimentalDts: {
138331
138330
  entry,
138332
138331
  compilerOptions: {
@@ -138347,7 +138346,7 @@ function nodeConfig({
138347
138346
  outExtension,
138348
138347
  getTransform
138349
138348
  };
138350
- if (!debug) {
138349
+ if (!debug || minify) {
138351
138350
  options.minify = "terser";
138352
138351
  options.terserOptions = {
138353
138352
  compress: true,