-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 3.64 KB
/
package.json
File metadata and controls
137 lines (137 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "lea-lang",
"version": "1.2.0",
"description": "A pipe-oriented functional programming language, embeddable in TypeScript",
"author": "Max Clayton Clowes",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/mcclowes/lea.git"
},
"homepage": "https://github.com/mcclowes/lea#readme",
"npm": "https://www.npmjs.com/package/lea-lang",
"bugs": {
"url": "https://github.com/mcclowes/lea/issues"
},
"keywords": [
"lea",
"functional",
"pipe",
"pipeline",
"dsl",
"language",
"interpreter"
],
"main": "dist/api.js",
"types": "dist/api.d.ts",
"bin": {
"lea": "./dist/cli/lea.js"
},
"exports": {
".": {
"import": "./dist/api.js",
"require": "./dist/api.js",
"types": "./dist/api.d.ts"
},
"./syntax": {
"import": "./dist/syntax.js",
"require": "./dist/syntax.js",
"types": "./dist/syntax.d.ts"
}
},
"files": [
"dist/api.*",
"dist/syntax.*",
"dist/ast.*",
"dist/errors.*",
"dist/lexer.*",
"dist/parser.*",
"dist/parser/",
"dist/interpreter.*",
"dist/interpreter/",
"dist/token.*",
"dist/cli/",
"dist/repl.*",
"dist/init.*",
"dist/debugger.*",
"dist/README.md",
"!dist/visualizer.*",
"!dist/lsp/"
],
"scripts": {
"build": "tsc -p tsconfig.build.json",
"prepack": "mv README.md README.repo.md && cp README.npm.md README.md",
"postpack": "rm README.md && mv README.repo.md README.md",
"prepublishOnly": "npm run build",
"postversion": "git push && git push --tags",
"repl": "ts-node src/repl.ts",
"lea": "ts-node src/index.ts",
"lea:init": "ts-node src/init.ts",
"visualize": "ts-node src/visualize.ts",
"format": "ts-node src/format.ts",
"lsp": "ts-node src/lsp/server.ts --stdio",
"lsp:build": "tsc -p tsconfig.lsp.json",
"examples": "for f in examples/*.lea; do echo \"\\n=== $f ===\"; ts-node src/index.ts \"$f\"; done",
"test": "jest",
"test:unit": "jest",
"test:all": "jest && npm run test:integration",
"test:integration": "for f in tests/*.lea; do echo \"\\n=== $f ===\"; ts-node src/index.ts \"$f\"; done",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"docs:sync": "node scripts/sync-docs.js",
"vscode:package": "cd vscode-lea && npm run build && vsce package",
"vscode:publish": "cd vscode-lea && npm run build && vsce publish",
"benchmark": "ts-node benchmarks/run.ts",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"prettier": "prettier --write \"src/**/*.ts\"",
"prettier:check": "prettier --check \"src/**/*.ts\"",
"prepare": "husky"
},
"lint-staged": {
"src/**/*.ts": [
"eslint --fix",
"prettier --write"
]
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/__tests__/**/*.test.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"collectCoverageFrom": [
"src/**/*.ts",
"!src/index.ts",
"!src/repl.ts",
"!src/visualize.ts",
"!src/format.ts"
],
"coverageDirectory": "coverage",
"verbose": true
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@types/jest": "^30.0.0",
"@types/node": "^25.0.2",
"eslint": "^9.39.2",
"husky": "^9.1.7",
"jest": "^30.2.0",
"lint-staged": "^16.2.7",
"prettier": "^3.7.4",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"typescript": "^5.3.0",
"typescript-eslint": "^8.50.1",
"vscode-languageserver": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.11"
}
}