diff --git a/scripts/release-edge b/scripts/release-edge index c4437c4760..08881fd820 100755 --- a/scripts/release-edge +++ b/scripts/release-edge @@ -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') @@ -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 } diff --git a/start/package.json b/start/package.json index 8a911c83f0..8e505d2205 100644 --- a/start/package.json +++ b/start/package.json @@ -49,31 +49,32 @@ "npm": ">=5.0.0" }, "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", - "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", "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" } -} \ No newline at end of file +}