Comparing version 1.1.2-dev.20211115.3 to 1.1.2-dev.20211115.4
@@ -59,5 +59,5 @@ const fs = require('fs'); | ||
hookModule.onInitCompilation?.(api); | ||
watchDispatcher.add(watchedFiles); | ||
if (hookModule.onWatchCompilation) { | ||
if (hookModule.onWatchCompilation && /--watch|-w/.test(process.argv)) { | ||
watchDispatcher.add(watchedFiles); | ||
watchDispatcher.on('all', (event, path) => hookModule.onWatchCompilation(event, path, api)); | ||
@@ -64,0 +64,0 @@ } |
{ | ||
"name": "tsc-hooks", | ||
"version": "1.1.2-dev.20211115.3", | ||
"version": "1.1.2-dev.20211115.4", | ||
"description": "Add tsc compiler hooks to your TypeScript project", | ||
@@ -5,0 +5,0 @@ "main": "run.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151593