ts-purify
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -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 @@ } |
@@ -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
19589
308
+ Addedcousin-harris@2.0.3(transitive)
- Removedcousin-harris@1.0.0(transitive)
Updatedcousin-harris@^2.0.0