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 // Update package meta
packageJSON.name = 'nuxt-start' packageJSON.name = 'nuxt-start'
packageJSON.description = 'runtime-only build for nuxt' packageJSON.description = 'runtime-only build for nuxt'
packageJSON.bin = {
'nuxt-start': './bin/nuxt-start'
}
// Update package.json // Update package.json
writeFileSync(resolve(startDir, 'package.json'), JSON.stringify(packageJSON, null, 2)) writeFileSync(resolve(startDir, 'package.json'), JSON.stringify(packageJSON, null, 2))

View File

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

View File

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