File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- const http = require ( "http" ) ;
2
- const chalk = require ( "chalk" ) ;
3
- const readline = require ( "readline" ) ;
4
- const url = require ( "url" ) ;
5
- const { spawnSync } = require ( "child_process" ) ;
1
+ import http from "http" ;
2
+ import chalk from "chalk" ;
3
+ import readline from "readline" ;
4
+ import url from "url" ;
5
+ import { spawnSync } from "child_process" ;
6
+ import dotenv from "dotenv" ;
6
7
7
- require ( " dotenv" ) . config ( { path : ".env.development" } ) ;
8
+ dotenv . config ( { path : ".env.development" } ) ;
8
9
9
10
const parsedUrl = url . parse ( process . env . NEXT_PUBLIC_BIG_BRAIN_URL ) ;
10
11
http
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "dev" : " node checkBigBrain.js 6789 && { (sleep 2 ; open http://localhost:6789) & npm run dev:pure; }" ,
6
+ "dev" : " node checkBigBrain.mjs 6789 && { (sleep 2 ; open http://localhost:6789) & npm run dev:pure; }" ,
7
7
"dev:pure" : " npm run build:generated && next dev --port 6789" ,
8
8
"build" : " npm run build:generated && next build" ,
9
9
"build:generated" : " python3 ../dashboard-common/scripts/build-convexServerTypes.py && npm run generateApiSpec" ,
You can’t perform that action at this time.
0 commit comments