@aeriajs/cli 0.0.158 → 0.0.160
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.
- package/dist/migrate.js +5 -2
- package/package.json +1 -2
package/dist/migrate.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getCollections } from '@aeriajs/entrypoint';
|
|
2
2
|
import { getDatabase, getDatabaseCollection, getReferences } from '@aeriajs/core';
|
|
3
3
|
import { Result } from '@aeriajs/types';
|
|
4
|
-
import { config as loadEnv } from 'dotenv';
|
|
5
4
|
import { log } from './log.js';
|
|
6
5
|
const recurseReferences = (refMap, indexMap) => {
|
|
7
6
|
for (const reference of Object.values(refMap)) {
|
|
@@ -28,7 +27,11 @@ export const migrate = async () => {
|
|
|
28
27
|
return Result.result('skipping (continuos integration detected)');
|
|
29
28
|
}
|
|
30
29
|
if (process.env.NODE_ENV !== 'production') {
|
|
31
|
-
|
|
30
|
+
try {
|
|
31
|
+
process.loadEnvFile();
|
|
32
|
+
}
|
|
33
|
+
catch (err) {
|
|
34
|
+
}
|
|
32
35
|
}
|
|
33
36
|
const collections = await getCollections();
|
|
34
37
|
const session = await getDatabase();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.160",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"chokidar": "^3.6.0",
|
|
31
|
-
"dotenv": "^16.4.5",
|
|
32
31
|
"esbuild": "^0.20.2",
|
|
33
32
|
"json5": "^2.2.3"
|
|
34
33
|
},
|