vite-plugin-watch-and-run
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -143,11 +143,11 @@ "use strict"; | ||
// check params, throw Errors if not valid and return a new object representing the state of the plugin | ||
const watchAndRunConf = await checkConf(params); | ||
exports.kindWithPath.forEach((kind) => { | ||
const watchAndRunConf = checkConf(params); | ||
for (const kind of exports.kindWithPath) { | ||
const _watcher = async (absolutePath) => watcher(absolutePath, kind, watchAndRunConf); | ||
server.watcher.on(kind, _watcher); | ||
}); | ||
exports.kindWithoutPath.forEach((kind) => { | ||
} | ||
for (const kind of exports.kindWithoutPath) { | ||
const _watcher = () => watcher(null, kind, watchAndRunConf); | ||
server.watcher.on(kind, _watcher); | ||
}); | ||
} | ||
}, | ||
@@ -154,0 +154,0 @@ }; |
@@ -139,13 +139,13 @@ import { Log, logCyan, logGreen, logMagneta, logRed } from '@kitql/helper'; | ||
// check params, throw Errors if not valid and return a new object representing the state of the plugin | ||
const watchAndRunConf = await checkConf(params); | ||
kindWithPath.forEach((kind) => { | ||
const watchAndRunConf = checkConf(params); | ||
for (const kind of kindWithPath) { | ||
const _watcher = async (absolutePath) => watcher(absolutePath, kind, watchAndRunConf); | ||
server.watcher.on(kind, _watcher); | ||
}); | ||
kindWithoutPath.forEach((kind) => { | ||
} | ||
for (const kind of kindWithoutPath) { | ||
const _watcher = () => watcher(null, kind, watchAndRunConf); | ||
server.watcher.on(kind, _watcher); | ||
}); | ||
} | ||
}, | ||
}; | ||
} |
{ | ||
"name": "vite-plugin-watch-and-run", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "vite-plugin that will watch some files and run a package.json script on change", | ||
"dependencies": { | ||
"@kitql/helper": "0.6.1", | ||
"micromatch": "4.0.5" | ||
"micromatch": "4.0.5", | ||
"@kitql/helper": "0.6.1" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
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
18621
1