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.0.9-dev.20210708.2 to 1.0.9-dev.20210715.1

13

hooks/copy-files.js
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 }), []) || [];

2

package.json
{
"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",

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