@hong97/tslint
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@hong97/tslint", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "hongding", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,3 +24,3 @@ #!/usr/bin/env node | ||
// run tsc first | ||
const runTsc = tscFiles(inputFiles, TSC_OUTPUT_FILE_NAME) | ||
const runTsc = tscFiles(inputFiles, TSC_OUTPUT_FILE_NAME, config?.alwaysInclude) | ||
// if tsc exit with 0, than do nothing | ||
@@ -27,0 +27,0 @@ if (runTsc === 0) { |
@@ -5,3 +5,3 @@ const { spawnSync } = require("child_process"); | ||
module.exports = function tscFiles(args, tscOutputFileName) { | ||
module.exports = function tscFiles(args, tscOutputFileName, alwaysInclude) { | ||
const randomChars = () => { | ||
@@ -56,3 +56,3 @@ return Math.random().toString(36).slice(2); | ||
files, | ||
include: [], | ||
include: Array.isArray(alwaysInclude) ? alwaysInclude : [], | ||
}; | ||
@@ -59,0 +59,0 @@ fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2)); |
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
799695