Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @sanity/pkg-utils to v3 #5033

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const baseConfig = {
additionalHooks: '(useMemoObservable|useObservableCallback|useAsync)',
},
],
'react/no-unescaped-entities': 'off',
'react/jsx-uses-react': 'warn',
},
settings: {
'import/extensions': ['.cjs', '.mjs', '.js', '.jsx', '.ts', '.tsx'],
Expand Down
2 changes: 0 additions & 2 deletions dev/starter-next-studio/components/Studio.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import {useMemo} from 'react'
import {defineConfig, Studio} from 'sanity'
import {deskTool} from 'sanity/desk'
Expand Down
2 changes: 0 additions & 2 deletions dev/starter-next-studio/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import type {AppProps} from 'next/app'

// eslint-disable-next-line import/no-unassigned-import
Expand Down
2 changes: 0 additions & 2 deletions dev/starter-next-studio/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Link from 'next/link'

export default function IndexPage() {
Expand Down
2 changes: 0 additions & 2 deletions dev/starter-next-studio/pages/studio/[[...tool]].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import {useRouter} from 'next/router'
import {useState} from 'react'
import Studio from '../../components/Studio'
Expand Down
2 changes: 0 additions & 2 deletions dev/test-next-studio/app/Studio.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use client'

/* eslint-disable react/react-in-jsx-scope */

import {useMemo} from 'react'
import {defineConfig, Studio, StudioProps} from 'sanity'
import {deskTool} from 'sanity/desk'
Expand Down
2 changes: 0 additions & 2 deletions dev/test-next-studio/app/app-defaults/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../Studio'

export default function StudioPage() {
Expand Down
1 change: 0 additions & 1 deletion dev/test-next-studio/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */
// eslint-disable-next-line import/no-unassigned-import
import './global.css'
import StyledComponentsRegistry from './registry'
Expand Down
1 change: 0 additions & 1 deletion dev/test-next-studio/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */
import Link from 'next/link'

const links = [
Expand Down
2 changes: 0 additions & 2 deletions dev/test-next-studio/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import type {AppProps} from 'next/app'

// eslint-disable-next-line import/no-unassigned-import
Expand Down
1 change: 0 additions & 1 deletion dev/test-next-studio/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */
import Document, {type DocumentContext} from 'next/document'
import {ServerStyleSheet} from 'styled-components'

Expand Down
2 changes: 0 additions & 2 deletions dev/test-next-studio/pages/pages-defaults/[[...path]].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../app/Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../app/Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../app/Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../app/Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../app/Studio'

export default function StudioPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/react-in-jsx-scope */

import Studio from '../../app/Studio'

export default function StudioPage() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@optimize-lodash/rollup-plugin": "^4.0.4",
"@playwright/test": "^1.38.1",
"@sanity/client": "^6.7.0",
"@sanity/pkg-utils": "^2.3.10",
"@sanity/pkg-utils": "^3.2.0",
"@sanity/tsdoc": "1.0.0-alpha.38",
"@sanity/uuid": "^3.0.2",
"@types/jest": "^29.5.6",
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/block-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/block-tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react"
"jsx": "react-jsx"
},
"references": [{"path": "../schema/tsconfig.lib.json"}, {"path": "../types/tsconfig.lib.json"}]
}
2 changes: 1 addition & 1 deletion packages/@sanity/block-tools/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"outDir": "./lib/dts",
"declarationDir": "./lib/dts",

"jsx": "react"
"jsx": "react-jsx"
},
"references": [{"path": "../schema/tsconfig.lib.json"}, {"path": "../types/tsconfig.lib.json"}]
}
3 changes: 1 addition & 2 deletions packages/@sanity/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

"checkJs": false,
"allowJs": true,
"jsx": "react",
"jsx": "react-jsx",
"resolveJsonModule": true
},
"references": [{"path": "../types/tsconfig.lib.json"}, {"path": "../util/tsconfig.lib.json"}]
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

"checkJs": false,
"allowJs": true,
"jsx": "react",
"jsx": "react-jsx",
"resolveJsonModule": true
},
"references": [{"path": "../types/tsconfig.lib.json"}, {"path": "../util/tsconfig.lib.json"}]
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/diff/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",
"declarationDir": "./lib/dts",
"jsx": "react",
"jsx": "react-jsx",

// todo: we need to disable noImplicitAny in a transition phase and should be removed eventually
"noImplicitAny": false
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/diff/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",
"declarationDir": "./lib/dts",
"jsx": "react",
"jsx": "react-jsx",

// todo: we need to disable noImplicitAny in a transition phase and should be removed eventually
"noImplicitAny": false
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/mutator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/portable-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/portable-text-editor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react",
"jsx": "react-jsx",
"isolatedModules": false
},
"references": [
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/portable-text-editor/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react",
"jsx": "react-jsx",
"isolatedModules": false
},
"references": [
Expand Down
6 changes: 2 additions & 4 deletions packages/@sanity/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"source": "./src/_exports/index.ts",
"require": "./lib/_exports/index.js",
"node": {
"import": "./lib/_exports/index.cjs.mjs",
"require": "./lib/_exports/index.js"
"import": "./lib/_exports/index.cjs.mjs"
},
"import": "./lib/_exports/index.esm.js",
"default": "./lib/_exports/index.esm.js"
Expand All @@ -38,8 +37,7 @@
"source": "./src/_exports/_internal.ts",
"require": "./lib/_exports/_internal.js",
"node": {
"import": "./lib/_exports/index.cjs.mjs",
"require": "./lib/_exports/index.js"
"import": "./lib/_exports/_internal.cjs.mjs"
},
"import": "./lib/_exports/_internal.esm.js",
"default": "./lib/_exports/_internal.esm.js"
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react",
"jsx": "react-jsx",
"paths": {
"_self_": ["./src"]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/types/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react",
"jsx": "react-jsx",
"paths": {
"_self_": ["./src"]
}
Expand Down
15 changes: 5 additions & 10 deletions packages/@sanity/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"source": "./exports/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand All @@ -38,8 +37,7 @@
"source": "./exports/fs.ts",
"require": "./lib/fs.js",
"node": {
"import": "./lib/fs.cjs.mjs",
"require": "./lib/fs.js"
"import": "./lib/fs.cjs.mjs"
},
"import": "./lib/fs.esm.js",
"default": "./lib/fs.esm.js"
Expand All @@ -49,8 +47,7 @@
"source": "./exports/content.ts",
"require": "./lib/content.js",
"node": {
"import": "./lib/content.cjs.mjs",
"require": "./lib/content.js"
"import": "./lib/content.cjs.mjs"
},
"import": "./lib/content.esm.js",
"default": "./lib/content.esm.js"
Expand All @@ -60,8 +57,7 @@
"source": "./exports/legacyDateFormat.ts",
"require": "./lib/legacyDateFormat.js",
"node": {
"import": "./lib/legacyDateFormat.cjs.mjs",
"require": "./lib/legacyDateFormat.js"
"import": "./lib/legacyDateFormat.cjs.mjs"
},
"import": "./lib/legacyDateFormat.esm.js",
"default": "./lib/legacyDateFormat.esm.js"
Expand All @@ -71,8 +67,7 @@
"source": "./exports/paths.ts",
"require": "./lib/paths.js",
"node": {
"import": "./lib/paths.cjs.mjs",
"require": "./lib/paths.js"
"import": "./lib/paths.cjs.mjs"
},
"import": "./lib/paths.esm.js",
"default": "./lib/paths.esm.js"
Expand Down
3 changes: 1 addition & 2 deletions packages/@sanity/vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"source": "./src/index.ts",
"require": "./lib/index.js",
"node": {
"import": "./lib/index.cjs.mjs",
"require": "./lib/index.js"
"import": "./lib/index.cjs.mjs"
},
"import": "./lib/index.esm.js",
"default": "./lib/index.esm.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/vision/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react"
"jsx": "react-jsx"
},
"references": [{"path": "../types/tsconfig.lib.json"}, {"path": "../../sanity/tsconfig.lib.json"}]
}
2 changes: 1 addition & 1 deletion packages/@sanity/vision/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"rootDir": ".",
"outDir": "./lib/dts",

"jsx": "react"
"jsx": "react-jsx"
},
"references": [{"path": "../types/tsconfig.lib.json"}, {"path": "../../sanity/tsconfig.lib.json"}]
}
4 changes: 0 additions & 4 deletions packages/groq/node/groq.mjs

This file was deleted.

Loading
Loading