Skip to content

Commit

Permalink
move tsc generated files in a specific directory (to help client-side…
Browse files Browse the repository at this point in the history
… "vite" to use ts files instead of js)
  • Loading branch information
prigaux committed Nov 6, 2023
1 parent 31ce842 commit 9b5e545
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
shared/**/*.js
shared/**/*.js.map
server/**/*.js
server/**/*.js.map
server/build/
logs/*
!.gitkeep
node_modules/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"server-build-and-test": "npm run server-build && npm run server-test",
"server-start": "nodemon start-server.js",
"server-start:dev": "NODE_ENV=test nodemon --watch server/ --inspect start-server.js",
"server-test": "mocha --require source-map-support/register --recursive server/tests",
"server-test": "mocha --require source-map-support/register --recursive server/build/server",
"server-test:w": "npm run server-test -- --watch"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions server/build/app
1 change: 1 addition & 0 deletions server/build/node_modules
1 change: 1 addition & 0 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"../shared/**/*.ts"
],
"compilerOptions": {
"outDir": "build",
"sourceMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
2 changes: 1 addition & 1 deletion start-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = 'production';
}
require('./server/start-server');
require('./server/build/server/start-server');

0 comments on commit 9b5e545

Please sign in to comment.