Skip to content

Commit

Permalink
Merge pull request #11 from tscircuit/fixbuild
Browse files Browse the repository at this point in the history
Fix Module Import issue in cli build
  • Loading branch information
seveibar authored Jan 2, 2025
2 parents 14d16fa + 6e3017d commit fc42f4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"indentStyle": "space"
},
"files": {
"ignore": ["cosmos-export", "dist", "package.json"]
"ignore": ["cosmos-export", "dist", "package.json", "tsconfig.json"]
},
"javascript": {
"formatter": {
Expand Down
8 changes: 4 additions & 4 deletions lib/server/createServer.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as http from "http"
import * as fs from "fs"
import * as path from "path"
import * as http from "node:http"
import * as fs from "node:fs"
import * as path from "node:path"
import { getNodeHandler } from "winterspec/adapters/node"
// @ts-ignore
import winterspecBundle from "@tscircuit/file-server/dist/bundle"
import winterspecBundle from "@tscircuit/file-server/dist/bundle.js"
import { getIndex } from "../site/getIndex"

export const createServer = async (port: number = 3000) => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"verbatimModuleSyntax": false,
"noEmit": true,

// Best practices
Expand Down

0 comments on commit fc42f4a

Please sign in to comment.