Skip to content

Commit 043b2cd

Browse files
committed
Add -D to instructions by default
1 parent 590d885 commit 043b2cd

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

remark/withPrevalInstructions.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ function createPrevals({ tool: pageTool = error('UNKNOWN') } = {}) {
192192
setup({
193193
dependencies = [],
194194
uninstall = [],
195-
dev = false,
196195
soon = false,
197196
tool = pageTool,
198197
version = 'latest',
@@ -224,9 +223,7 @@ function createPrevals({ tool: pageTool = error('UNKNOWN') } = {}) {
224223

225224
return [
226225
hasMultipleVersion && `# If you're on ${name}`,
227-
`npm install ${dev ? '-D ' : ''}${[...dependencies, ...knownDependencies[mode]].join(
228-
' '
229-
)}`,
226+
`npm install -D ${[...dependencies, ...knownDependencies[mode]].join(' ')}`,
230227
]
231228
.filter(Boolean)
232229
.join('\n')

src/pages/docs/guides/laravel.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tool: Laravel Mix
77
```preval installation
88
tool: Laravel
99
reference:
10-
name: the Laravel Installer
10+
name: the Laravel Installer
1111
link: https://laravel.com/docs/8.x#the-laravel-installer
1212
script: laravel new
1313
npmInstall: true
@@ -16,7 +16,6 @@ npmInstall: true
1616
---
1717

1818
```preval setup
19-
dev: true
2019
version: latest
2120
```
2221

@@ -25,7 +24,7 @@ postcss: false
2524
types:
2625
- Blade templates
2726
- JavaScript components
28-
purge:
27+
purge:
2928
- ./resources/**/*.blade.php
3029
- ./resources/**/*.js
3130
- ./resources/**/*.vue

src/pages/docs/guides/nuxtjs.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ disclaimer: >
1818
---
1919

2020
```preval setup
21-
dev: true
22-
version:
21+
version:
2322
Nuxt.js: compat-7
2423
uninstall:
2524
- '@nuxtjs/tailwindcss'

src/pages/docs/guides/vue-3-vite.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ npmInstall: true
1313
---
1414

1515
```preval setup
16-
dev: true
1716
version: latest
1817
```
1918

0 commit comments

Comments
 (0)