Comparing version 1.1.0-dev.20210821.1 to 1.1.0-dev.20210821.2
@@ -17,3 +17,3 @@ const fs = require('fs'); | ||
for (const hook of tsconfig.hooks || []) { | ||
const hookModule = requireHook(hook); | ||
const hookModule = requireHook(hook, tsconfigDir); | ||
// Add dependencies | ||
@@ -20,0 +20,0 @@ dependencies.push(...hookModule.dependencies); |
@@ -5,3 +5,3 @@ const { execSync } = require('child_process'); | ||
module.exports = function(hook) { | ||
module.exports = function(hook, tsconfigDir) { | ||
if (hook.endsWith('.js')) { | ||
@@ -19,4 +19,4 @@ try { | ||
} else { | ||
return require(path.resolve(__dirname, '../hooks', hook)); | ||
return require(path.resolve(__dirname, '../../hooks', hook)); | ||
} | ||
} |
{ | ||
"name": "tsc-hooks", | ||
"version": "1.1.0-dev.20210821.1", | ||
"version": "1.1.0-dev.20210821.2", | ||
"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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
107946