5b19d390b3
* Rename `lex-password-agent` to `lex-password-session` * tidy * tidy * tidy * improve 2fa * tests * tidy * tidy * tidy * tidy * tidy
28 lines
752 B
JavaScript
28 lines
752 B
JavaScript
/* eslint-env node */
|
|
|
|
import { dirname, join } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { build } from '@atproto/lex-builder'
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
|
|
build({
|
|
lexicons: join(__dirname, '..', '..', '..', '..', 'lexicons'),
|
|
out: join(__dirname, '..', 'src', 'lexicons'),
|
|
clear: true,
|
|
include: [
|
|
'com.atproto.server.getSession',
|
|
'com.atproto.server.createAccount',
|
|
'com.atproto.server.createSession',
|
|
'com.atproto.server.deleteSession',
|
|
'com.atproto.server.refreshSession',
|
|
],
|
|
lib: '@atproto/lex-schema',
|
|
pretty: true,
|
|
pureAnnotations: true,
|
|
indexFile: true,
|
|
}).catch((err) => {
|
|
console.error('Error building lexicon schemas:', err)
|
|
process.exit(1)
|
|
})
|