chore: fix not read the .env

This commit is contained in:
Supan Adit Pratama 2024-11-10 12:25:58 +07:00
parent ec323adae9
commit 691a00293c
3 changed files with 31 additions and 4 deletions

30
package-lock.json generated
View File

@ -1,15 +1,16 @@
{ {
"name": "@aditama-labs/nest-autocrud", "name": "@aditama-labs/nest-autocrud",
"version": "0.4.0", "version": "0.5.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@aditama-labs/nest-autocrud", "name": "@aditama-labs/nest-autocrud",
"version": "0.4.0", "version": "0.5.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@nestjs/common": "^10.0.0", "@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.0.0", "@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0", "@nestjs/platform-express": "^10.0.0",
"@nestjs/typeorm": "^10.0.2", "@nestjs/typeorm": "^10.0.2",
@ -1802,6 +1803,21 @@
} }
} }
}, },
"node_modules/@nestjs/config": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/@nestjs/config/-/config-3.3.0.tgz",
"integrity": "sha512-pdGTp8m9d0ZCrjTpjkUbZx6gyf2IKf+7zlkrPNMsJzYZ4bFRRTpXrnj+556/5uiI6AfL5mMrJc2u7dB6bvM+VA==",
"license": "MIT",
"dependencies": {
"dotenv": "16.4.5",
"dotenv-expand": "10.0.0",
"lodash": "4.17.21"
},
"peerDependencies": {
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
"rxjs": "^7.1.0"
}
},
"node_modules/@nestjs/core": { "node_modules/@nestjs/core": {
"version": "10.4.6", "version": "10.4.6",
"resolved": "https://registry.npmjs.org/@nestjs/core/-/core-10.4.6.tgz", "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-10.4.6.tgz",
@ -4835,6 +4851,15 @@
"url": "https://dotenvx.com" "url": "https://dotenvx.com"
} }
}, },
"node_modules/dotenv-expand": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz",
"integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
}
},
"node_modules/eastasianwidth": { "node_modules/eastasianwidth": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
@ -7833,7 +7858,6 @@
"version": "4.17.21", "version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"dev": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/lodash.capitalize": { "node_modules/lodash.capitalize": {

View File

@ -33,6 +33,7 @@
}, },
"dependencies": { "dependencies": {
"@nestjs/common": "^10.0.0", "@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.0.0", "@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0", "@nestjs/platform-express": "^10.0.0",
"@nestjs/typeorm": "^10.0.2", "@nestjs/typeorm": "^10.0.2",
@ -96,4 +97,4 @@
"^@aditama-labs/nest-autocrud/typeorm(|/.*)$": "<rootDir>/libs/typeorm/src/$1" "^@aditama-labs/nest-autocrud/typeorm(|/.*)$": "<rootDir>/libs/typeorm/src/$1"
} }
} }
} }

View File

@ -3,9 +3,11 @@ import { PrismaCustomModule } from './example/prisma/custom/custom.module';
import { PrismaSimpleModule } from './example/prisma/simple/simple.module'; import { PrismaSimpleModule } from './example/prisma/simple/simple.module';
import { TypeORMSimpleModule } from './example/typeorm/simple/simple.module'; import { TypeORMSimpleModule } from './example/typeorm/simple/simple.module';
import { TypeORMCustomModule } from './example/typeorm/custom/custom.module'; import { TypeORMCustomModule } from './example/typeorm/custom/custom.module';
import { ConfigModule } from '@nestjs/config';
@Module({ @Module({
imports: [ imports: [
ConfigModule.forRoot(),
PrismaCustomModule, PrismaCustomModule,
PrismaSimpleModule, PrismaSimpleModule,
TypeORMSimpleModule, TypeORMSimpleModule,