Skip to content

Commit 132a5a5

Browse files
committed
Add commands to run compiled version
1 parent 3630270 commit 132a5a5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ yarn-error.log*
3737
.vercel
3838

3939
.idea
40+
41+
dist

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "@milktoast-lab/SolNFTBot",
33
"version": "1.0.0",
4-
"main": "dist/index.js",
5-
"types": "dist/index.d.ts",
4+
"main": "dist/src/index.js",
5+
"types": "dist/src/index.d.ts",
66
"license": "MIT",
77
"engines": {
88
"node": ">=16.6"
99
},
1010
"scripts": {
1111
"dev": "PORT=4000 ts-node src/server.ts",
12-
"start": "PORT=4000 NODE_ENV=production ts-node src/server.ts",
12+
"build": "tsc",
13+
"start": "PORT=4000 NODE_PATH=./dist/src NODE_ENV=production node dist/src/server.js",
1314
"test": "jest --no-watchman",
1415
"lint-format": "prettier -c ./src/**/*.{ts,tsx}",
1516
"fix-format": "prettier -w ./src/**/*.{ts,tsx}"

0 commit comments

Comments
 (0)