Skip to content

Commit

Permalink
fix: add /studio export
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Aug 11, 2022
1 parent 8c8c633 commit e7c1f47
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 40 deletions.
41 changes: 3 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,20 @@
"require": "./dist/index.js",
"default": "./dist/next-sanity.esm.js"
},
"./package.json": "./package.json"
"./package.json": "./package.json",
"./studio": {
"source": "./src/studio.ts",
"require": "./lib/cjs/studio.js",
"default": "./lib/esm/studio.js"
}
},
"//": "the typesVersion config below is a workaround for TypeScript's lack of support for package exports",
"typesVersions": {
"*": {
"studio": [
"./dist/studio.d.ts"
]
}
},
"main": "dist/index.js",
"module": "dist/next-sanity.esm.js",
Expand Down Expand Up @@ -65,7 +78,6 @@
"devDependencies": {
"@async-fn/jest": "^1.5.3",
"@sanity/eslint-config-studio": "^2.0.0",
"@semantic-release/exec": "^6.0.3",
"@testing-library/react-hooks": "^7.0.2",
"@types/eventsource": "^1.1.9",
"@types/jest": "^28.1.6",
Expand Down

1 comment on commit e7c1f47

@vercel
Copy link

@vercel vercel bot commented on e7c1f47 Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-sanity – ./

next-sanity-git-main.sanity.build
next-sanity.sanity.build
next.sanity.build

Please sign in to comment.