Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
dcf5c6ab22 | |||
00480a27e0 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.0.14",
|
"version": "1.0.15",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@gitzone/tsrun",
|
||||||
"version": "1.0.14",
|
"version": "1.0.15",
|
||||||
"description": "run typescript programs efficiently",
|
"description": "run typescript programs efficiently",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
@ -4,12 +4,7 @@ import * as path from 'path';
|
|||||||
|
|
||||||
const run = async () => {
|
const run = async () => {
|
||||||
const tsCacheDir = path.join(__dirname, '../tscache');
|
const tsCacheDir = path.join(__dirname, '../tscache');
|
||||||
const tsCacheFiles: string[] = await smartfile.fs.listFolders(tsCacheDir) as any;
|
await smartfile.fs.ensureEmptyDir(tsCacheDir);
|
||||||
for(const dir of tsCacheFiles) {
|
|
||||||
console.log(`Removing cache directory ${dir}`);
|
|
||||||
let dirToRemove = path.join(tsCacheDir, dir);
|
|
||||||
await smartfile.fs.removeSync(dirToRemove);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run()
|
run()
|
||||||
|
Reference in New Issue
Block a user