@modern-js/plugin-docsite 1.1.3-rc.0 → 1.1.3

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,19 +1,18 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
- ## 1.1.3-rc.0
3
+ ## 1.1.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [d927bc83]
8
- - Updated dependencies [d73ff455]
9
- - Updated dependencies [9c1ab865]
10
- - Updated dependencies [d73ff455]
11
- - Updated dependencies [d73ff455]
12
- - Updated dependencies [d73ff455]
13
- - Updated dependencies [d73ff455]
14
- - @modern-js/utils@1.1.4-rc.0
15
- - @modern-js/core@1.1.4-rc.0
16
- - @modern-js/webpack@1.1.4-rc.0
7
+ - ca7dcb32: add CORE_INIT_OPTION_FILE env
8
+ - Updated dependencies [90eeb72c]
9
+ - Updated dependencies [e04914ce]
10
+ - Updated dependencies [5a4c557e]
11
+ - Updated dependencies [e04914ce]
12
+ - Updated dependencies [ca7dcb32]
13
+ - Updated dependencies [ecb344dc]
14
+ - @modern-js/core@1.2.0
15
+ - @modern-js/utils@1.1.5
17
16
 
18
17
  ## 1.1.2
19
18
 
@@ -14,9 +14,17 @@ const taskMain = async ({
14
14
  };
15
15
 
16
16
  (async () => {
17
+ let options;
18
+
19
+ if (process.env.CORE_INIT_OPTION_FILE) {
20
+ ({
21
+ options
22
+ } = require(process.env.CORE_INIT_OPTION_FILE));
23
+ }
24
+
17
25
  const {
18
26
  appContext
19
- } = await core.cli.init();
27
+ } = await core.cli.init([], options);
20
28
  await core.manager.run(async () => {
21
29
  try {
22
30
  await taskMain({
@@ -18,9 +18,17 @@ const taskMain = async ({
18
18
  };
19
19
 
20
20
  (async () => {
21
+ let options;
22
+
23
+ if (process.env.CORE_INIT_OPTION_FILE) {
24
+ ({
25
+ options
26
+ } = require(process.env.CORE_INIT_OPTION_FILE));
27
+ }
28
+
21
29
  const {
22
30
  appContext
23
- } = await core.cli.init();
31
+ } = await core.cli.init([], options);
24
32
  await core.manager.run(async () => {
25
33
  try {
26
34
  await taskMain({
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.3-rc.0",
14
+ "version": "1.1.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -33,8 +33,8 @@
33
33
  "@babel/runtime": "^7",
34
34
  "@mdx-js/mdx": "^1.6.22",
35
35
  "@mdx-js/react": "^1.6.22",
36
- "@modern-js/utils": "^1.1.4-rc.0",
37
- "@modern-js/webpack": "^1.1.4-rc.0",
36
+ "@modern-js/utils": "^1.1.5",
37
+ "@modern-js/webpack": "^1.1.2",
38
38
  "antd": "^4.16.13",
39
39
  "chokidar": "^3.5.2",
40
40
  "core-js": "^3.17.2",
@@ -58,7 +58,7 @@
58
58
  "webpack-dev-server": "^4.1.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@modern-js/module-tools-hooks": "^1.1.2-rc.0",
61
+ "@modern-js/module-tools-hooks": "^1.1.1",
62
62
  "@types/core-js": "^2.5.5",
63
63
  "@types/github-slugger": "^1.3.0",
64
64
  "@types/glob": "^7.1.4",
@@ -69,12 +69,12 @@
69
69
  "@types/react-dom": "^17",
70
70
  "@types/webpack-dev-server": "^4.1.0",
71
71
  "typescript": "^4",
72
- "@modern-js/core": "^1.1.4-rc.0",
72
+ "@modern-js/core": "^1.2.0",
73
73
  "@modern-js/plugin-testing": "^1.1.1",
74
- "@modern-js/module-tools": "^1.1.1"
74
+ "@modern-js/module-tools": "^1.1.2"
75
75
  },
76
76
  "peerDependencies": {
77
- "@modern-js/core": "^1.1.4-rc.0"
77
+ "@modern-js/core": "^1.2.0"
78
78
  },
79
79
  "sideEffects": false,
80
80
  "modernConfig": {
package/src/build-task.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IAppContext } from '@modern-js/core';
1
+ import type { IAppContext, CoreOptions } from '@modern-js/core';
2
2
  import { Import } from '@modern-js/utils';
3
3
 
4
4
  const core: typeof import('@modern-js/core') = Import.lazy(
@@ -20,7 +20,11 @@ const taskMain = async ({ appContext }: IBuildTaskOption) => {
20
20
  };
21
21
 
22
22
  (async () => {
23
- const { appContext } = await core.cli.init();
23
+ let options: CoreOptions | undefined;
24
+ if (process.env.CORE_INIT_OPTION_FILE) {
25
+ ({ options } = require(process.env.CORE_INIT_OPTION_FILE));
26
+ }
27
+ const { appContext } = await core.cli.init([], options);
24
28
  await core.manager.run(async () => {
25
29
  try {
26
30
  await taskMain({ appContext });