@@ -5,7 +5,6 @@ const httpProxy = require("http-proxy");
5
5
const waitPort = require ( "wait-port" ) ;
6
6
const getPort = require ( "get-port" ) ;
7
7
const chokidar = require ( "chokidar" ) ;
8
- const stripAnsi = require ( "strip-ansi" )
9
8
const { serveFunctions } = require ( "../../utils/serve-functions" ) ;
10
9
const { serverSettings } = require ( "../../detect-server" ) ;
11
10
const { detectFunctionsBuilder } = require ( "../../detect-functions-builder" ) ;
@@ -159,14 +158,14 @@ function startDevServer(settings, log) {
159
158
const args =
160
159
settings . command === "npm" ? [ "run" , ...settings . args ] : settings . args ;
161
160
const ps = execa ( settings . command , args , {
162
- env : settings . env ,
161
+ env : settings . env
162
+ } ) ;
163
+ ps . stdout . on ( "data" , function ( buffer ) {
164
+ process . stdout . write ( buffer . toString ( "utf8" ) ) ;
165
+ } ) ;
166
+ ps . stderr . on ( "data" , function ( buffer ) {
167
+ process . stderr . write ( buffer . toString ( "utf8" ) ) ;
163
168
} ) ;
164
- ps . stdout . on ( 'data' , function ( buffer ) {
165
- process . stdout . write ( stripAnsi ( buffer . toString ( 'utf8' ) ) )
166
- } )
167
- ps . stderr . on ( 'data' , function ( buffer ) {
168
- process . stderr . write ( stripAnsi ( buffer . toString ( 'utf8' ) ) )
169
- } )
170
169
ps . on ( "close" , code => process . exit ( code ) ) ;
171
170
ps . on ( "SIGINT" , process . exit ) ;
172
171
ps . on ( "SIGTERM" , process . exit ) ;
@@ -324,7 +323,8 @@ DevCommand.flags = {
324
323
} ) ,
325
324
port : flags . integer ( {
326
325
char : "p" ,
327
- description : "port of netlify dev" } ) ,
326
+ description : "port of netlify dev"
327
+ } ) ,
328
328
dir : flags . string ( {
329
329
char : "d" ,
330
330
description : "dir with static files"
0 commit comments