move to native esm
master
Kebler Network System Administrator 2021-04-24 09:55:59 -07:00
parent 401b3c494c
commit 3d036ac7a0
7 changed files with 15 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/node_modules/ /node_modules/
/coverage/ /coverage/
/.vscode/

View File

@ -1,4 +1,4 @@
import Watcher from '../src/watcher' import Watcher from '../src/watcher.js'
import onDeath from 'ondeath' import onDeath from 'ondeath'
const USE_CUSTOM_HANDLER=true const USE_CUSTOM_HANDLER=true

View File

@ -1 +1,2 @@
**/node_modules/** **/node_modules/**
**/ignoreFolder

View File

@ -1,3 +1,4 @@
this was modified some moreddddddd this was modified some moreddddddd
modified modified
changes changes
some more changes

View File

1
example/repo/test Normal file
View File

@ -0,0 +1 @@
test changes

View File

@ -1,12 +1,13 @@
{ {
"name": "@uci-utils/watcher", "name": "@uci-utils/watcher",
"version": "0.5.4", "version": "0.6.0",
"description": "File System Watcher Class that emits events", "description": "File System Watcher Class that emits events",
"main": "src/watcher.js", "main": "src/watcher.js",
"type": "module",
"scripts": { "scripts": {
"exampled": "UCI_ENV=dev UCI_LOG_LEVEL=debug ./node_modules/.bin/nodemon -r esm ./example/example.js", "exampled": "UCI_ENV=dev UCI_LOG_LEVEL=debug ./node_modules/.bin/nodemon ./example/example.js",
"test": "./node_modules/.bin/mocha -r esm --timeout 30000", "test": "./node_modules/.bin/mocha --timeout 30000",
"testd": "UCI_ENV=dev ./node_modules/.bin/nodemon --exec './node_modules/.bin/mocha -r esm --timeout 30000' || exit 0", "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", "testdd": "UCI_LOG_LEVEL='trace' npm run testd",
"testde": "UCI_LOG_LEVEL='warn' 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" "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", "homepage": "https://github.com/uCOMmandIt/uci-utils#readme",
"dependencies": { "dependencies": {
"@uci-utils/logger": "0.0.18", "@uci-utils/logger": "0.1.0",
"@uci-utils/read-lines": "^0.2.2", "@uci-utils/read-lines": "^0.3.0",
"chokidar": "^3.5.1", "chokidar": "^3.5.1",
"debounce-fn": "^4.0.0" "debounce-fn": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"chai": "^4.3.3", "chai": "^4.3.4",
"esm": "^3.2.25", "mocha": "^8.3.2",
"mocha": "^8.3.1",
"nodemon": "^2.0.7", "nodemon": "^2.0.7",
"ondeath": "^1.0.0" "ondeath": "^1.0.0"
} }