@storm-software/workspace-tools 1.13.26 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70818,6 +70818,7 @@ function modernConfig({
70818
70818
  define: define2,
70819
70819
  env: env2,
70820
70820
  tsCdnStorage,
70821
+ plugins,
70821
70822
  dtsTsConfig
70822
70823
  }) {
70823
70824
  let outputPath = (0, import_path2.join)(outDir, "dist", "modern");
@@ -70864,6 +70865,7 @@ function modernConfig({
70864
70865
  sourcemap: debug,
70865
70866
  clean: false,
70866
70867
  tsCdnStorage,
70868
+ plugins,
70867
70869
  outExtension
70868
70870
  };
70869
70871
  }
@@ -70881,6 +70883,7 @@ function legacyConfig({
70881
70883
  define: define2,
70882
70884
  env: env2,
70883
70885
  tsCdnStorage,
70886
+ plugins,
70884
70887
  dtsTsConfig
70885
70888
  }) {
70886
70889
  let outputPath = (0, import_path2.join)(outDir, "dist", "legacy");
@@ -70919,6 +70922,7 @@ function legacyConfig({
70919
70922
  sourcemap: debug,
70920
70923
  clean: false,
70921
70924
  tsCdnStorage,
70925
+ plugins,
70922
70926
  outExtension
70923
70927
  };
70924
70928
  }
@@ -70938,6 +70942,7 @@ function workerConfig({
70938
70942
  define: define2,
70939
70943
  env: env2,
70940
70944
  tsCdnStorage,
70945
+ plugins,
70941
70946
  dtsTsConfig
70942
70947
  }) {
70943
70948
  return {
@@ -70976,6 +70981,7 @@ function workerConfig({
70976
70981
  sourcemap: debug,
70977
70982
  clean: false,
70978
70983
  tsCdnStorage,
70984
+ plugins,
70979
70985
  outExtension
70980
70986
  };
70981
70987
  }
@@ -70995,6 +71001,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
70995
71001
  env: env2,
70996
71002
  verbose,
70997
71003
  dtsTsConfig,
71004
+ plugins,
70998
71005
  ...rest
70999
71006
  }) {
71000
71007
  const entry = globSync(
@@ -71038,6 +71045,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
71038
71045
  workspaceRoot
71039
71046
  }),
71040
71047
  options,
71048
+ plugins,
71041
71049
  dtsTsConfig
71042
71050
  };
71043
71051
  if (platform === "worker") {
@@ -71045,10 +71053,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
71045
71053
  }
71046
71054
  return (0, import_tsup.defineConfig)([modernConfig(params), legacyConfig(params)]);
71047
71055
  }
71048
- var outExtension = ({ options, format, pkgType }) => {
71049
- console.log(options);
71050
- console.log(format);
71051
- console.log(pkgType);
71056
+ var outExtension = ({ format }) => {
71052
71057
  let jsExtension = ".js";
71053
71058
  let dtsExtension = ".d.ts";
71054
71059
  if (format === "cjs") {
@@ -32,4 +32,5 @@ export type TsupExecutorSchema = Omit<
32
32
  tsdocMetadata?: boolean;
33
33
  includeSrc?: boolean;
34
34
  platform?: Platform;
35
+ plugins?: any[];
35
36
  };
@@ -122,6 +122,14 @@
122
122
  "description": "Additional options to pass to tsup. See https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e.",
123
123
  "additionalProperties": true,
124
124
  "x-priority": "important"
125
+ },
126
+ "plugins": {
127
+ "type": "array",
128
+ "description": "List of ESBuild plugins to use during processing",
129
+ "default": [],
130
+ "items": {
131
+ "type": "object"
132
+ }
125
133
  }
126
134
  },
127
135
  "required": ["tsConfig", "platform", "banner"],
@@ -18235,7 +18235,8 @@ var require_devkit = __commonJS({
18235
18235
  // packages/workspace-tools/src/generators/preset/generator.ts
18236
18236
  var generator_exports = {};
18237
18237
  __export(generator_exports, {
18238
- default: () => generator_default
18238
+ default: () => generator_default,
18239
+ presetGenerator: () => presetGenerator
18239
18240
  });
18240
18241
  module.exports = __toCommonJS(generator_exports);
18241
18242
  var import_devkit = __toESM(require_devkit());
@@ -18247,7 +18248,7 @@ var nodeVersion = "18.17.1";
18247
18248
  var pnpmVersion = "8.10.2";
18248
18249
 
18249
18250
  // packages/workspace-tools/src/generators/preset/generator.ts
18250
- async function generator_default(tree, options) {
18251
+ async function presetGenerator(tree, options) {
18251
18252
  try {
18252
18253
  const projectRoot = `.`;
18253
18254
  options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
@@ -18472,6 +18473,11 @@ async function generator_default(tree, options) {
18472
18473
  console.error(error);
18473
18474
  }
18474
18475
  }
18476
+ var generator_default = presetGenerator;
18477
+ // Annotate the CommonJS export names for ESM import in node:
18478
+ 0 && (module.exports = {
18479
+ presetGenerator
18480
+ });
18475
18481
  /*! Bundled license information:
18476
18482
 
18477
18483
  ejs/lib/ejs.js: