Skip to content

Commit

Permalink
fix: ship TS Node16 compatible typings
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Mar 20, 2024
1 parent 1ec71be commit a21794d
Show file tree
Hide file tree
Showing 11 changed files with 195 additions and 212 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"styled-components": "6.1.8"
},
"devDependencies": {
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"prettier": "3.2.5",
"prettier-plugin-packagejson": "2.4.12",
"prettier-plugin-svelte": "3.2.2",
Expand Down
5 changes: 1 addition & 4 deletions packages/core-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,18 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./encode-data-attribute": {
"types": "./dist/encode-data-attribute.d.ts",
"source": "./src/encodeDataAttribute.ts",
"import": "./dist/encode-data-attribute.js",
"require": "./dist/encode-data-attribute.cjs",
"default": "./dist/encode-data-attribute.js"
},
"./create-data-attribute": {
"types": "./dist/create-data-attribute.d.ts",
"source": "./src/createDataAttribute.ts",
"import": "./dist/create-data-attribute.js",
"require": "./dist/create-data-attribute.cjs",
Expand Down Expand Up @@ -126,7 +123,7 @@
"devDependencies": {
"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.5",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/visual-editing-helpers": "0.6.1",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/overlays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
Expand Down Expand Up @@ -114,7 +113,7 @@
"@sanity/visual-editing": "1.8.2"
},
"devDependencies": {
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.3.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/presentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
Expand Down Expand Up @@ -122,7 +121,7 @@
"devDependencies": {
"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.5",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/visual-editing-helpers": "0.6.1",
"happy-dom": "^14.0.0",
"react": "^18.2.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/preview-kit-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
Expand Down Expand Up @@ -106,7 +105,7 @@
"devDependencies": {
"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.5",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/visual-editing-helpers": "0.6.1",
"@types/react": "^18.2.67",
"@typescript-eslint/eslint-plugin": "^7.3.1",
Expand Down
8 changes: 1 addition & 7 deletions packages/preview-url-secret/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,36 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./create-secret": {
"types": "./dist/create-secret.d.ts",
"source": "./src/_exports/create-secret.ts",
"import": "./dist/create-secret.js",
"require": "./dist/create-secret.cjs",
"default": "./dist/create-secret.js"
},
"./define-preview-url": {
"types": "./dist/define-preview-url.d.ts",
"source": "./src/_exports/define-preview-url.ts",
"import": "./dist/define-preview-url.js",
"require": "./dist/define-preview-url.cjs",
"default": "./dist/define-preview-url.js"
},
"./get-redirect-to": {
"types": "./dist/get-redirect-to.d.ts",
"source": "./src/_exports/get-redirect-to.ts",
"import": "./dist/get-redirect-to.js",
"require": "./dist/get-redirect-to.cjs",
"default": "./dist/get-redirect-to.js"
},
"./sanity-plugin-debug-secrets": {
"types": "./dist/sanity-plugin-debug-secrets.d.ts",
"source": "./src/_exports/sanity-plugin-debug-secrets.ts",
"import": "./dist/sanity-plugin-debug-secrets.js",
"require": "./dist/sanity-plugin-debug-secrets.cjs",
"default": "./dist/sanity-plugin-debug-secrets.js"
},
"./without-secret-search-params": {
"types": "./dist/without-secret-search-params.d.ts",
"source": "./src/_exports/without-secret-search-params.ts",
"import": "./dist/without-secret-search-params.js",
"require": "./dist/without-secret-search-params.cjs",
Expand Down Expand Up @@ -153,7 +147,7 @@
"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.5",
"@sanity/icons": "^2.11.2",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",
Expand Down
6 changes: 1 addition & 5 deletions packages/react-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"react-server": "./dist/rsc/index.react-server.js",
"browser": {
"types": "./dist/index.browser.d.ts",
"source": "./src/index.browser.ts",
"require": "./dist/index.browser.cjs",
"import": "./dist/index.browser.js"
Expand All @@ -30,14 +28,12 @@
"default": "./dist/index.js"
},
"./jsx": {
"types": "./dist/jsx.d.ts",
"source": "./src/jsx/index.ts",
"import": "./dist/jsx.js",
"require": "./dist/jsx.cjs",
"default": "./dist/jsx.js"
},
"./rsc": {
"types": "./dist/rsc/index.d.ts",
"source": "./src/rsc/index.ts",
"react-server": "./dist/rsc/index.react-server.js",
"import": "./dist/rsc/index.js",
Expand Down Expand Up @@ -142,7 +138,7 @@
"devDependencies": {
"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.5",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/visual-editing-helpers": "0.6.1",
"@types/react": "^18.2.67",
"@typescript-eslint/eslint-plugin": "^7.3.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/svelte-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
Expand Down Expand Up @@ -102,7 +101,7 @@
"devDependencies": {
"@sanity/channels": "0.4.0",
"@sanity/client": "^6.15.5",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/preview-url-secret": "^1.6.4",
"@sanity/visual-editing": "1.8.2",
"@sanity/visual-editing-helpers": "0.6.1",
Expand Down
3 changes: 0 additions & 3 deletions packages/visual-editing-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./csm": {
"types": "./dist/csm.d.ts",
"source": "./src/csm/index.ts",
"import": "./dist/csm.js",
"require": "./dist/csm.cjs",
"default": "./dist/csm.js"
},
"./hooks": {
"types": "./dist/hooks.d.ts",
"source": "./src/hooks/index.ts",
"import": "./dist/hooks.js",
"require": "./dist/hooks.cjs",
Expand Down
6 changes: 1 addition & 5 deletions packages/visual-editing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,24 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./create-data-attribute": {
"types": "./dist/create-data-attribute/index.d.ts",
"source": "./src/create-data-attribute.ts",
"import": "./dist/create-data-attribute/index.js",
"require": "./dist/create-data-attribute/index.cjs",
"default": "./dist/create-data-attribute/index.js"
},
"./next-pages-router": {
"types": "./dist/next-pages-router/index.d.ts",
"source": "./src/next-pages-router/index.ts",
"import": "./dist/next-pages-router/index.js",
"require": "./dist/next-pages-router/index.cjs",
"default": "./dist/next-pages-router/index.js"
},
"./remix": {
"types": "./dist/remix/index.d.ts",
"source": "./src/remix/index.ts",
"import": "./dist/remix/index.js",
"require": "./dist/remix/index.cjs",
Expand Down Expand Up @@ -170,7 +166,7 @@
"@remix-run/react": "^2.8.1",
"@sanity/channels": "0.4.0",
"@sanity/client": "6.15.5",
"@sanity/pkg-utils": "^5.0.4",
"@sanity/pkg-utils": "^5.1.1",
"@sanity/ui": "2.0.10",
"@sanity/visual-editing-helpers": "0.6.1",
"@sveltejs/adapter-auto": "^3.1.1",
Expand Down
Loading

0 comments on commit a21794d

Please sign in to comment.