Skip to content

Commit

Permalink
Fix node imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Jan 8, 2025
1 parent 468cb95 commit 01cab1e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Main script for building and running the playground.
*/

import * as fs from "node:fs"
import * as fsp from "node:fs/promises"
import * as path from "node:path"
import * as url from "node:url"
import * as http from "node:http"
import * as process from "node:process"
import * as cp from "node:child_process"
import * as esbuild from "esbuild"
import fs from "node:fs"

Check failure on line 6 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:fs' or its corresponding type declarations.
import fsp from "node:fs/promises"

Check failure on line 7 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:fs/promises' or its corresponding type declarations.
import path from "node:path"

Check failure on line 8 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:path' or its corresponding type declarations.
import url from "node:url"

Check failure on line 9 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:url' or its corresponding type declarations.
import http from "node:http"

Check failure on line 10 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:http' or its corresponding type declarations.
import process from "node:process"

Check failure on line 11 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:process' or its corresponding type declarations.
import cp from "node:child_process"

Check failure on line 12 in main.js

View workflow job for this annotation

GitHub Actions / build_test

Cannot find module 'node:child_process' or its corresponding type declarations.
import * as esb from "esbuild"

import {
DIST_DIRNAME, CONFIG_FILENAME, HTTP_PORT, PACKAGE_DIRNAME, PLAYGROUND_DIRNAME,
Expand Down Expand Up @@ -299,7 +299,7 @@ const command_handlers = {
await build_config(false)
logger_info(logger, "Built config")

const res = await esbuild.build({
const res = await esb.build({
entryPoints: [path.join(playground_path, "setup.js")],
outfile: path.join(dist_path, "setup.js"),
format: "esm",
Expand Down

0 comments on commit 01cab1e

Please sign in to comment.