@modern-js/babel-compiler 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,17 +1,12 @@
1
1
  # @modern-js/babel-compiler
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
7
+ - ca7dcb32: change watch logic
8
+ - Updated dependencies [ca7dcb32]
9
+ - @modern-js/utils@1.1.5
15
10
 
16
11
  ## 1.1.2
17
12
 
@@ -54,7 +54,7 @@ export const runBuildWatch = async (option, babelConfig = {}, emitter) => {
54
54
  emitter.emit(BuildWatchEvent.firstCompiler, fisrtBuildResult);
55
55
  }
56
56
 
57
- return watch(watchDir, async ({
57
+ return watch(`${watchDir}/**/*.{js,jsx,ts,tsx}`, async ({
58
58
  changeType,
59
59
  changedFilePath
60
60
  }) => {
@@ -75,7 +75,7 @@ const runBuildWatch = async (option, babelConfig = {}, emitter) => {
75
75
  emitter.emit(BuildWatchEvent.firstCompiler, fisrtBuildResult);
76
76
  }
77
77
 
78
- return (0, _utils.watch)(watchDir, async ({
78
+ return (0, _utils.watch)(`${watchDir}/**/*.{js,jsx,ts,tsx}`, async ({
79
79
  changeType,
80
80
  changedFilePath
81
81
  }) => {
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",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@babel/core": "^7.15.0",
31
31
  "@babel/runtime": "^7",
32
- "@modern-js/utils": "^1.1.4-rc.0",
32
+ "@modern-js/utils": "^1.1.5",
33
33
  "chokidar": "^3.5.2",
34
34
  "glob": "^7.1.6"
35
35
  },
@@ -43,7 +43,7 @@
43
43
  "jest-jasmine2": "^27.2.2",
44
44
  "typescript": "^4",
45
45
  "@modern-js/plugin-testing": "^1.1.1",
46
- "@modern-js/module-tools": "^1.1.1"
46
+ "@modern-js/module-tools": "^1.1.2"
47
47
  },
48
48
  "sideEffects": false,
49
49
  "modernConfig": {
package/src/buildWatch.ts CHANGED
@@ -55,7 +55,7 @@ export const runBuildWatch = async (
55
55
  }
56
56
 
57
57
  return watch(
58
- watchDir,
58
+ `${watchDir}/**/*.{js,jsx,ts,tsx}`,
59
59
  async ({ changeType, changedFilePath }) => {
60
60
  emitter.emit(BuildWatchEvent.compiling);
61
61
  if (changeType === WatchChangeType.UNLINK) {