@sanity/pkg-utils 5.1.3 → 5.1.5

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.3",
3
+ "version": "5.1.5",
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.1",
62
+ "@babel/core": "^7.24.3",
63
63
  "@babel/types": "^7.24.0",
64
64
  "@microsoft/api-extractor": "7.43.0",
65
65
  "@microsoft/tsdoc-config": "^0.16.2",
@@ -87,11 +87,11 @@
87
87
  "parse-git-config": "^3.0.0",
88
88
  "pkg-up": "^3.1.0",
89
89
  "prettier": "^3.2.5",
90
- "prettier-plugin-packagejson": "^2.4.12",
90
+ "prettier-plugin-packagejson": "^2.4.14",
91
91
  "pretty-bytes": "^5.6.0",
92
92
  "prompts": "^2.4.2",
93
93
  "rimraf": "^4.4.1",
94
- "rollup": "^4.13.0",
94
+ "rollup": "^4.13.2",
95
95
  "rollup-plugin-esbuild": "^6.1.1",
96
96
  "rxjs": "^7.8.1",
97
97
  "treeify": "^1.1.0",
@@ -111,8 +111,8 @@
111
111
  "@types/rimraf": "^3.0.2",
112
112
  "@types/treeify": "^1.0.3",
113
113
  "@types/uuid": "^9.0.8",
114
- "@typescript-eslint/eslint-plugin": "^7.3.1",
115
- "@typescript-eslint/parser": "^7.3.1",
114
+ "@typescript-eslint/eslint-plugin": "^7.5.0",
115
+ "@typescript-eslint/parser": "^7.5.0",
116
116
  "browserslist-to-esbuild": "2.1.1",
117
117
  "commitizen": "^4.3.0",
118
118
  "cpx": "^1.5.0",
@@ -132,12 +132,12 @@
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.3"
135
+ "@sanity/pkg-utils": "5.1.5"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "typescript": "5.4.2"
139
139
  },
140
- "packageManager": "pnpm@8.15.5",
140
+ "packageManager": "pnpm@8.15.6",
141
141
  "engines": {
142
142
  "node": ">=16.0.0"
143
143
  },
@@ -93,6 +93,10 @@ export interface PkgConfigOptions {
93
93
  }
94
94
  /**
95
95
  * Packages to exclude from bundles.
96
+ * Provide an array to merge with default exclusions, use a function to replace them:
97
+ * ```
98
+ * exclude: (prev) => prev.filter(package => package !== 'foo')
99
+ * ```
96
100
  */
97
101
  external?: PkgConfigProperty<string[]>
98
102
  /**
@@ -207,7 +207,7 @@ export function resolveRollupConfig(
207
207
  entryFileNames,
208
208
  esModule: true,
209
209
  format,
210
- interop: 'auto',
210
+ interop: 'compat',
211
211
  sourcemap: config?.sourcemap ?? true,
212
212
  hoistTransitiveImports: false,
213
213
  ...config?.rollup?.output,