-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
44 lines (44 loc) · 1.43 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
{
"name": "nanolex",
"version": "0.5.0",
"description": "Parser grammar builder",
"main": "./dist/nanolex.js",
"module": "./dist/nanolex.mjs",
"types": "./dist/nanolex.d.ts",
"scripts": {
"build": "esbuild ./src/nanolex.ts --bundle --minify --sourcemap=linked --outfile=./dist/nanolex.js --format=cjs && esbuild ./src/nanolex.ts --bundle --minify --sourcemap=linked --outfile=./dist/nanolex.mjs --format=esm && npm run declarations",
"dev": "node ./scripts/dev.mjs",
"lint": "deno lint",
"declarations": "tsc --declarationDir dist --emitDeclarationOnly --declaration",
"postbuild": "cat package.json | sed '/\\\"devDependencies\\\"/,/}/ d; /^$/d' | sed 's/\\.\\/dist\\//\\.\\//g' > ./dist/package.json && cp README.md dist && cp LICENSE dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Marcisbee/nanolex.git"
},
"keywords": [
"grammars",
"parsing",
"parser-library",
"tokenizer",
"lexer"
],
"author": "Marcis <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Marcisbee/nanolex/issues"
},
"homepage": "https://github.com/Marcisbee/nanolex#readme",
"devDependencies": {
"esbuild": "^0.20.1",
"typescript": "^5.3.3"
},
"exports": {
"./package.json": "./dist/package.json",
".": {
"types": "./dist/nanolex.d.ts",
"require": "./dist/nanolex.js",
"import": "./dist/nanolex.mjs"
}
}
}