|
@@ -1,7 +1,7 @@
|
|
|
-const watch = require( 'glob-watcher' );
|
|
|
+const chokidar = require( 'chokidar' );
|
|
|
const { buildJs } = require( './build-script' );
|
|
|
|
|
|
-watch( [ './src/js/**/*.ts', '!*.test.ts' ], async () => {
|
|
|
+chokidar.watch( [ './src/js/**/*.ts', '!*.test.ts' ] ).on( 'change', async () => {
|
|
|
console.log( 'Building...' );
|
|
|
await buildJs();
|
|
|
console.log( 'Finished' );
|