Skip to content

Commit

Permalink
wip: version
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Oct 24, 2023
1 parent d5161a2 commit 21fbaee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ export function kebabcase(str: string) {
export function detectPackageManager() {
const userAgent = process.env.npm_config_user_agent
if (!userAgent) return 'npm'
if (userAgent.includes('bun')) return 'bun'
if (userAgent.includes('yarn')) return 'yarn'
if (userAgent.includes('pnpm')) return 'pnpm'
if (userAgent.includes('npm')) return 'npm'
if (userAgent.includes('yarn')) return 'yarn'
if (userAgent.includes('bun')) return 'bun'
return 'npm'
}
2 changes: 1 addition & 1 deletion src/cli/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"dependencies": {
"react": "latest",
"react-dom": "latest",
"vocs": "latest"
"vocs": "main"
}
}

0 comments on commit 21fbaee

Please sign in to comment.