An experimental TypeSpec syntax for Lexicon
1{
2 "name": "@typelex/emitter",
3 "version": "0.2.0",
4 "description": "TypeSpec emitter for ATProto Lexicon definitions",
5 "main": "dist/index.js",
6 "type": "module",
7 "files": [
8 "lib",
9 "src",
10 "dist"
11 ],
12 "exports": {
13 ".": {
14 "typespec": "./lib/main.tsp",
15 "types": "./dist/index.d.ts",
16 "default": "./dist/index.js"
17 },
18 "./testing": {
19 "types": "./dist/testing/index.d.ts",
20 "default": "./dist/testing/index.js"
21 }
22 },
23 "tspMain": "lib/main.tsp",
24 "scripts": {
25 "build": "tsc",
26 "test": "npm run build && vitest run",
27 "test:ci": "npm run build && vitest run",
28 "test:watch": "tsc-watch --onSuccess \"vitest run\"",
29 "clean": "rm -rf dist",
30 "watch": "tsc --watch",
31 "prepublishOnly": "npm test"
32 },
33 "keywords": [
34 "typespec",
35 "atproto",
36 "lexicon"
37 ],
38 "author": "Dan Abramov <dan.abramov@gmail.com>",
39 "license": "MIT",
40 "dependencies": {
41 "@typespec/compiler": "^1.4.0"
42 },
43 "devDependencies": {
44 "@types/node": "^20.0.0",
45 "@typespec/http": "^1.4.0",
46 "@typespec/openapi": "^1.4.0",
47 "concurrently": "^9.2.1",
48 "tsc-watch": "^7.2.0",
49 "typescript": "^5.0.0",
50 "vitest": "^1.0.0"
51 },
52 "peerDependencies": {
53 "@typespec/compiler": "^1.4.0"
54 },
55 "typespec": {
56 "emitter": {
57 "entrypoint": "./dist/index.js"
58 }
59 }
60}