adding in the core on compile
This commit is contained in:
@@ -7,3 +7,5 @@
|
||||
# production
|
||||
/build
|
||||
/dist
|
||||
|
||||
/packages/api/core
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
"author": "talksik <patel.arjun50@gmail.com>",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"packages/**"
|
||||
"packages/*"
|
||||
],
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -20,5 +20,5 @@ app.use('/api/status', (req: Request, res: Response) => {
|
||||
res.json({ message: 'wohoo, server is healthy' });
|
||||
});
|
||||
|
||||
const PORT = 5000;
|
||||
const PORT = process.env.PORT || 8080;
|
||||
const server = app.listen(PORT, () => console.log('express running'));
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
"main": "index.ts",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"core": "cp -r ../core ./core",
|
||||
"dev": "NODE_ENV=development nodemon",
|
||||
"start": "node dist/index.js",
|
||||
"build": "tsc -p .",
|
||||
"start:dev": "ts-node index.ts",
|
||||
"start": "node dist/index.js",
|
||||
"gcp-build": "yarn core & tsc -p .",
|
||||
"production": "NODE_ENV=production nodemon"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -17,7 +18,6 @@
|
||||
"typescript": "^4.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nirvana/core": "*",
|
||||
"axios": "^0.26.1",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.0.0",
|
||||
|
||||
Reference in New Issue
Block a user