@modern-js/plugin-express 1.6.0 → 1.6.1-beta.0

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.
@@ -13,6 +13,7 @@ const findAppModule = async apiDir => {
13
13
 
14
14
  for (const filename of paths) {
15
15
  if (await fs.pathExists(filename)) {
16
+ delete require.cache[filename];
16
17
  return compatRequire(filename);
17
18
  }
18
19
  }
@@ -33,6 +33,7 @@ const findAppModule = async apiDir => {
33
33
 
34
34
  for (const filename of paths) {
35
35
  if (await _utils.fs.pathExists(filename)) {
36
+ delete require.cache[filename];
36
37
  return (0, _utils.compatRequire)(filename);
37
38
  }
38
39
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.6.0",
14
+ "version": "1.6.1-beta.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -38,7 +38,7 @@
38
38
  "@modern-js/bff-core": "^1.1.0",
39
39
  "@modern-js/bff-runtime": "^1.3.0",
40
40
  "@modern-js/types": "^1.5.5",
41
- "@modern-js/utils": "^1.7.9",
41
+ "@modern-js/utils": "^1.7.11",
42
42
  "cookie-parser": "^1.4.5",
43
43
  "finalhandler": "^1.1.2",
44
44
  "formidable": "^1.2.2",
@@ -46,7 +46,7 @@
46
46
  "type-is": "^1.6.18"
47
47
  },
48
48
  "devDependencies": {
49
- "@modern-js/core": "1.12.2",
49
+ "@modern-js/core": "1.12.4",
50
50
  "@modern-js/server-core": "1.4.0",
51
51
  "@modern-js/server-utils": "1.2.11",
52
52
  "@scripts/build": "0.0.0",
@@ -75,7 +75,8 @@
75
75
  },
76
76
  "publishConfig": {
77
77
  "registry": "https://registry.npmjs.org/",
78
- "access": "public"
78
+ "access": "public",
79
+ "types": "./dist/types/index.d.ts"
79
80
  },
80
81
  "wireit": {
81
82
  "build": {