Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a2e3b commit 63e3262Copy full SHA for 63e3262
bin/next
@@ -5,6 +5,17 @@ import { spawn } from 'cross-spawn'
5
import { watchFile } from 'fs'
6
import pkg from '../../package.json'
7
8
+if (pkg.peerDependencies) {
9
+ Object.keys(pkg.peerDependencies).forEach(dependency => {
10
+ try {
11
+ // When 'npm link' is used it checks the clone location. Not the project.
12
+ require.resolve(dependency)
13
+ } catch (err) {
14
+ console.warn(`${dependency} not found. Please install ${dependency} using 'npm install ${dependency}'`)
15
+ }
16
+ })
17
+}
18
+
19
const defaultCommand = 'dev'
20
const commands = new Set([
21
'init',
0 commit comments