@sanity/pkg-utils 2.3.6 → 2.3.7

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": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -120,26 +120,26 @@
120
120
  "extends": "@sanity/semantic-release-preset"
121
121
  },
122
122
  "dependencies": {
123
- "@babel/core": "^7.22.1",
124
- "@babel/preset-env": "^7.22.4",
125
- "@babel/types": "^7.22.4",
126
- "@microsoft/api-extractor": "^7.35.2",
123
+ "@babel/core": "^7.22.9",
124
+ "@babel/preset-env": "^7.22.9",
125
+ "@babel/types": "^7.22.5",
126
+ "@microsoft/api-extractor": "^7.36.3",
127
127
  "@microsoft/tsdoc-config": "^0.16.2",
128
128
  "@rollup/plugin-alias": "^5.0.0",
129
129
  "@rollup/plugin-babel": "^6.0.3",
130
- "@rollup/plugin-commonjs": "^25.0.0",
130
+ "@rollup/plugin-commonjs": "^25.0.3",
131
131
  "@rollup/plugin-json": "^6.0.0",
132
132
  "@rollup/plugin-node-resolve": "^15.1.0",
133
133
  "@rollup/plugin-replace": "^5.0.2",
134
134
  "@rollup/plugin-terser": "^0.4.3",
135
- "browserslist": "^4.21.7",
135
+ "browserslist": "^4.21.9",
136
136
  "cac": "^6.7.14",
137
137
  "chalk": "^4.1.2",
138
138
  "chokidar": "^3.5.3",
139
- "esbuild": "^0.18.0",
139
+ "esbuild": "^0.18.16",
140
140
  "esbuild-register": "^3.4.2",
141
141
  "find-config": "^1.0.0",
142
- "get-latest-version": "^5.0.1",
142
+ "get-latest-version": "^5.1.0",
143
143
  "git-url-parse": "^13.1.0",
144
144
  "globby": "^11.1.0",
145
145
  "jsonc-parser": "^3.2.0",
@@ -148,12 +148,12 @@
148
148
  "parse-git-config": "^3.0.0",
149
149
  "pkg-up": "^3.1.0",
150
150
  "prettier": "^3.0.0",
151
- "prettier-plugin-packagejson": "^2.4.3",
151
+ "prettier-plugin-packagejson": "^2.4.5",
152
152
  "pretty-bytes": "^5.6.0",
153
153
  "prompts": "^2.4.2",
154
- "recast": "^0.23.2",
155
- "rimraf": "^4.4.0",
156
- "rollup": "^3.24.0",
154
+ "recast": "^0.23.3",
155
+ "rimraf": "^4.4.1",
156
+ "rollup": "^3.26.3",
157
157
  "rollup-plugin-esbuild": "^5.0.0",
158
158
  "rxjs": "^7.8.1",
159
159
  "treeify": "^1.1.0",
@@ -161,38 +161,38 @@
161
161
  "zod": "^3.21.4"
162
162
  },
163
163
  "devDependencies": {
164
- "@commitlint/cli": "^17.6.5",
165
- "@commitlint/config-conventional": "^17.6.5",
164
+ "@commitlint/cli": "^17.6.7",
165
+ "@commitlint/config-conventional": "^17.6.7",
166
166
  "@sanity/pkg-utils": "workspace:*",
167
167
  "@sanity/semantic-release-preset": "4.1.2",
168
168
  "@types/babel__core": "^7.20.1",
169
169
  "@types/cpx": "^1.5.2",
170
170
  "@types/find-config": "^1.0.1",
171
171
  "@types/git-url-parse": "^9.0.1",
172
- "@types/node": "^20.2.5",
172
+ "@types/node": "^20.4.4",
173
173
  "@types/parse-git-config": "^3.0.1",
174
174
  "@types/prompts": "^2.4.4",
175
175
  "@types/rimraf": "^3.0.2",
176
176
  "@types/treeify": "^1.0.0",
177
- "@types/uuid": "^9.0.1",
178
- "@typescript-eslint/eslint-plugin": "^5.59.9",
179
- "@typescript-eslint/parser": "^5.59.9",
177
+ "@types/uuid": "^9.0.2",
178
+ "@typescript-eslint/eslint-plugin": "^6.2.0",
179
+ "@typescript-eslint/parser": "^6.2.0",
180
180
  "commitizen": "^4.3.0",
181
181
  "cpx": "^1.5.0",
182
182
  "cz-conventional-changelog": "^3.3.0",
183
- "eslint": "^8.42.0",
183
+ "eslint": "^8.45.0",
184
184
  "eslint-config-prettier": "^8.8.0",
185
185
  "eslint-plugin-import": "^2.27.5",
186
186
  "eslint-plugin-prettier": "^5.0.0",
187
187
  "eslint-plugin-simple-import-sort": "10.0.0",
188
188
  "husky": "^8.0.3",
189
- "lint-staged": "^13.2.2",
189
+ "lint-staged": "^13.2.3",
190
190
  "npm-run-all": "^4.1.5",
191
191
  "outdent": "^0.8.0",
192
- "rollup-plugin-visualizer": "^5.9.0",
193
- "semantic-release": "^21.0.3",
192
+ "rollup-plugin-visualizer": "^5.9.2",
193
+ "semantic-release": "^21.0.7",
194
194
  "ts-node": "^10.9.1",
195
- "typescript": "^5.1.3",
195
+ "typescript": "^5.1.6",
196
196
  "vitest": "^0.33.0"
197
197
  },
198
198
  "peerDependencies": {
@@ -11,6 +11,7 @@ export interface PkgTemplateStringOption<T = string> {
11
11
  name: string
12
12
  type: 'string'
13
13
  description: string
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
15
  initial?: T | ((options: Record<string, any>) => T)
15
16
  parse?: (v: string) => T | null
16
17
  validate?: (v: string) => string | true
@@ -21,6 +22,7 @@ export type PkgTemplateOption<T = string> = PkgTemplateStringOption<T>
21
22
 
22
23
  /** @public */
23
24
  export interface PkgTemplateDefinition {
25
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
26
  options: PkgTemplateStringOption<any>[]
25
27
  features: {
26
28
  name: string
@@ -28,6 +30,7 @@ export interface PkgTemplateDefinition {
28
30
  initial: boolean
29
31
  }[]
30
32
  getFiles: (
33
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
34
  options: Record<string, any>,
32
35
  features: Record<string, boolean>,
33
36
  ) => Promise<PkgTemplateFile[]>
@@ -99,5 +99,6 @@ export function printPackageTree(ctx: BuildContext): void {
99
99
  }),
100
100
  )
101
101
 
102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
102
103
  logger.log(treeify.asTree(tree as Record<string, any>, true, true))
103
104
  }
@@ -58,6 +58,7 @@ async function exec(ctx: BuildContext, task: NodeReExportFromCJSTask) {
58
58
  }
59
59
  }
60
60
 
61
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
62
  function compileESMWrapper(mod: any, relativeImport: string) {
62
63
  const keys = Object.keys(mod).filter((k) => k !== '__esModule')
63
64
 
@@ -261,6 +261,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
261
261
  }
262
262
 
263
263
  if (features.eslint) {
264
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
264
265
  const eslintConfig: any = {
265
266
  root: true,
266
267
  env: {
@@ -310,6 +311,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
310
311
  '@typescript-eslint/parser': '*',
311
312
  }
312
313
 
314
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
313
315
  const eslintConfigOverride: any = {
314
316
  files: ['**/*.ts', '**/*.tsx'],
315
317
  parser: '@typescript-eslint/parser',