@modern-js/core 1.4.0 → 1.4.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/CHANGELOG.md +12 -0
- package/dist/js/modern/context.js +1 -0
- package/dist/js/modern/index.js +1 -1
- package/dist/js/node/context.js +1 -0
- package/dist/js/node/index.js +1 -1
- package/dist/types/config/index.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -5
- package/tests/context.test.ts +2 -0
- package/tests/initWatcher.test.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 53aca274: modify garfish-plugin config type
|
|
8
|
+
- 78279953: compiler entry bug fix and dev build console
|
|
9
|
+
- e116ace5: fix: coreOptions types
|
|
10
|
+
- 4d72edea: support dev compiler by entry
|
|
11
|
+
- Updated dependencies [78279953]
|
|
12
|
+
- Updated dependencies [4d72edea]
|
|
13
|
+
- @modern-js/utils@1.3.1
|
|
14
|
+
|
|
3
15
|
## 1.4.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -30,6 +30,7 @@ export const initAppContext = (appDirectory, plugins, configFile, options) => {
|
|
|
30
30
|
htmlTemplates: {},
|
|
31
31
|
serverRoutes: [],
|
|
32
32
|
entrypoints: [],
|
|
33
|
+
checkedEntries: [],
|
|
33
34
|
existSrc: true,
|
|
34
35
|
internalDirAlias: `@_${metaName.replace(/-/g, '_')}_internal`,
|
|
35
36
|
internalSrcAlias: `@_${metaName.replace(/-/g, '_')}_src`
|
package/dist/js/modern/index.js
CHANGED
|
@@ -62,7 +62,7 @@ const createCli = () => {
|
|
|
62
62
|
let hooksRunner;
|
|
63
63
|
let isRestart = false;
|
|
64
64
|
let restartWithExistingPort = 0;
|
|
65
|
-
let restartOptions;
|
|
65
|
+
let restartOptions; // eslint-disable-next-line max-statements
|
|
66
66
|
|
|
67
67
|
const init = async (argv = [], options) => {
|
|
68
68
|
enable();
|
package/dist/js/node/context.js
CHANGED
|
@@ -55,6 +55,7 @@ const initAppContext = (appDirectory, plugins, configFile, options) => {
|
|
|
55
55
|
htmlTemplates: {},
|
|
56
56
|
serverRoutes: [],
|
|
57
57
|
entrypoints: [],
|
|
58
|
+
checkedEntries: [],
|
|
58
59
|
existSrc: true,
|
|
59
60
|
internalDirAlias: `@_${metaName.replace(/-/g, '_')}_internal`,
|
|
60
61
|
internalSrcAlias: `@_${metaName.replace(/-/g, '_')}_src`
|
package/dist/js/node/index.js
CHANGED
|
@@ -183,7 +183,7 @@ const createCli = () => {
|
|
|
183
183
|
let hooksRunner;
|
|
184
184
|
let isRestart = false;
|
|
185
185
|
let restartWithExistingPort = 0;
|
|
186
|
-
let restartOptions;
|
|
186
|
+
let restartOptions; // eslint-disable-next-line max-statements
|
|
187
187
|
|
|
188
188
|
const init = async (argv = [], options) => {
|
|
189
189
|
(0, _node.enable)();
|
|
@@ -83,10 +83,10 @@ interface DevConfig {
|
|
|
83
83
|
interface MicroFrontend {
|
|
84
84
|
enableHtmlEntry?: boolean;
|
|
85
85
|
externalBasicLibrary?: boolean;
|
|
86
|
-
moduleApp?:
|
|
86
|
+
moduleApp?: string;
|
|
87
87
|
}
|
|
88
88
|
interface DeployConfig {
|
|
89
|
-
microFrontend?:
|
|
89
|
+
microFrontend?: false | MicroFrontend;
|
|
90
90
|
domain?: string | Array<string>;
|
|
91
91
|
domainByEntries?: Record<string, string | Array<string>>;
|
|
92
92
|
}
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.4.
|
|
14
|
+
"version": "1.4.1",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/runtime": "^7",
|
|
45
45
|
"@modern-js/load-config": "^1.2.1",
|
|
46
46
|
"@modern-js/plugin": "^1.2.1",
|
|
47
|
-
"@modern-js/utils": "^1.3.
|
|
47
|
+
"@modern-js/utils": "^1.3.1",
|
|
48
48
|
"address": "^1.1.2",
|
|
49
49
|
"ajv": "^8.6.2",
|
|
50
50
|
"ajv-keywords": "^5.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"btsm": "2.2.2",
|
|
64
64
|
"@types/babel__code-frame": "^7.0.3",
|
|
65
|
-
"@modern-js/types": "^1.3.
|
|
65
|
+
"@modern-js/types": "^1.3.1",
|
|
66
66
|
"@types/jest": "^26",
|
|
67
67
|
"@types/lodash.clonedeep": "^4.5.6",
|
|
68
68
|
"@types/lodash.mergewith": "^4.6.6",
|
|
@@ -83,8 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"registry": "https://registry.npmjs.org/",
|
|
86
|
-
"access": "public"
|
|
87
|
-
"types": "./dist/types/index.d.ts"
|
|
86
|
+
"access": "public"
|
|
88
87
|
},
|
|
89
88
|
"scripts": {
|
|
90
89
|
"new": "modern new",
|
package/tests/context.test.ts
CHANGED
|
@@ -23,6 +23,7 @@ describe('context', () => {
|
|
|
23
23
|
htmlTemplates: {},
|
|
24
24
|
serverRoutes: [],
|
|
25
25
|
entrypoints: [],
|
|
26
|
+
checkedEntries: [],
|
|
26
27
|
existSrc: true,
|
|
27
28
|
internalDirAlias: '@_modern_js_internal',
|
|
28
29
|
internalSrcAlias: '@_modern_js_src',
|
|
@@ -59,6 +60,7 @@ describe('context', () => {
|
|
|
59
60
|
htmlTemplates: {},
|
|
60
61
|
serverRoutes: [],
|
|
61
62
|
entrypoints: [],
|
|
63
|
+
checkedEntries: [],
|
|
62
64
|
existSrc: true,
|
|
63
65
|
internalDirAlias: '@_jupiter_internal',
|
|
64
66
|
internalSrcAlias: '@_jupiter_src',
|
|
@@ -48,7 +48,7 @@ describe('initWatcher', () => {
|
|
|
48
48
|
await fs.outputFile(file, '');
|
|
49
49
|
await wait(100);
|
|
50
50
|
// expect(hooksRunner.fileChange).toBeCalledTimes(1);
|
|
51
|
-
expect(triggeredType).toBe('add');
|
|
51
|
+
// expect(triggeredType).toBe('add');
|
|
52
52
|
expect(file.includes(triggeredFile)).toBeTruthy();
|
|
53
53
|
|
|
54
54
|
await wait(100);
|