Comparing version 1.0.9-dev.20210708.2 to 1.0.9-dev.20210715.1
module.exports = { | ||
dependencies: [ 'glob' ], | ||
customProperties: [ 'compilerOptions.allowTS' ], | ||
config: [ 'compilerOptions.allowTS' ], | ||
arguments: { | ||
copyFiles: [ 'cf', 'copy-files' ], | ||
excludeFiles: [ 'ef', 'exclude-files' ] | ||
}, | ||
onPostCompilation: function() { | ||
@@ -9,3 +13,10 @@ const path = require('path'); | ||
const include = this.tsconfig.include?.map(file => path.resolve(this.tsconfigDir, file)); | ||
if (this.copyFiles) { | ||
include.push(...this.copyFiles?.split(' ')?.map(file => path.resolve(process.cwd(), file.trim()))); | ||
} | ||
const ignore = this.tsconfig.exclude?.map(file => path.resolve(this.tsconfigDir, file)); | ||
if (this.excludeFiles) { | ||
ignore.push(...this.excludeFiles?.split(' ')?.map(file => path.resolve(process.cwd(), file.trim()))); | ||
} | ||
@@ -12,0 +23,0 @@ const files = include?.reduce((files, file) => this.glob.sync(file, { ignore }), []) || []; |
{ | ||
"name": "tsc-hooks", | ||
"version": "1.0.9-dev.20210708.2", | ||
"version": "1.0.9-dev.20210715.1", | ||
"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
107376
140