package.json
1.7 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
{
"name": "es-module-lexer",
"version": "0.9.3",
"description": "Lexes ES modules returning their import/export metadata",
"main": "dist/lexer.cjs",
"module": "dist/lexer.js",
"types": "types/lexer.d.ts",
"exports": {
".": {
"module": "./dist/lexer.js",
"import": "./dist/lexer.js",
"require": "./dist/lexer.cjs"
},
"./js": "./dist/lexer.asm.js"
},
"scripts": {
"test:js": "mocha -b -u tdd test/*.cjs",
"test:wasm": "cross-env WASM=1 mocha -b -u tdd test/*.cjs",
"test": "npm run test:js && npm run test:wasm",
"build": "npm run build:wasm && npm run build:asm && npm run build:cjs",
"build:cjs": "babel dist/lexer.js | terser -c -m -o dist/lexer.cjs",
"build:wasm": "node build.js",
"build:asm": "cat src/lexer.asm.js lib/lexer.asm.js | terser --module -c -m -o dist/lexer.asm.js",
"bench": "node --expose-gc bench/index.js",
"prepublishOnly": "npm run build",
"footprint": "npm run build && echo Wasm: && cat dist/lexer.js | brotli | wc -c && echo Asm.js: && cat dist/lexer.asm.js | brotli | wc -c"
},
"author": "Guy Bedford",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
"cross-env": "^7.0.3",
"kleur": "^2.0.2",
"mocha": "^5.2.0",
"terser": "^4.1.4"
},
"files": [
"dist",
"types",
"lexer.js"
],
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/guybedford/es-module-lexer.git"
},
"bugs": {
"url": "https://github.com/guybedford/es-module-lexer/issues"
},
"homepage": "https://github.com/guybedford/es-module-lexer#readme"
}