@sanity/pkg-utils 5.1.8 → 5.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "5.1.8",
3
+ "version": "5.1.10",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "browserslist": "extends @sanity/browserslist-config",
61
61
  "dependencies": {
62
- "@babel/core": "^7.24.3",
62
+ "@babel/core": "^7.24.4",
63
63
  "@babel/types": "^7.24.0",
64
64
  "@microsoft/api-extractor": "7.43.0",
65
65
  "@microsoft/tsdoc-config": "^0.16.2",
@@ -132,7 +132,7 @@
132
132
  "typescript": "5.4.2",
133
133
  "vitest": "^1.4.0",
134
134
  "vitest-github-actions-reporter": "^0.11.1",
135
- "@sanity/pkg-utils": "5.1.8"
135
+ "@sanity/pkg-utils": "5.1.10"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "typescript": "5.4.2"
@@ -1,6 +1,6 @@
1
- import {PkgConfigOptions} from './types'
1
+ import type {PkgConfigOptions} from './types'
2
2
 
3
3
  /** @public */
4
- export function defineConfig(configOptions: PkgConfigOptions): PkgConfigOptions {
4
+ export function defineConfig<const T extends PkgConfigOptions>(configOptions: T): T {
5
5
  return configOptions
6
6
  }
@@ -196,6 +196,7 @@ export function resolveRollupConfig(
196
196
  treeshake: {
197
197
  preset: 'recommended',
198
198
  propertyReadSideEffects: false,
199
+ moduleSideEffects: 'no-external',
199
200
  ...config?.rollup?.treeshake,
200
201
  },
201
202
  experimentalLogSideEffects: config?.rollup?.experimentalLogSideEffects,