mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt-start): update dependencies (#3815)
This commit is contained in:
parent
7e77c82c5b
commit
dca1425cfe
@ -2,9 +2,16 @@
|
|||||||
|
|
||||||
const { resolve } = require('path')
|
const { resolve } = require('path')
|
||||||
const { spawnSync } = require('child_process')
|
const { spawnSync } = require('child_process')
|
||||||
const { readFileSync, writeFileSync } = require('fs-extra')
|
const { readFileSync, writeFileSync, copySync, ensureDirSync } = require('fs-extra')
|
||||||
|
|
||||||
class NuxtEdgePublisher {
|
class NuxtEdgePublisher {
|
||||||
|
static copyBin(moduleName, binName) {
|
||||||
|
const binFile = resolve(__dirname, 'bin', binName)
|
||||||
|
const moduleBin = resolve(__dirname, moduleName, 'bin')
|
||||||
|
ensureDirSync(moduleBin)
|
||||||
|
copySync(binFile, resolve(moduleBin, binName))
|
||||||
|
}
|
||||||
|
|
||||||
static changePackageName(module = '') {
|
static changePackageName(module = '') {
|
||||||
// paths
|
// paths
|
||||||
const packagePath = resolve(__dirname, '..', module, 'package.json')
|
const packagePath = resolve(__dirname, '..', module, 'package.json')
|
||||||
@ -35,6 +42,10 @@ class NuxtEdgePublisher {
|
|||||||
// Write package.json
|
// Write package.json
|
||||||
writeFileSync(packagePath, JSON.stringify(p, null, 2) + '\r\n')
|
writeFileSync(packagePath, JSON.stringify(p, null, 2) + '\r\n')
|
||||||
|
|
||||||
|
if (module === 'start') {
|
||||||
|
this.copyBin('start', 'nuxt-start')
|
||||||
|
}
|
||||||
|
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,27 +49,28 @@
|
|||||||
"npm": ">=5.0.0"
|
"npm": ">=5.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.0",
|
|
||||||
"lodash": "^4.17.5",
|
|
||||||
"chalk": "^2.3.2",
|
|
||||||
"ora": "^2.0.0",
|
|
||||||
"hash-sum": "^1.0.2",
|
|
||||||
"is-ci": "^1.1.0",
|
|
||||||
"debug": "^3.1.0",
|
|
||||||
"esm": "^3.0.10",
|
|
||||||
"vue-meta": "^1.5.0",
|
|
||||||
"vue-server-renderer": "^2.5.16",
|
|
||||||
"lru-cache": "^4.1.2",
|
|
||||||
"@nuxtjs/youch": "^4.2.3",
|
"@nuxtjs/youch": "^4.2.3",
|
||||||
"fs-extra": "^5.0.0",
|
"chalk": "^2.3.2",
|
||||||
|
"compression": "^1.7.3",
|
||||||
|
"connect": "^3.6.5",
|
||||||
|
"consola": "^1.4.3",
|
||||||
|
"esm": "^3.0.10",
|
||||||
"etag": "^1.8.1",
|
"etag": "^1.8.1",
|
||||||
"fresh": "^0.5.2",
|
"fresh": "^0.5.2",
|
||||||
|
"fs-extra": "^7.0.0",
|
||||||
|
"hash-sum": "^1.0.2",
|
||||||
|
"ip": "^1.1.5",
|
||||||
|
"launch-editor-middleware": "^2.2.1",
|
||||||
|
"lodash": "^4.17.5",
|
||||||
|
"lru-cache": "^4.1.3",
|
||||||
|
"minimist": "^1.2.0",
|
||||||
"serialize-javascript": "^1.4.0",
|
"serialize-javascript": "^1.4.0",
|
||||||
"serve-static": "^1.13.2",
|
"serve-static": "^1.13.2",
|
||||||
"compression": "^1.7.1",
|
"server-destroy": "^1.0.1",
|
||||||
"connect": "^3.6.5",
|
"std-env": "^1.3.1",
|
||||||
"launch-editor-middleware": "^2.2.1",
|
"vue": "^2.5.17",
|
||||||
"server-destroy": "^1.0.1"
|
"vue-meta": "^1.5.3",
|
||||||
|
"vue-server-renderer": "^2.5.17"
|
||||||
},
|
},
|
||||||
"collective": {
|
"collective": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
Loading…
Reference in New Issue
Block a user