Skip to content

Commit

Permalink
fix(ui): stop depending on the watch package (#6635)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored Aug 20, 2021
1 parent c1bf3d8 commit ded81c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui/apollo-server/connectors/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ function loadFolder (root, context) {
const folder = path.join(root, './locales')
if (process.env.VUE_APP_CLI_UI_DEV && !watchedTrees.get(root) && fs.existsSync(folder)) {
watchedTrees.set(root, true)
const watch = require('watch')
watch.watchTree(folder, () => {
const chokidar = require('chokidar')
chokidar.watch(folder).on('all', () => {
_loadFolder(root, context)
log('Locales reloaded', root)
})
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
"prismjs": "^1.23.0",
"rss-parser": "^3.11.0",
"shortid": "^2.2.15",
"typescript": "~4.1.5",
"watch": "^1.0.2"
"typescript": "~4.1.5"
},
"devDependencies": {
"@babel/core": "^7.12.16",
Expand All @@ -75,6 +74,7 @@
"ansi_up": "^5.0.0",
"apollo-client": "^2.6.10",
"apollo-link": "^1.2.14",
"chokidar": "^3.5.2",
"core-js": "^3.8.3",
"cross-env": "^7.0.3",
"date-fns": "^2.17.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7128,7 +7128,7 @@ chokidar@3.5.1:
optionalDependencies:
fsevents "~2.3.1"

chokidar@3.5.2, "chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.2.2, chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.1:
chokidar@3.5.2, "chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.2.2, chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.1, chokidar@^3.5.2:
version "3.5.2"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75"
integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==
Expand Down

0 comments on commit ded81c6

Please sign in to comment.