-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
70 lines (70 loc) · 3.02 KB
/
package.json
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
{
"name": "antlr4ng",
"version": "3.0.12",
"type": "module",
"description": "Alternative JavaScript/TypeScript runtime for ANTLR4",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"repository": "https://github.com/mike-lischke/antlr4ng",
"keywords": [
"lexer",
"parser",
"antlr",
"antlr4",
"grammar",
"TypeScript"
],
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/mike-lischke/antlr4ng/issues"
},
"homepage": "https://github.com/mike-lischke/antlr4ng",
"peerDependencies": {
"antlr4ng-cli": "^2.0.0"
},
"devDependencies": {
"@mike-lischke/antlr-tgen": "1.0.8",
"@types/node": "20.14.9",
"@types/unicode-properties": "1.3.2",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitest/coverage-v8": "2.1.3",
"esbuild": "0.23.0",
"eslint": "8.57.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.10.2",
"eslint-plugin-prefer-arrow": "1.2.3",
"ts-node": "10.9.2",
"typescript": "5.5.4",
"unicode-properties": "1.4.1",
"vitest": "2.1.3"
},
"scripts": {
"prepublishOnly": "npm run build && npm run test",
"build": "tsc && npm run build-cjs && npm run build-mjs",
"build-with-maps": "tsc && npm run build-mjs -- --sourcemap",
"build-and-test": "npm run build && npm run test",
"test": "vitest run --no-watch --no-coverage",
"full-test": "npm run test && npm run run-benchmarks && npm run time-lexer-speed",
"run-benchmarks": "node --no-warnings --experimental-vm-modules --loader ts-node/esm tests/benchmarks/run-benchmarks.ts",
"time-lexer-speed": "node --no-warnings --experimental-vm-modules --loader ts-node/esm tests/api/perf/TimeLexerSpeed.ts",
"generate-test-parsers": "./build/generate-test-parsers.sh",
"generate-runtime-tests": "antlr-tgen --config tests/fixtures/config.json",
"build-bundle": "esbuild ./src/index.js --main-fields=module,main --bundle --target=esnext --keep-names",
"build-mjs": "npm run build-bundle -- --outfile=dist/index.mjs --format=esm",
"build-cjs": "npm run build-bundle -- --outfile=dist/index.cjs --format=cjs",
"generate-xpath-lexer": "node cli/index.js -Dlanguage=TypeScript -o src/tree/xpath/generated -no-visitor -no-listener -Xexact-output-dir src/tree/xpath/XPathLexer.g4",
"profile benchmarks": "node --no-warnings --experimental-vm-modules --prof --loader ts-node/esm tests/benchmarks/run-benchmarks.ts",
"process profile tick file": " node --prof-process isolate-0x140008000-94064-v8.log > processed.txt"
},
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
},
"browserslist": [
"defaults and fully supports es6-module",
"maintained node versions"
]
}