Skip to content

Commit

Permalink
Replace build scirpt with one using deno compile
Browse files Browse the repository at this point in the history
It will work correctly once the following issue has been resolved:
denoland/deno#15119
  • Loading branch information
yasaichi committed Dec 26, 2023
1 parent a41cf27 commit 53943a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 66 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ $ pnpm run start
# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod
# production mode (not working for now, use `pnpm run start` instead)
$ pnpm run build && ./dist/server
```

## Test
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
"@types/express": "^4.17.17",
"@types/node": "^20.3.1",
"@types/supertest": "^2.0.12",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3"
"supertest": "^6.3.3"
},
"engines": {
"pnpm": ">=8"
},
"license": "UNLICENSED",
"private": true,
"scripts": {
"build": "nest build",
"build": "deno compile --output ./dist/server --allow-env --allow-net --allow-read=./ src/main.ts",
"format": "deno fmt",
"lint": "deno lint",
"preinstall": "npx only-allow pnpm",
Expand Down
36 changes: 0 additions & 36 deletions pnpm-lock.yaml

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

22 changes: 0 additions & 22 deletions tsconfig.build.json

This file was deleted.

0 comments on commit 53943a3

Please sign in to comment.