File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ require('../tty-linker').create().child.install()
5
5
import { rootLogger } from '../nexus-logger'
6
6
import hook from './hook'
7
7
import * as IPC from './ipc'
8
+ import * as DevMode from '../../runtime/dev-mode'
8
9
9
10
const log = rootLogger . child ( 'dev' ) . child ( 'runner' )
10
11
@@ -16,7 +17,7 @@ async function main() {
16
17
}
17
18
18
19
// Enable dev mode code paths for IPC interaction
19
- process . env . NEXUS_DEV_MODE = 'true'
20
+ process . env [ DevMode . DEV_MODE_ENV_VAR_NAME ] = 'true'
20
21
21
22
// TODO perhaps we should move these unhandled error/rejections
22
23
// to start module because we probably want them just as much from production as
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { fatal } from '../lib/process'
15
15
/**
16
16
* Data
17
17
*/
18
- const DEV_MODE_ENV_VAR_NAME = 'NEXUS_DEV_MODE'
18
+ export const DEV_MODE_ENV_VAR_NAME = 'NEXUS_DEV_MODE'
19
19
20
20
/**
21
21
* Eager integrity check.
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import * as Net from 'net'
6
6
import stripAnsi from 'strip-ansi'
7
7
import * as Plugin from '../../lib/plugin'
8
8
import { AppState } from '../app'
9
+ import * as DevMode from '../dev-mode'
9
10
import { ContextContributor } from '../schema/schema'
10
11
import { log } from './logger'
11
12
import { createRequestHandlerPlayground } from './request-handler-playground'
@@ -88,6 +89,7 @@ export function create(appState: AppState) {
88
89
path : settings . data . path ,
89
90
playgroundPath : settings . data . playground ? settings . data . playground . path : undefined ,
90
91
} )
92
+ DevMode . sendServerReadySignalToDevModeMaster ( )
91
93
} ,
92
94
async stop ( ) {
93
95
if ( ! state . running ) {
You can’t perform that action at this time.
0 commit comments