Skip to content

Commit

Permalink
feat: add nypm's installDependencies util
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Jun 23, 2023
1 parent 3082368 commit ad4ff0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { writeFile } from 'node:fs/promises'
import { downloadTemplate, startShell } from 'giget'
import { relative } from 'pathe'
import { consola } from 'consola'
import { addDependency } from 'nypm'
import { installDependencies } from 'nypm'
import type { PackageManagerName } from 'nypm'
import { defineNuxtCommand } from './index'

Expand Down Expand Up @@ -69,7 +69,7 @@ export default defineNuxtCommand({
consola.start('Installing dependencies...')

try {
await addDependency('', {
await installDependencies({
cwd: relativeProjectPath,
packageManager: {
name: selectedPackageManager,
Expand Down

0 comments on commit ad4ff0e

Please sign in to comment.