remove snyk (its making the project huge)

This commit is contained in:
undefined committed 2020-07-19 19:12:44 +08:00
1 parent 67cb68a9c0
commit 2aa962350f
10 files changed
+53 -2624

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ const tmp = path.resolve(os.tmpdir(), 'hydro', '__');
export function addon(addonPath: string) {
let modulePath = path.resolve(addonPath);
if (!(fs.existsSync(addonPath) && fs.statSync(addonPath).isFile())) {
if (modulePath.endsWith('.hydro') && !(fs.existsSync(addonPath) && fs.statSync(addonPath).isFile())) {
try {
// Is a npm package
const packagejson = require.resolve(`${addonPath}/package.json`);