Skip to content

Commit

Permalink
released v2.4.0 #144
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 27, 2020
1 parent 25961d6 commit 259c2a0
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"keywords": [],
"author": "",
"devDependencies": {
"mocker-api": "2.3.5"
"mocker-api": "2.4.0"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion example/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"nodemon": "2.0.4"
},
"devDependencies": {
"mocker-api": "2.3.5"
"mocker-api": "2.4.0"
}
}
2 changes: 1 addition & 1 deletion example/loadData/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"keywords": [],
"author": "",
"devDependencies": {
"mocker-api": "2.3.5"
"mocker-api": "2.4.0"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion example/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "ISC",
"dependencies": {
"@types/express": "4.17.8",
"mocker-api": "2.3.5",
"mocker-api": "2.4.0",
"express": "4.17.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion example/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "MIT",
"devDependencies": {
"html-webpack-plugin": "4.5.0",
"mocker-api": "2.3.5",
"mocker-api": "2.4.0",
"webpack": "4.44.1",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocker-api",
"version": "2.3.5",
"version": "2.4.0",
"description": "This is dev support mock RESTful API.",
"bin": {
"mocker": "lib/bin/mocker.js"
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ export default function (app: Application, watchFile: string | string[] | Mocker
// header = {}

if (isWatchFilePath) {
console.log('isWatchFilePath:', isWatchFilePath)
// 监听配置入口文件所在的目录,一般为认为在配置文件/mock 目录下的所有文件
// 加上require.resolve,保证 `./mock/`能够找到`./mock/index.js`,要不然就要监控到上一级目录了
const watcher = chokidar.watch(watchFiles.map(watchFile => PATH.dirname(require.resolve(watchFile))), options.watchOptions);
Expand Down

0 comments on commit 259c2a0

Please sign in to comment.