mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-18 03:29:32 -05:00
fix(ui): process exit guard
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
exports.exitProcess = true
|
||||
exports.exitProcess = !process.env.VUE_CLI_API_MODE
|
||||
|
||||
exports.exit = function (code) {
|
||||
if (exports.exitProcess) {
|
||||
|
||||
@@ -2,7 +2,6 @@ const { withFilter } = require('graphql-subscriptions')
|
||||
const path = require('path')
|
||||
const globby = require('globby')
|
||||
const merge = require('lodash.merge')
|
||||
const exit = require('@vue/cli-shared-utils/lib/exit')
|
||||
const GraphQLJSON = require('graphql-type-json')
|
||||
// Channels for subscriptions
|
||||
const channels = require('./channels')
|
||||
@@ -16,10 +15,8 @@ const locales = require('./connectors/locales')
|
||||
// Start ipc server
|
||||
require('./utils/ipc')
|
||||
|
||||
// Prevent code from exiting server process
|
||||
exit.exitProcess = false
|
||||
|
||||
process.env.VUE_CLI_API_MODE = true
|
||||
console.log(process.env)
|
||||
|
||||
const resolvers = [{
|
||||
JSON: GraphQLJSON,
|
||||
|
||||
Reference in New Issue
Block a user