@sanity/pkg-utils 5.1.4 → 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/dist/cli.cjs CHANGED
@@ -3,7 +3,7 @@ var cac = require("cac");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
6
- var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.1.4";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.1.5";
7
7
  const cli = cac__default.default();
8
8
  cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
9
9
  const { checkAction } = await Promise.resolve().then(function() {
package/dist/index.d.cts CHANGED
@@ -299,6 +299,10 @@ export declare interface PkgConfigOptions {
299
299
  }
300
300
  /**
301
301
  * Packages to exclude from bundles.
302
+ * Provide an array to merge with default exclusions, use a function to replace them:
303
+ * ```
304
+ * exclude: (prev) => prev.filter(package => package !== 'foo')
305
+ * ```
302
306
  */
303
307
  external?: PkgConfigProperty<string[]>
304
308
  /**
package/dist/index.d.ts CHANGED
@@ -299,6 +299,10 @@ export declare interface PkgConfigOptions {
299
299
  }
300
300
  /**
301
301
  * Packages to exclude from bundles.
302
+ * Provide an array to merge with default exclusions, use a function to replace them:
303
+ * ```
304
+ * exclude: (prev) => prev.filter(package => package !== 'foo')
305
+ * ```
302
306
  */
303
307
  external?: PkgConfigProperty<string[]>
304
308
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -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.4"
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
  /**