express-generator-typescript 2.1.5 → 2.1.6
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/lib/project-files/{src/pre-start/env → env}/development.env +1 -1
- package/lib/project-files/{src/pre-start/env → env}/production.env +0 -0
- package/lib/project-files/{src/pre-start/env → env}/test.env +0 -0
- package/lib/project-files/src/{pre-start/index.ts → pre-start.ts} +6 -3
- package/lib/project-files/src/routes/middleware.ts +1 -1
- package/package.json +1 -1
|
File without changes
|
|
File without changes
|
|
@@ -9,7 +9,8 @@ import dotenv from 'dotenv';
|
|
|
9
9
|
import commandLineArgs from 'command-line-args';
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
// Setup command line options
|
|
12
|
+
// **** Setup command line options **** //
|
|
13
|
+
|
|
13
14
|
const options = commandLineArgs([
|
|
14
15
|
{
|
|
15
16
|
name: 'env',
|
|
@@ -19,9 +20,11 @@ const options = commandLineArgs([
|
|
|
19
20
|
},
|
|
20
21
|
]);
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
// **** Set the env file **** //
|
|
25
|
+
|
|
23
26
|
const result2 = dotenv.config({
|
|
24
|
-
path: path.join(__dirname,
|
|
27
|
+
path: path.join(__dirname, `../env/${String(options.env)}.env`),
|
|
25
28
|
});
|
|
26
29
|
|
|
27
30
|
if (result2.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-generator-typescript",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"express-generator-typescript": "node bin/cli.js",
|