Fix nuxt-start in package.json

#1378
This commit is contained in:
Pooya Parsa 2017-08-17 22:10:54 +04:30
parent 74df4472bc
commit bcdab5d196
3 changed files with 5 additions and 3 deletions

View File

@ -59,6 +59,9 @@ packageJSON.dependencies = dependencies
// Update package meta
packageJSON.name = 'nuxt-start'
packageJSON.description = 'runtime-only build for nuxt'
packageJSON.bin = {
'nuxt-start': './bin/nuxt-start'
}
// Update package.json
writeFileSync(resolve(startDir, 'package.json'), JSON.stringify(packageJSON, null, 2))

View File

@ -58,8 +58,7 @@
"watch": "npm run build:nuxt -- -w",
"make-start": "node ./build/start.js",
"precommit": "npm run lint",
"prepublish": "npm run build && npm run make-start",
"postpublish": "cd start && npm publish",
"prepare": "npm run build && npm run make-start",
"postinstall": "opencollective postinstall || exit 0"
},
"engines": {

View File

@ -40,7 +40,7 @@
],
"homepage": "https://github.com/nuxt/nuxt.js#readme",
"bin": {
"nuxt": "./bin/nuxt"
"nuxt-start": "./bin/nuxt-start"
},
"engines": {
"node": ">=4.3.0 <5.0.0 || >=5.10",