Skip to content

Commit

Permalink
feat(module): install module peer dependencies (#442)
Browse files Browse the repository at this point in the history
Co-authored-by: gangan <[email protected]>
  • Loading branch information
danielroe and shinGangan authored Jun 28, 2024
1 parent 8539359 commit bca75ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"magicast": "^0.3.4",
"mlly": "^1.7.1",
"nuxt": "^3.12.2",
"nypm": "^0.3.8",
"nypm": "^0.3.9",
"ofetch": "^1.3.4",
"pathe": "^1.1.2",
"perfect-debounce": "^1.0.0",
Expand All @@ -81,9 +81,9 @@
"fsevents": "~2.3.3"
},
"resolutions": {
"h3": "^1.12.0",
"nitropack": "npm:nitropack-nightly",
"nuxt": "^3.12.2",
"h3": "^1.12.0"
"nuxt": "^3.12.2"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
19 changes: 10 additions & 9 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/commands/module/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineCommand({
consola.info(
`Installing \`${r.pkg}\`${isDev ? ' development' : ''} dependency`,
)
const res = await addDependency(r.pkg, { cwd, dev: isDev }).catch(
const res = await addDependency(r.pkg, { cwd, dev: isDev, installPeerDependencies: true }).catch(
(error) => {
consola.error(error)
return consola.prompt(
Expand Down

0 comments on commit bca75ab

Please sign in to comment.