Skip to content

Commit

Permalink
fix(nuxt-start): update dependencies (nuxt#3815)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and pi0 committed Aug 28, 2018
1 parent 7e77c82 commit dca1425
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
13 changes: 12 additions & 1 deletion scripts/release-edge
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

const { resolve } = require('path')
const { spawnSync } = require('child_process')
const { readFileSync, writeFileSync } = require('fs-extra')
const { readFileSync, writeFileSync, copySync, ensureDirSync } = require('fs-extra')

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 = '') {
// paths
const packagePath = resolve(__dirname, '..', module, 'package.json')
Expand Down Expand Up @@ -35,6 +42,10 @@ class NuxtEdgePublisher {
// Write package.json
writeFileSync(packagePath, JSON.stringify(p, null, 2) + '\r\n')

if (module === 'start') {
this.copyBin('start', 'nuxt-start')
}

return p
}

Expand Down
33 changes: 17 additions & 16 deletions start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,32 @@
"npm": ">=5.0.0"
},
"dependencies": {
"minimist": "^1.2.0",
"lodash": "^4.17.5",
"@nuxtjs/youch": "^4.2.3",
"chalk": "^2.3.2",
"ora": "^2.0.0",
"hash-sum": "^1.0.2",
"is-ci": "^1.1.0",
"debug": "^3.1.0",
"compression": "^1.7.3",
"connect": "^3.6.5",
"consola": "^1.4.3",
"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",
"fs-extra": "^5.0.0",
"etag": "^1.8.1",
"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",
"serve-static": "^1.13.2",
"compression": "^1.7.1",
"connect": "^3.6.5",
"launch-editor-middleware": "^2.2.1",
"server-destroy": "^1.0.1"
"server-destroy": "^1.0.1",
"std-env": "^1.3.1",
"vue": "^2.5.17",
"vue-meta": "^1.5.3",
"vue-server-renderer": "^2.5.17"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/nuxtjs",
"logo": "https://opencollective.com/nuxtjs/logo.txt?reverse=true&variant=variant2"
}
}
}

0 comments on commit dca1425

Please sign in to comment.