diff --git a/.gitignore b/.gitignore index e61051f..674b119 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules/ /coverage/ +/.vscode/ diff --git a/example/example.js b/example/example.js index 2b1b600..a2fe05e 100644 --- a/example/example.js +++ b/example/example.js @@ -1,4 +1,4 @@ -import Watcher from '../src/watcher' +import Watcher from '../src/watcher.js' import onDeath from 'ondeath' const USE_CUSTOM_HANDLER=true diff --git a/example/repo/.gitignore b/example/repo/.gitignore index 0979a6c..5f8edc6 100644 --- a/example/repo/.gitignore +++ b/example/repo/.gitignore @@ -1 +1,2 @@ **/node_modules/** +**/ignoreFolder diff --git a/example/repo/dontwatch.js b/example/repo/dontwatch.js index a2dc296..b44964b 100644 --- a/example/repo/dontwatch.js +++ b/example/repo/dontwatch.js @@ -1,3 +1,4 @@ this was modified some moreddddddd modified changes +some more changes diff --git a/example/repo/folder/test-file b/example/repo/folder/test-file new file mode 100644 index 0000000..e69de29 diff --git a/example/repo/test b/example/repo/test new file mode 100644 index 0000000..0e09e0c --- /dev/null +++ b/example/repo/test @@ -0,0 +1 @@ +test changes \ No newline at end of file diff --git a/package.json b/package.json index c81f380..6af267f 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "@uci-utils/watcher", - "version": "0.5.4", + "version": "0.6.0", "description": "File System Watcher Class that emits events", "main": "src/watcher.js", + "type": "module", "scripts": { - "exampled": "UCI_ENV=dev UCI_LOG_LEVEL=debug ./node_modules/.bin/nodemon -r esm ./example/example.js", - "test": "./node_modules/.bin/mocha -r esm --timeout 30000", - "testd": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha -r esm --timeout 30000' || exit 0", + "exampled": "UCI_ENV=dev UCI_LOG_LEVEL=debug ./node_modules/.bin/nodemon ./example/example.js", + "test": "./node_modules/.bin/mocha --timeout 30000", + "testd": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha --timeout 30000' || exit 0", "testdd": "UCI_LOG_LEVEL='trace' npm run testd", "testde": "UCI_LOG_LEVEL='warn' npm run testd", "testl": "UCI_ENV=pro UCI_LOG_PATH=./test/test.log 0 npm run test || exit 0" @@ -29,15 +30,14 @@ }, "homepage": "https://github.com/uCOMmandIt/uci-utils#readme", "dependencies": { - "@uci-utils/logger": "0.0.18", - "@uci-utils/read-lines": "^0.2.2", + "@uci-utils/logger": "0.1.0", + "@uci-utils/read-lines": "^0.3.0", "chokidar": "^3.5.1", - "debounce-fn": "^4.0.0" + "debounce-fn": "^5.0.0" }, "devDependencies": { - "chai": "^4.3.3", - "esm": "^3.2.25", - "mocha": "^8.3.1", + "chai": "^4.3.4", + "mocha": "^8.3.2", "nodemon": "^2.0.7", "ondeath": "^1.0.0" }