@sanity/pkg-utils 7.0.3 → 7.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "7.0.3",
3
+ "version": "7.1.0",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -67,17 +67,17 @@
67
67
  "browserslist": "extends @sanity/browserslist-config",
68
68
  "prettier": "@sanity/prettier-config",
69
69
  "dependencies": {
70
- "@babel/core": "^7.26.7",
70
+ "@babel/core": "^7.26.10",
71
71
  "@babel/preset-typescript": "^7.26.0",
72
- "@babel/types": "^7.26.7",
73
- "@microsoft/api-extractor": "7.49.1",
72
+ "@babel/types": "^7.26.10",
73
+ "@microsoft/api-extractor": "7.52.1",
74
74
  "@microsoft/tsdoc-config": "0.17.1",
75
- "@optimize-lodash/rollup-plugin": "5.0.0",
75
+ "@optimize-lodash/rollup-plugin": "5.0.2",
76
76
  "@rollup/plugin-alias": "^5.1.1",
77
77
  "@rollup/plugin-babel": "^6.0.4",
78
- "@rollup/plugin-commonjs": "^28.0.2",
78
+ "@rollup/plugin-commonjs": "^28.0.3",
79
79
  "@rollup/plugin-json": "^6.1.0",
80
- "@rollup/plugin-node-resolve": "^16.0.0",
80
+ "@rollup/plugin-node-resolve": "^16.0.1",
81
81
  "@rollup/plugin-replace": "^6.0.2",
82
82
  "@rollup/plugin-terser": "^0.4.4",
83
83
  "@sanity/browserslist-config": "^1.0.5",
@@ -85,33 +85,33 @@
85
85
  "cac": "^6.7.14",
86
86
  "chalk": "^4.1.2",
87
87
  "chokidar": "^4.0.3",
88
- "esbuild": "^0.24.2",
88
+ "esbuild": "^0.25.1",
89
89
  "esbuild-register": "^3.6.0",
90
90
  "find-config": "^1.0.0",
91
91
  "get-latest-version": "^5.1.0",
92
- "git-url-parse": "^16.0.0",
92
+ "git-url-parse": "^16.0.1",
93
93
  "globby": "^11.1.0",
94
94
  "jsonc-parser": "^3.3.1",
95
95
  "mkdirp": "^3.0.1",
96
96
  "outdent": "^0.8.0",
97
97
  "parse-git-config": "^3.0.0",
98
98
  "pkg-up": "^3.1.0",
99
- "prettier": "^3.4.2",
99
+ "prettier": "^3.5.3",
100
100
  "pretty-bytes": "^5.6.0",
101
101
  "prompts": "^2.4.2",
102
- "recast": "0.23.9",
102
+ "recast": "0.23.11",
103
103
  "rimraf": "^4.4.1",
104
- "rollup": "^4.32.0",
105
- "rollup-plugin-esbuild": "^6.1.1",
106
- "rxjs": "^7.8.1",
104
+ "rollup": "^4.35.0",
105
+ "rollup-plugin-esbuild": "^6.2.1",
106
+ "rxjs": "^7.8.2",
107
107
  "treeify": "^1.1.0",
108
- "uuid": "^11.0.5",
109
- "zod": "3.24.1",
108
+ "uuid": "^11.1.0",
109
+ "zod": "3.24.2",
110
110
  "zod-validation-error": "3.4.0"
111
111
  },
112
112
  "devDependencies": {
113
- "@commitlint/cli": "^19.6.1",
114
- "@commitlint/config-conventional": "^19.6.0",
113
+ "@commitlint/cli": "^19.8.0",
114
+ "@commitlint/config-conventional": "^19.8.0",
115
115
  "@sanity/prettier-config": "^1.0.3",
116
116
  "@types/babel__core": "^7.20.5",
117
117
  "@types/cpx": "^1.5.5",
@@ -124,14 +124,14 @@
124
124
  "@types/semver": "^7.5.8",
125
125
  "@types/treeify": "^1.0.3",
126
126
  "@types/uuid": "^10.0.0",
127
- "@typescript-eslint/eslint-plugin": "^7.18.0",
128
- "@typescript-eslint/parser": "^7.18.0",
127
+ "@typescript-eslint/eslint-plugin": "^8.26.1",
128
+ "@typescript-eslint/parser": "^8.26.1",
129
129
  "browserslist-to-esbuild": "2.1.1",
130
130
  "commitizen": "^4.3.1",
131
131
  "cpx": "^1.5.0",
132
132
  "cz-conventional-changelog": "^3.3.0",
133
133
  "eslint": "^8.57.1",
134
- "eslint-config-prettier": "^9.1.0",
134
+ "eslint-config-prettier": "^10.1.1",
135
135
  "eslint-plugin-import": "^2.31.0",
136
136
  "eslint-plugin-prettier": "^5.2.3",
137
137
  "eslint-plugin-simple-import-sort": "^12.1.1",
@@ -142,13 +142,13 @@
142
142
  "rollup-plugin-visualizer": "^5.13.1",
143
143
  "semver": "^7.6.0",
144
144
  "ts-node": "^10.9.2",
145
- "typescript": "5.7.3",
146
- "vitest": "^3.0.4",
147
- "@sanity/pkg-utils": "7.0.3"
145
+ "typescript": "5.8.2",
146
+ "vitest": "^3.0.8",
147
+ "@sanity/pkg-utils": "7.1.0"
148
148
  },
149
149
  "peerDependencies": {
150
150
  "babel-plugin-react-compiler": "*",
151
- "typescript": "5.4.x || 5.5.x || 5.6.x || 5.7.x"
151
+ "typescript": "5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x"
152
152
  },
153
153
  "peerDependenciesMeta": {
154
154
  "babel-plugin-react-compiler": {
package/src/node/check.ts CHANGED
@@ -120,6 +120,7 @@ async function checkExports(
120
120
  }
121
121
 
122
122
  const esbuildWarnings = esbuildResult.warnings.filter((msg) => {
123
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
123
124
  !(msg.detail || msg.text).includes(`does not affect esbuild's own target setting`)
124
125
  })
125
126
 
@@ -31,7 +31,7 @@ export async function loadConfig(options: {cwd: string}): Promise<PkgConfigOptio
31
31
 
32
32
  const {unregister} = globalThis.__DEV__ ? {unregister: () => undefined} : register(esbuildOptions)
33
33
 
34
- // eslint-disable-next-line @typescript-eslint/no-var-requires
34
+ // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
35
35
  const mod = require(configFile)
36
36
 
37
37
  unregister()
@@ -6,7 +6,7 @@ export function fileExists(filePath: string): boolean {
6
6
  statSync(filePath)
7
7
 
8
8
  return true
9
- } catch (_) {
9
+ } catch {
10
10
  return false
11
11
  }
12
12
  }
@@ -33,7 +33,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
33
33
  gitUrlParse(v)
34
34
 
35
35
  return true
36
- } catch (err) {
36
+ } catch {
37
37
  return 'invalid git url'
38
38
  }
39
39
  },