Comparing version 1.1.2-beta.2 to 1.1.2-beta.3
@@ -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 |
@@ -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", |
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
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
115435
242