Skip to content

Commit

Permalink
fix: bundle @prismicio/client v7 to prevent npm install issues
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 1, 2023
1 parent d558c91 commit fdff6ce
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
20 changes: 12 additions & 8 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"test": "npm run lint && npm run types && npm run unit && npm run build && npm run size"
},
"dependencies": {
"@prismicio/client": "^7.0.0-alpha.2",
"@prismicio/richtext": "^2.1.4"
},
"devDependencies": {
"@prismicio/client": "^7.0.0-alpha.3",
"@prismicio/mock": "^0.2.0",
"@size-limit/preset-small-lib": "^8.2.4",
"@testing-library/react": "^14.0.0",
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import react from "@vitejs/plugin-react";
import preserveDirectives from "rollup-plugin-preserve-directives";

export default defineConfig({
plugins: [sdk(), react()],
plugins: [
sdk({
internalDependencies: ["@prismicio/client"],
}),
react(),
],
build: {
lib: {
entry: {
Expand Down

0 comments on commit fdff6ce

Please sign in to comment.