@steroidsjs/nest 1.7.32 → 1.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,12 +7,12 @@ const EntityCodeGenerateCommand_1 = require("../../commands/entity-generator/Ent
|
|
|
7
7
|
const MigrateCommand_1 = require("../../commands/MigrateCommand");
|
|
8
8
|
const nestjs_command_1 = require("nestjs-command");
|
|
9
9
|
const isMigrateCommand = !!(process.argv || []).find(arg => /^migrate/.exec(arg));
|
|
10
|
-
const envRootDir = process.env.APP_ENVIRONMENT === 'dev' ? 'src' : 'dist';
|
|
11
|
-
const migrationsRootDir = process.env.CLI_PATH && path.dirname(process.env.CLI_PATH)
|
|
12
|
-
? path.dirname(process.env.CLI_PATH).split(path.sep).find(dir => !dir.includes('.'))
|
|
13
|
-
: envRootDir;
|
|
14
10
|
exports.default = Object.assign(Object.assign({}, config_1.default), { config: () => {
|
|
15
11
|
const config = config_1.default.config();
|
|
12
|
+
const envRootDir = process.env.APP_ENVIRONMENT === 'dev' ? 'src' : 'dist';
|
|
13
|
+
const migrationsRootDir = process.env.CLI_PATH && path.dirname(process.env.CLI_PATH)
|
|
14
|
+
? path.dirname(process.env.CLI_PATH).split(path.sep).find(dir => !dir.includes('.'))
|
|
15
|
+
: envRootDir;
|
|
16
16
|
return Object.assign(Object.assign({}, config), { database: Object.assign(Object.assign({}, config.database), { migrations: isMigrateCommand
|
|
17
17
|
? fs.readdirSync(migrationsRootDir).map(name => path.join(migrationsRootDir, `${name}/infrastructure/migrations/*{.ts,.js}`))
|
|
18
18
|
: [], migrationsTableName: 'migrations' }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/infrastructure/applications/console/config.ts"],"names":[],"mappings":";;AACA,6BAA6B;AAC7B,8BAA8B;AAC9B,2CAAwC;AAExC,yGAAoG;AACpG,kEAA6D;AAC7D,mDAA6C;AAE7C,MAAM,gBAAgB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