Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #132 from CPCTF2022/fix/module
Browse files Browse the repository at this point in the history
🐛  fix module
  • Loading branch information
hijiki51 authored Apr 29, 2022
2 parents f8e70be + af37739 commit 97c4edc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ COPY . /app/client/

WORKDIR /app/client/server

RUN apk add git
RUN apk update && apk add git

RUN npm ci
RUN npm run build

FROM busybox:1

COPY --from=build /app/client/server/build /server
COPY --from=build /app/client/server /server
2 changes: 1 addition & 1 deletion server/ServerMain.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fetch = (...args: unknown[]) =>
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import('node-fetch').then(({ default: fetch }) => fetch(...args))
import('node-fetch-commonjs').then(({ default: fetch }) => fetch(...args))
import * as fs from 'fs'
import { CircuitBuilder } from './CircuitBuilder'

Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"output_path": "../public/dummy",
"scripts": {
"build": "tsc ServerMain.ts --outdir ./build",
"build": "tsc ServerMain.ts --module commonjs --outdir ./build",
"start": "EXPORT_DIR=\"../public\" ts-node ServerMain.ts"
},
"author": "",
Expand Down

0 comments on commit 97c4edc

Please sign in to comment.