feat: move frameworks to peerDependencies

This commit is contained in:
Nate Moore 2022-01-25 11:35:10 -06:00
parent a764264d29
commit 4af047ab77
7 changed files with 28 additions and 6 deletions

View file

@ -0,0 +1,10 @@
---
'@astrojs/renderer-lit': minor
'@astrojs/renderer-preact': minor
'@astrojs/renderer-react': minor
'@astrojs/renderer-solid': minor
'@astrojs/renderer-svelte': minor
'@astrojs/renderer-vue': minor
---
Move framework dependencies from "dependencies" to "peerDependencies" to improve PNPM compatability

View file

@ -21,7 +21,9 @@
}, },
"dependencies": { "dependencies": {
"@lit-labs/ssr": "^2.0.1", "@lit-labs/ssr": "^2.0.1",
"@webcomponents/template-shadowroot": "^0.1.0", "@webcomponents/template-shadowroot": "^0.1.0"
},
"peerDependencies": {
"lit": "^2.0.2" "lit": "^2.0.2"
} }
} }

View file

@ -22,9 +22,11 @@
}, },
"dependencies": { "dependencies": {
"@babel/plugin-transform-react-jsx": "^7.16.0", "@babel/plugin-transform-react-jsx": "^7.16.0",
"preact": "~10.5.15",
"preact-render-to-string": "^5.1.19" "preact-render-to-string": "^5.1.19"
}, },
"peerDependencies": {
"preact": "^10.6.4"
},
"engines": { "engines": {
"node": "^14.15.0 || >=16.0.0" "node": "^14.15.0 || >=16.0.0"
} }

View file

@ -21,7 +21,9 @@
"./jsx-runtime": "./jsx-runtime.js" "./jsx-runtime": "./jsx-runtime.js"
}, },
"dependencies": { "dependencies": {
"@babel/plugin-transform-react-jsx": "^7.16.0", "@babel/plugin-transform-react-jsx": "^7.16.0"
},
"peerDependencies": {
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },

View file

@ -21,7 +21,9 @@
}, },
"dependencies": { "dependencies": {
"babel-plugin-module-resolver": "^4.1.0", "babel-plugin-module-resolver": "^4.1.0",
"babel-preset-solid": "^1.2.3", "babel-preset-solid": "^1.2.3"
},
"peerDependencies": {
"solid-js": "^1.2.3" "solid-js": "^1.2.3"
}, },
"engines": { "engines": {

View file

@ -21,9 +21,11 @@
}, },
"dependencies": { "dependencies": {
"@sveltejs/vite-plugin-svelte": "1.0.0-next.30", "@sveltejs/vite-plugin-svelte": "1.0.0-next.30",
"svelte": "^3.44.3",
"svelte-preprocess": "^4.9.8" "svelte-preprocess": "^4.9.8"
}, },
"peerDependencies": {
"svelte": "^3.44.3"
},
"engines": { "engines": {
"node": "^14.15.0 || >=16.0.0" "node": "^14.15.0 || >=16.0.0"
} }

View file

@ -20,7 +20,9 @@
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"dependencies": { "dependencies": {
"@vitejs/plugin-vue": "^1.9.4", "@vitejs/plugin-vue": "^1.9.4"
},
"peerDependencies": {
"vue": "^3.2.22" "vue": "^3.2.22"
}, },
"engines": { "engines": {