nest初始化

feat:配置模块
feat:路径模块
This commit is contained in:
Jerry 2025-07-24 14:24:40 +08:00
parent 4100b4f0aa
commit 3e3f8029e6

View File

@ -1,7 +1,7 @@
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import * as path from 'path'; import * as path from 'path';
import * as fs from 'fs'; import * as fs from 'fs';
import { ConfigService } from '../../config/config.service'; import { AppConfigService } from '../../config/config.service';
import { Logger } from '@nestjs/common'; import { Logger } from '@nestjs/common';
@Injectable() @Injectable()
@ -9,7 +9,7 @@ export class PathService {
private readonly baseDir: string; private readonly baseDir: string;
private readonly logger = new Logger(PathService.name); private readonly logger = new Logger(PathService.name);
constructor(private readonly configService: ConfigService) { constructor(private readonly configService: AppConfigService) {
this.baseDir = path.join(__dirname, '../../..'); this.baseDir = path.join(__dirname, '../../..');
this.initializePaths(); this.initializePaths();
} }