Skip to content

Commit

Permalink
fix space issue for x
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 1, 2024
1 parent 19d6bbe commit 99e329b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/global/Pm-x.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const props = defineProps({
const codeBlocks = computed(() =>
packageManagers.map((pm) => ({
filename: pm.name,
code: `${pm.x} ${props.command}`,
code: `${pm.x}${props.command}`,
key: pm.name,
})),
)
Expand Down
8 changes: 4 additions & 4 deletions app/utils/package-manager.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const packageManagers = [
{ name: 'npm', command: 'npm', install: 'i', run: 'run ', x: 'npx' },
{ name: 'yarn', command: 'yarn', install: 'add', run: '', x: 'yarn dlx' },
{ name: 'pnpm', command: 'pnpm', install: 'i', run: '', x: 'pnpm dlx' },
{ name: 'bun', command: 'bun', install: 'i', run: 'run ', x: 'bunx' },
{ name: 'npm', command: 'npm', install: 'i', run: 'run ', x: 'npx ' },
{ name: 'yarn', command: 'yarn', install: 'add', run: '', x: 'yarn dlx ' },
{ name: 'pnpm', command: 'pnpm', install: 'i', run: '', x: 'pnpm dlx ' },
{ name: 'bun', command: 'bun', install: 'i', run: 'run ', x: 'bunx ' },
{ name: 'deno', command: 'deno', install: 'i', run: 'run ', x: 'deno run -A npm:' },
] as const

Expand Down

0 comments on commit 99e329b

Please sign in to comment.