@storm-software/workspace-tools 1.30.12 → 1.30.14

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.30.13](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.30.12...workspace-tools-v1.30.13) (2023-12-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Resolve issue with type generations ([0873d59](https://github.com/storm-software/storm-ops/commit/0873d5947d6ef4540ccb55e0363801eb6ec3af7a))
7
+
8
+ ## [1.30.12](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.30.11...workspace-tools-v1.30.12) (2023-12-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **workspace-tools:** Resolved issue with bad `entry` option passed to tsup ([39c1ceb](https://github.com/storm-software/storm-ops/commit/39c1ceb98f99f722fe3bce62d6d0154bfd097d00))
14
+
1
15
  ## [1.30.11](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.30.10...workspace-tools-v1.30.11) (2023-12-15)
2
16
 
3
17
 
package/index.js CHANGED
@@ -117234,7 +117234,7 @@ function modernConfig({
117234
117234
  "ios15",
117235
117235
  "opera77",
117236
117236
  "esnext"
117237
- ] : ["esnext", "node"],
117237
+ ] : ["esnext", "node20"],
117238
117238
  tsconfig,
117239
117239
  splitting,
117240
117240
  generatePackageJson,
@@ -117616,15 +117616,15 @@ ${externalDependencies.map((dep) => {
117616
117616
  if (!ret[packageJsonKey]) {
117617
117617
  ret[packageJsonKey] = {
117618
117618
  import: {
117619
- types: `./dist/modern/${key}.d.ts`,
117619
+ types: "./dist/modern/index.d.ts",
117620
117620
  default: `./dist/modern/${key}.js`
117621
117621
  },
117622
117622
  require: {
117623
- types: `./dist/modern/${key}.d.cts`,
117623
+ types: "./dist/modern/index.d.cts",
117624
117624
  default: `./dist/modern/${key}.cjs`
117625
117625
  },
117626
117626
  default: {
117627
- types: `./dist/modern/${key}.d.ts`,
117627
+ types: "./dist/modern/index.d.ts",
117628
117628
  default: `./dist/modern/${key}.js`
117629
117629
  }
117630
117630
  };
@@ -117719,58 +117719,50 @@ ${(0, import_fs3.readFileSync)(file, "utf-8")}`,
117719
117719
  })
117720
117720
  );
117721
117721
  options.plugins.push(environmentPlugin(stormEnv));
117722
- console.log("\u26A1 Building with the following entry points: ", entry);
117723
- const config = (0, import_tsup.defineConfig)(
117724
- Object.keys(entry).reduce((ret, key) => {
117725
- const getConfigOptions = {
117726
- ...options,
117727
- define: {
117728
- __STORM_CONFIG: JSON.stringify(stormEnv)
117729
- },
117730
- env: {
117731
- __STORM_CONFIG: JSON.stringify(stormEnv),
117732
- ...stormEnv
117733
- },
117734
- dtsTsConfig: getNormalizedTsConfig(
117722
+ const getConfigOptions = {
117723
+ ...options,
117724
+ define: {
117725
+ __STORM_CONFIG: JSON.stringify(stormEnv)
117726
+ },
117727
+ env: {
117728
+ __STORM_CONFIG: JSON.stringify(stormEnv),
117729
+ ...stormEnv
117730
+ },
117731
+ dtsTsConfig: getNormalizedTsConfig(
117732
+ context.root,
117733
+ options.outputPath,
117734
+ (0, import_tsc.createTypeScriptCompilationOptions)(
117735
+ (0, import_normalize_options.normalizeOptions)(
117736
+ {
117737
+ ...options,
117738
+ watch: false,
117739
+ main: options.entry,
117740
+ transformers: []
117741
+ },
117735
117742
  context.root,
117736
- options.outputPath,
117737
- (0, import_tsc.createTypeScriptCompilationOptions)(
117738
- (0, import_normalize_options.normalizeOptions)(
117739
- {
117740
- ...options,
117741
- watch: false,
117742
- main: entry[key],
117743
- transformers: []
117744
- },
117745
- context.root,
117746
- sourceRoot,
117747
- workspaceRoot
117748
- ),
117749
- context
117750
- )
117743
+ sourceRoot,
117744
+ workspaceRoot
117751
117745
  ),
117752
- banner: options.banner ? {
117753
- js: `${options.banner}
117746
+ context
117747
+ )
117748
+ ),
117749
+ banner: options.banner ? {
117750
+ js: `${options.banner}
117754
117751
 
117755
117752
  `,
117756
- css: `/*
117753
+ css: `/*
117757
117754
  ${options.banner}
117758
117755
  */
117759
117756
 
117760
117757
  `
117761
- } : void 0,
117762
- outputPath: options.outputPath,
117763
- entry: { [key]: entry[key] }
117764
- };
117765
- ret.push(
117766
- getConfig(context.root, projectRoot, legacyConfig, getConfigOptions)
117767
- );
117768
- ret.push(
117769
- getConfig(context.root, projectRoot, modernConfig, getConfigOptions)
117770
- );
117771
- return ret;
117772
- }, [])
117773
- );
117758
+ } : void 0,
117759
+ outputPath: options.outputPath,
117760
+ entry
117761
+ };
117762
+ const config = (0, import_tsup.defineConfig)([
117763
+ getConfig(context.root, projectRoot, legacyConfig, getConfigOptions),
117764
+ getConfig(context.root, projectRoot, modernConfig, getConfigOptions)
117765
+ ]);
117774
117766
  if (typeof config === "function") {
117775
117767
  await build(await Promise.resolve(config({})));
117776
117768
  } else {