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.1-dev.20210905.9 to 1.1.1-dev.20210905.10

9

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

@@ -13,2 +13,3 @@ const { clear } = require('console');

const glob = require('glob');
const cwd = api.tsconfig?.compilerOptions?.rootDir || api.tsconfig.directory;
const rootRegex = /^([^\/|\\])+/;

@@ -20,3 +21,3 @@ const outDir = api.tsconfig?.compilerOptions?.outDir;

for (const includedFromConfig of api.tsconfig.include) {
const files = glob.sync(includedFromConfig, { cwd: api.tsconfig.directory });
const files = glob.sync(includedFromConfig, { cwd });
for (const file of files) {

@@ -29,3 +30,3 @@ includedFiles.add(file);

for (const excludedFromConfig of api.tsconfig.exclude) {
const files = glob.sync(excludedFromConfig, { cwd: api.tsconfig.directory });
const files = glob.sync(excludedFromConfig, { cwd });
for (const file of files) {

@@ -41,3 +42,3 @@ includedFiles.delete(file);

fs.mkdirSync(outFile, { recursive: true });
} else {
} else if (!file.endsWith('js') || !(file.endsWith('ts') && !api.tsconfig?.compilerOptions?.allowTs)) {
fs.copyFileSync(file, outFile);

@@ -47,2 +48,2 @@ }

}
}
}
{
"name": "tsc-hooks",
"version": "1.1.1-dev.20210905.9",
"version": "1.1.1-dev.20210905.10",
"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