Socket
Socket
Sign inDemoInstall

ts-purify

Package Overview
Dependencies
13
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 3.0.0

5

dist/command.js

@@ -41,3 +41,6 @@ "use strict";

if (watch) {
await _1.watchSourceAndCleanDest(srcDir, destDir, options);
const stopWatching = await _1.watchSourceAndCleanDest(srcDir, destDir, options);
process.on('exit', () => {
stopWatching();
});
}

@@ -44,0 +47,0 @@ }

2

dist/index.d.ts

@@ -7,2 +7,2 @@ export interface Options {

export declare function cleanAllFiles(srcDir: string, destDir: string, options?: Options): Promise<void[]>;
export declare function watchSourceAndCleanDest(srcDir: string, destDir: string, options?: Options): Promise<never>;
export declare function watchSourceAndCleanDest(srcDir: string, destDir: string, options?: Options): Promise<() => Promise<void>>;
{
"name": "ts-purify",
"version": "2.0.2",
"version": "3.0.0",
"description": "ensure compiled typescript files are removed when the corresponding source files are",

@@ -35,3 +35,3 @@ "author": "insidewhy <github@chilon.net>",

"dependencies": {
"cousin-harris": "^1.0.0",
"cousin-harris": "^2.0.0",
"minimatch": "^3.0.4"

@@ -38,0 +38,0 @@ },

@@ -34,3 +34,6 @@ import { cleanAllFiles, watchSourceAndCleanDest, Options } from '.'

if (watch) {
await watchSourceAndCleanDest(srcDir, destDir, options)
const stopWatching = await watchSourceAndCleanDest(srcDir, destDir, options)
process.on('exit', () => {
stopWatching()
})
}

@@ -37,0 +40,0 @@ }

@@ -82,3 +82,3 @@ import cousinHarris from 'cousin-harris'

options: Options = {},
): Promise<never> {
): Promise<() => Promise<void>> {
return cousinHarris(

@@ -85,0 +85,0 @@ [srcDir],

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc