Comparing version 2.2.0 to 4.0.0
@@ -7,2 +7,3 @@ #!/usr/bin/env node | ||
const yaml = require("yaml"); | ||
const { globSync } = require("glob"); | ||
@@ -19,3 +20,3 @@ let js2yamlConfig; | ||
const cache = {}; | ||
const watcher = chokidar.watch(config.watch); | ||
const watcher = chokidar.watch(globSync(config.watch)); | ||
watcher.on("change", (path) => { | ||
@@ -22,0 +23,0 @@ try { |
{ | ||
"name": "js2yaml", | ||
"description": "Create configurations with the power of Javascript and convert it to YAML.", | ||
"version": "2.2.0", | ||
"version": "4.0.0", | ||
"license": "MIT", | ||
@@ -21,5 +21,6 @@ "author": "Maik Jablonski <jablonski@neoskop.de> (https://www.neoskop.de)", | ||
"dependencies": { | ||
"chokidar": "3.6.0", | ||
"yaml": "2.5.0" | ||
"chokidar": "4.0.1", | ||
"glob": "11.0.0", | ||
"yaml": "2.5.1" | ||
} | ||
} |
4896
63
3
+ Addedglob@11.0.0
+ Added@isaacs/cliui@8.0.2(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedchokidar@4.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@11.0.0(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@4.0.2(transitive)
+ Addedlru-cache@11.0.2(transitive)
+ Addedminimatch@10.0.1(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@2.0.0(transitive)
+ Addedreaddirp@4.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
+ Addedyaml@2.5.1(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedyaml@2.5.0(transitive)
Updatedchokidar@4.0.1
Updatedyaml@2.5.1