Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Nov 1, 2024
1 parent 777591d commit 3912524
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
5 changes: 3 additions & 2 deletions packages/canyon-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"license": "UNLICENSED",
"scripts": {
"do-build": "nest build",
"do-build": "prisma generate && nest build",
"start": "nest start",
"start:dev": "nest start --watch",
"preinstall": "prisma generate && nest build"
Expand All @@ -19,7 +19,8 @@
"express": "^4.21.1",
"prisma": "5.16.1",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1"
"rxjs": "^7.8.1",
"dotenv": "^16.4.5"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/canyon-backend/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { NestFactory } from '@nestjs/core';
import { json } from 'express';
import * as fs from 'fs';
import * as path from 'node:path';
import dotenv from "dotenv";
import path from 'node:path';
dotenv.config({
path: path.resolve(__dirname, "../../../.env"),
});
async function bootstrap() {
const { AppModule } = await import('./app.module');
const app = await NestFactory.create(AppModule);
Expand Down
3 changes: 2 additions & 1 deletion packages/canyon-collect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"express": "^4.21.1",
"prisma": "5.16.1",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1"
"rxjs": "^7.8.1",
"dotenv": "^16.4.5"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/canyon-collect/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { NestFactory } from '@nestjs/core';
import { json } from 'express';
import * as fs from 'fs';
import * as path from 'node:path';
import dotenv from "dotenv";
import path from 'node:path';
dotenv.config({
path: path.resolve(__dirname, "../../../.env"),
});
async function bootstrap() {
const { AppModule } = await import('./app.module');
const app = await NestFactory.create(AppModule);
Expand Down

0 comments on commit 3912524

Please sign in to comment.