···11-// this script makes sure that `@atcute/atproto` and `@atcute/bluesky` never
22-// makes it into the generated d.ts file, as it'd mean we'd have to include it
33-// as a peer dependency.
44-55-import * as fs from 'node:fs/promises';
66-77-const PATTERN_RE = / from ['"](@atcute\/atproto)['"/]/;
88-const files = [];
99-1010-for await (const filename of fs.glob('dist/**/*.d.ts')) {
1111- const content = await fs.readFile(filename, 'utf8');
1212-1313- if (PATTERN_RE.test(content)) {
1414- files.push(filename);
1515- }
1616-}
1717-1818-if (files.length > 0) {
1919- console.error(`found ${files.length} files referencing a dev dependency`);
2020-2121- for (const file of files) {
2222- console.error(`- ${file}`);
2323- }
2424-2525- process.exit(1);
2626-} else {
2727- console.error(`output ok!`);
2828-}