Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsc-hooks

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-hooks - npm Package Compare versions

Comparing version 1.1.0-dev.20210821.1 to 1.1.0-dev.20210821.2

2

lib/injection.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc