Skip to content

Commit d6d5d46

Browse files
ldanilekConvex, Inc.
authored andcommitted
fix just run-dash (#34890)
new version of chalk no longer supports the commonjs syntax GitOrigin-RevId: 9742dcbeb65f1ba6de134d73d6899206cf9e40ce
1 parent 6bb9b73 commit d6d5d46

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

npm-packages/dashboard/checkBigBrain.js renamed to npm-packages/dashboard/checkBigBrain.mjs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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";
67

7-
require("dotenv").config({ path: ".env.development" });
8+
dotenv.config({ path: ".env.development" });
89

910
const parsedUrl = url.parse(process.env.NEXT_PUBLIC_BIG_BRAIN_URL);
1011
http

npm-packages/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"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; }",
77
"dev:pure": "npm run build:generated && next dev --port 6789",
88
"build": "npm run build:generated && next build",
99
"build:generated": "python3 ../dashboard-common/scripts/build-convexServerTypes.py && npm run generateApiSpec",

0 commit comments

Comments
 (0)