Skip to content

Commit a807056

Browse files
committed
chore(NODE-5247): update dependencies
1 parent bf92d10 commit a807056

File tree

4 files changed

+1706
-8424
lines changed

4 files changed

+1706
-8424
lines changed

etc/clean_definition_files.cjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#! /usr/bin/env node
2+
/* eslint-disable @typescript-eslint/no-var-requires */
3+
const fs = require('fs');
4+
const path = require('path');
5+
6+
function* walk(root) {
7+
const directoryContents = fs.readdirSync(root);
8+
for (const filepath of directoryContents) {
9+
const fullPath = path.join(root, filepath);
10+
const stat = fs.statSync(fullPath);
11+
if (stat.isDirectory()) {
12+
yield* walk(fullPath);
13+
} else if (stat.isFile()) {
14+
yield fullPath;
15+
}
16+
}
17+
}
18+
19+
const libPath = path.resolve(__dirname, '..', 'lib');
20+
if (fs.existsSync(libPath)) {
21+
const definitionFiles = Array.from(walk(libPath)).filter(filePath => {
22+
return filePath.endsWith('.d.ts') || filePath.endsWith('.d.ts.map');
23+
});
24+
for (const definitionFile of definitionFiles) {
25+
fs.unlinkSync(definitionFile);
26+
}
27+
}

etc/crawfish.mjs

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)