@modern-js/plugin-express 1.1.4-rc.0 → 1.2.1-rc.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,38 @@
1
1
  # @modern-js/plugin-express
2
2
 
3
- ## 1.1.4-rc.0
3
+ ## 1.2.1-rc.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e51b1db3]
8
+ - Updated dependencies [b7fb82ec]
9
+ - @modern-js/server-plugin@1.1.4-rc.0
10
+ - @modern-js/utils@1.1.6-rc.0
11
+ - @modern-js/core@1.2.1-rc.0
12
+ - @modern-js/adapter-helpers@1.1.1
13
+ - @modern-js/bff-runtime@1.1.2-rc.0
14
+ - @modern-js/bff-utils@1.1.2-rc.0
15
+
16
+ ## 1.2.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 5a4c557e: feat: support bff test
21
+
22
+ ### Patch Changes
23
+
24
+ - a70a62f5: fix: runtime path is broken in development environment
25
+ - Updated dependencies [90eeb72c]
26
+ - Updated dependencies [e04914ce]
27
+ - Updated dependencies [5a4c557e]
28
+ - Updated dependencies [e04914ce]
29
+ - Updated dependencies [ca7dcb32]
30
+ - Updated dependencies [ecb344dc]
31
+ - @modern-js/core@1.2.0
32
+ - @modern-js/server-plugin@1.1.3
33
+ - @modern-js/utils@1.1.5
34
+
35
+ ## 1.1.4
4
36
 
5
37
  ### Patch Changes
6
38
 
@@ -12,12 +44,8 @@
12
44
  - Updated dependencies [d73ff455]
13
45
  - Updated dependencies [d73ff455]
14
46
  - Updated dependencies [d73ff455]
15
- - @modern-js/utils@1.1.4-rc.0
16
- - @modern-js/core@1.1.4-rc.0
17
- - @modern-js/bff-utils@1.1.2-rc.0
18
- - @modern-js/server-plugin@1.1.2
19
- - @modern-js/adapter-helpers@1.1.1
20
- - @modern-js/bff-runtime@1.1.2-rc.0
47
+ - @modern-js/utils@1.1.4
48
+ - @modern-js/core@1.1.4
21
49
 
22
50
  ## 1.1.3
23
51
 
@@ -16,7 +16,7 @@ export default createPlugin(() => {
16
16
 
17
17
  let relativeRuntimePath = path.join('../', path.relative(appDirectory, serverRuntimePath));
18
18
 
19
- if (process.env.NODE_ENV === 'development') {
19
+ if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
20
20
  relativeRuntimePath = `./${path.relative(appDirectory, serverRuntimePath)}`;
21
21
  }
22
22
 
@@ -30,7 +30,7 @@ var _default = (0, _core.createPlugin)(() => {
30
30
 
31
31
  let relativeRuntimePath = path.join('../', path.relative(appDirectory, serverRuntimePath));
32
32
 
33
- if (process.env.NODE_ENV === 'development') {
33
+ if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test') {
34
34
  relativeRuntimePath = `./${path.relative(appDirectory, serverRuntimePath)}`;
35
35
  }
36
36
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.4-rc.0",
14
+ "version": "1.2.1-rc.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.15.3",
32
32
  "@modern-js/adapter-helpers": "^1.1.1",
33
- "@modern-js/utils": "^1.1.4-rc.0",
33
+ "@modern-js/utils": "^1.1.6-rc.0",
34
34
  "cookie-parser": "^1.4.5",
35
35
  "finalhandler": "^1.1.2",
36
36
  "formidable": "^1.2.2",
@@ -51,10 +51,10 @@
51
51
  "supertest": "^6.1.6",
52
52
  "typescript": "^4",
53
53
  "@modern-js/bff-utils": "^1.1.2-rc.0",
54
- "@modern-js/core": "^1.1.4-rc.0",
55
- "@modern-js/server-plugin": "^1.1.2",
56
- "@modern-js/plugin-testing": "^1.1.1",
57
- "@modern-js/module-tools": "^1.1.1"
54
+ "@modern-js/core": "^1.2.1-rc.0",
55
+ "@modern-js/server-plugin": "^1.1.4-rc.0",
56
+ "@modern-js/plugin-testing": "^1.2.2",
57
+ "@modern-js/module-tools": "^1.1.4"
58
58
  },
59
59
  "modernConfig": {
60
60
  "output": {
@@ -63,8 +63,8 @@
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@modern-js/bff-utils": "^1.1.2-rc.0",
66
- "@modern-js/core": "^1.1.4-rc.0",
67
- "@modern-js/server-plugin": "^1.1.2",
66
+ "@modern-js/core": "^1.2.1-rc.0",
67
+ "@modern-js/server-plugin": "^1.1.4-rc.0",
68
68
  "@modern-js/bff-runtime": "^1.1.2-rc.0",
69
69
  "express": "^4.17.1"
70
70
  },
@@ -75,7 +75,7 @@
75
75
  "scripts": {
76
76
  "new": "modern new",
77
77
  "build": "modern build",
78
- "test": "modern test"
78
+ "test": "modern test --passWithNoTests"
79
79
  },
80
80
  "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
81
81
  }
package/src/cli/index.ts CHANGED
@@ -25,7 +25,10 @@ export default createPlugin(
25
25
  path.relative(appDirectory, serverRuntimePath),
26
26
  );
27
27
 
28
- if (process.env.NODE_ENV === 'development') {
28
+ if (
29
+ process.env.NODE_ENV === 'development' ||
30
+ process.env.NODE_ENV === 'test'
31
+ ) {
29
32
  relativeRuntimePath = `./${path.relative(
30
33
  appDirectory,
31
34
  serverRuntimePath,