Skip to content

Commit 5a70c61

Browse files
authored
fix(watch): add missing bin property (#355)
1 parent 56edf6b commit 5a70c61

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Diff for: package.json

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "3.3.1",
44
"description": "Run Next.js seamlessly on Netlify",
55
"main": "index.js",
6+
"bin": {
7+
"netlify-plugin-nextjs": "src/next-on-netlify.js"
8+
},
69
"files": [
710
"helpers/**/*.js",
811
"src",

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const watch = (functionsPath, publishPath) => {
4343
const runBuild = debounceFn(
4444
async () => {
4545
try {
46-
execa.sync('next', ['build'], { stdio: 'inherit' })
46+
execa.sync('next', ['build'], { stdio: 'inherit', preferLocal: true })
4747
await build(functionsPath, publishPath)
4848
} catch (error) {
4949
console.log(error)

Diff for: src/next-on-netlify.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)