@databases/shared-print-types
Advanced tools
Comparing version 1.1.0-canary-1688 to 1.1.0-canary-1691
@@ -13,9 +13,10 @@ "use strict"; | ||
await Promise.all((await fs_1.promises.readdir(directory)) | ||
.filter((e) => !filenames.has(e)) | ||
.map((e) => (0, path_1.join)(directory, e)) | ||
.map(async (e) => { | ||
if ((await fs_1.promises.stat(e)).isFile()) { | ||
const src = await fs_1.promises.readFile(e, 'utf8'); | ||
.filter((fileName) => !filenames.has(fileName)) | ||
.map(async (fileName) => { | ||
const filePath = (0, path_1.join)(directory, fileName); | ||
if ((await fs_1.promises.stat(filePath)).isFile()) { | ||
const src = await fs_1.promises.readFile(filePath, 'utf8'); | ||
if (src.includes(generatedStatement)) { | ||
await fs_1.promises.unlink(e); | ||
console.info(`Deleting: ${fileName}`); | ||
await fs_1.promises.unlink(filePath); | ||
} | ||
@@ -36,2 +37,3 @@ } | ||
} | ||
console.info(`Updating: ${f.filename}`); | ||
} | ||
@@ -42,4 +44,4 @@ catch (ex) { | ||
} | ||
console.info(`Writing: ${f.filename}`); | ||
} | ||
console.info(`Updating: ${f.filename}`); | ||
await fs_1.promises.writeFile(filename, [ | ||
@@ -66,2 +68,3 @@ `/**`, | ||
} | ||
console.info(`Updating: ${f.filename}`); | ||
} | ||
@@ -72,2 +75,3 @@ catch (ex) { | ||
} | ||
console.info(`Writing: ${f.filename}`); | ||
} | ||
@@ -74,0 +78,0 @@ await fs_1.promises.writeFile(filename, f.content); |
{ | ||
"name": "@databases/shared-print-types", | ||
"version": "1.1.0-canary-1688", | ||
"version": "1.1.0-canary-1691", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
72536
414