@digitaldefiance/express-suite-starter 4.21.0 → 4.21.1
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/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { App, Environment } from '{{namespace}}/api-lib';
|
|
2
2
|
import { GlobalActiveContext, CoreLanguageCode, IActiveContext } from '@digitaldefiance/i18n-lib';
|
|
3
3
|
import { join } from 'path';
|
|
4
|
-
import { BrightDbApplication } from '@brightchain/node-express-suite';
|
|
5
4
|
|
|
6
5
|
const env: Environment = new Environment(
|
|
7
|
-
join(
|
|
6
|
+
join(__dirname, '.env'),
|
|
8
7
|
);
|
|
9
8
|
const app: App = new App(env);
|
|
10
9
|
const context = GlobalActiveContext.getInstance<CoreLanguageCode, IActiveContext<CoreLanguageCode>>();
|
|
@@ -4,7 +4,7 @@ import { GlobalActiveContext, CoreLanguageCode, IActiveContext } from '@digitald
|
|
|
4
4
|
import { join } from 'path';
|
|
5
5
|
|
|
6
6
|
const env: Environment = new Environment(
|
|
7
|
-
join(
|
|
7
|
+
join(__dirname, '.env'),
|
|
8
8
|
);
|
|
9
9
|
const app: App = new App(
|
|
10
10
|
env,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
brightchainDatabaseInit,
|
|
3
|
-
BrightDbApplication,
|
|
4
3
|
BrightDbEnvironment,
|
|
5
4
|
} from '@brightchain/node-express-suite';
|
|
6
5
|
import { Constants as AppConstants } from '{{namespace}}/api-lib';
|
|
@@ -77,8 +76,7 @@ async function main() {
|
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
const envDir = join(
|
|
80
|
-
|
|
81
|
-
'{{prefix}}-inituserdb',
|
|
79
|
+
__dirname,
|
|
82
80
|
'.env',
|
|
83
81
|
);
|
|
84
82
|
const env = new BrightDbEnvironment(envDir, true);
|
|
@@ -153,8 +151,8 @@ async function main() {
|
|
|
153
151
|
// Handle --setEnv flag to write credentials to .env file
|
|
154
152
|
if (process.argv.includes('--setEnv')) {
|
|
155
153
|
const apiEnvPath = join(
|
|
156
|
-
|
|
157
|
-
'..', // Go up from dist
|
|
154
|
+
__dirname,
|
|
155
|
+
'..', // Go up from this project's dist dir
|
|
158
156
|
'{{prefix}}-api',
|
|
159
157
|
'.env',
|
|
160
158
|
);
|
|
@@ -79,8 +79,7 @@ async function main() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
const envDir = join(
|
|
82
|
-
|
|
83
|
-
'{{prefix}}-inituserdb',
|
|
82
|
+
__dirname,
|
|
84
83
|
'.env',
|
|
85
84
|
);
|
|
86
85
|
const env: Environment = new Environment(envDir, true);
|
|
@@ -180,8 +179,8 @@ async function main() {
|
|
|
180
179
|
// Handle --setEnv flag to write credentials to .env file
|
|
181
180
|
if (process.argv.includes('--setEnv')) {
|
|
182
181
|
const apiEnvPath = join(
|
|
183
|
-
|
|
184
|
-
'..', // Go up from dist
|
|
182
|
+
__dirname,
|
|
183
|
+
'..', // Go up from this project's dist dir
|
|
185
184
|
'{{prefix}}-api',
|
|
186
185
|
'.env',
|
|
187
186
|
);
|