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.2-beta.2 to 1.1.2-beta.3

1

docs/TODO.md

@@ -9,1 +9,2 @@ - Only cache hooks that are requested, then take from GitHub/put hooks in npmignore

- Add arguments
- Make tests run locally instead of needing a dev publish

23

hooks/copy-files/copy-files.hook.js

@@ -35,5 +35,3 @@ let include, exclude;

const files = glob.sync(includedFromConfig, { cwd });
for (const file of files) {
includedFiles.add(file);
}
files.forEach(includedFiles.add.bind(includedFiles));
}

@@ -44,5 +42,3 @@

const files = glob.sync(excludedFromConfig, { cwd });
for (const file of files) {
includedFiles.delete(file);
}
files.forEach(includedFiles.delete.bind(includedFiles));
}

@@ -53,9 +49,16 @@

const outFile = outDir ? file.replace(rootRegex, outDir) : file;
if (fs.lstatSync(file).isDirectory()) {
fs.mkdirSync(outFile, { recursive: true });
} else if (!file.endsWith('js') || !(file.endsWith('ts') && !api.tsconfig?.compilerOptions?.allowTs)) {
fs.copyFileSync(file, outFile);
if (!fs.lstatSync(file).isFile()) continue;
if (file.endsWith('js')) continue;
if (file.endsWith('ts') && !api.tsconfig?.compilerOptions?.allowTs) continue;
const dir = path.dirname(outFile);
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true });
}
fs.copyFileSync(file, outFile);
}
}
}
{
"name": "tsc-hooks",
"version": "1.1.2-beta.2",
"version": "1.1.2-beta.3",
"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