package.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "es-module-lexer",
  3. "version": "0.9.3",
  4. "description": "Lexes ES modules returning their import/export metadata",
  5. "main": "dist/lexer.cjs",
  6. "module": "dist/lexer.js",
  7. "types": "types/lexer.d.ts",
  8. "exports": {
  9. ".": {
  10. "module": "./dist/lexer.js",
  11. "import": "./dist/lexer.js",
  12. "require": "./dist/lexer.cjs"
  13. },
  14. "./js": "./dist/lexer.asm.js"
  15. },
  16. "scripts": {
  17. "test:js": "mocha -b -u tdd test/*.cjs",
  18. "test:wasm": "cross-env WASM=1 mocha -b -u tdd test/*.cjs",
  19. "test": "npm run test:js && npm run test:wasm",
  20. "build": "npm run build:wasm && npm run build:asm && npm run build:cjs",
  21. "build:cjs": "babel dist/lexer.js | terser -c -m -o dist/lexer.cjs",
  22. "build:wasm": "node build.js",
  23. "build:asm": "cat src/lexer.asm.js lib/lexer.asm.js | terser --module -c -m -o dist/lexer.asm.js",
  24. "bench": "node --expose-gc bench/index.js",
  25. "prepublishOnly": "npm run build",
  26. "footprint": "npm run build && echo Wasm: && cat dist/lexer.js | brotli | wc -c && echo Asm.js: && cat dist/lexer.asm.js | brotli | wc -c"
  27. },
  28. "author": "Guy Bedford",
  29. "license": "MIT",
  30. "devDependencies": {
  31. "@babel/cli": "^7.5.5",
  32. "@babel/core": "^7.5.5",
  33. "@babel/plugin-transform-modules-commonjs": "^7.5.0",
  34. "cross-env": "^7.0.3",
  35. "kleur": "^2.0.2",
  36. "mocha": "^5.2.0",
  37. "terser": "^4.1.4"
  38. },
  39. "files": [
  40. "dist",
  41. "types",
  42. "lexer.js"
  43. ],
  44. "type": "module",
  45. "repository": {
  46. "type": "git",
  47. "url": "git+https://github.com/guybedford/es-module-lexer.git"
  48. },
  49. "bugs": {
  50. "url": "https://github.com/guybedford/es-module-lexer/issues"
  51. },
  52. "homepage": "https://github.com/guybedford/es-module-lexer#readme"
  53. }