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

Commit

Permalink
Revert building worker with esbuild for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinrany committed Mar 25, 2021
1 parent 2812a18 commit e5b8cfa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 26 deletions.
3 changes: 1 addition & 2 deletions worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ COPY package.json pnpm-lock.yaml tsconfig.json ./
RUN npx pnpm --prod --frozen-lockfile install

COPY src src/
RUN npm run esbuild

VOLUME /config/config.json

ENTRYPOINT ["node", "dist/main.js"]
ENTRYPOINT ["pnpm", "start"]
8 changes: 3 additions & 5 deletions worker/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"private": true,
"scripts": {
"check": "tsc",
"esbuild": "esbuild src/main.ts --bundle --outfile=dist/main.js --platform=node --target=node14 --minify",
"start": "ts-node --transpile-only src/main.ts",
"check": "tsc",
"test": "tap src/tests/*.ts"
},
"dependencies": {
"esbuild": "^0.9.7",
"fastify": "^3.14.0",
"fastify-basic-auth": "^1.0.1",
"fastify-multipart": "^4.0.2",
Expand All @@ -19,6 +17,7 @@
"newtype-ts": "^0.3.4",
"pino-pretty": "^4.7.1",
"sharp": "^0.27.2",
"ts-node": "^9.1.1",
"tslib": "^2.1.0",
"typescript": "^4.2.3"
},
Expand All @@ -28,7 +27,6 @@
"@types/sharp": "^0.27.1",
"@types/tap": "^14.10.3",
"form-data": "^4.0.0",
"tap": "^14.11.0",
"ts-node": "^9.1.1"
"tap": "^14.11.0"
}
}
21 changes: 3 additions & 18 deletions worker/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion worker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"noEmit": true, /* Do not emit outputs. */
"importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
"isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
Expand Down

0 comments on commit e5b8cfa

Please sign in to comment.