Skip to content

Commit b06ed3b

Browse files
committed
Patching deployment
Before adding tests, build would "compile" all files rom src/ directly into /dist, but with tests, it started splitting it into /dist/src and /dist/test, which broke the deployment workflow. Patching it so that only /src files are "compiled" during production build
1 parent f20ce1b commit b06ed3b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

backend/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev-start": "nodemon --exec ts-node src/server.ts",
99
"build": "tsc && npm run copy-sql",
1010
"gcp-build": "npm install --save-dev && npm run build",
11-
"copy-sql": "cp ./src/db/db_init.sql ./dist/src/db/db_init.sql",
11+
"copy-sql": "cp ./src/db/db_init.sql ./dist/db/db_init.sql",
1212
"tsconfig": "tsc --init",
1313
"test": "mocha"
1414
},
@@ -62,6 +62,6 @@
6262
"mocha": "^10.2.0",
6363
"sinon": "^15.2.0",
6464
"ts-node": "^10.9.1",
65-
"typescript": "^5.1.6"
65+
"typescript": "^5.2.2"
6666
}
6767
}

backend/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
"esModuleInterop": true
88
},
99
"include": [
10-
"src",
11-
"src/db/db_init.sql",
12-
"test"
10+
"src"
1311
]
1412
}

0 commit comments

Comments
 (0)