a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(oauth-browser-client): remove stuff

Mary b2f65299 541549a8

-33
-5
packages/oauth/browser-client/package.json
··· 20 20 "sideEffects": false, 21 21 "scripts": { 22 22 "build": "tsc --project tsconfig.build.json", 23 - "postbuild": "node ./scripts/ensure-files.js", 24 23 "prepublish": "rm -rf dist; pnpm run build" 25 24 }, 26 25 "dependencies": { 27 26 "@atcute/client": "workspace:^", 28 - "@atcute/identity": "workspace:^", 29 27 "@atcute/identity-resolver": "workspace:^", 30 28 "@atcute/lexicons": "workspace:^", 31 29 "@atcute/multibase": "workspace:^", 32 30 "@atcute/uint8array": "workspace:^", 33 31 "nanoid": "^5.1.6" 34 - }, 35 - "devDependencies": { 36 - "@atcute/atproto": "workspace:^" 37 32 } 38 33 }
-28
packages/oauth/browser-client/scripts/ensure-files.js
··· 1 - // this script makes sure that `@atcute/atproto` and `@atcute/bluesky` never 2 - // makes it into the generated d.ts file, as it'd mean we'd have to include it 3 - // as a peer dependency. 4 - 5 - import * as fs from 'node:fs/promises'; 6 - 7 - const PATTERN_RE = / from ['"](@atcute\/atproto)['"/]/; 8 - const files = []; 9 - 10 - for await (const filename of fs.glob('dist/**/*.d.ts')) { 11 - const content = await fs.readFile(filename, 'utf8'); 12 - 13 - if (PATTERN_RE.test(content)) { 14 - files.push(filename); 15 - } 16 - } 17 - 18 - if (files.length > 0) { 19 - console.error(`found ${files.length} files referencing a dev dependency`); 20 - 21 - for (const file of files) { 22 - console.error(`- ${file}`); 23 - } 24 - 25 - process.exit(1); 26 - } else { 27 - console.error(`output ok!`); 28 - }