package.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "name": "cjs-module-lexer",
  3. "version": "1.2.3",
  4. "description": "Lexes CommonJS modules, returning their named exports metadata",
  5. "main": "lexer.js",
  6. "exports": {
  7. "import": {
  8. "types": "./lexer.d.mts",
  9. "default": "./dist/lexer.mjs"
  10. },
  11. "default": "./lexer.js"
  12. },
  13. "types": "lexer.d.ts",
  14. "scripts": {
  15. "test-js": "mocha -b -u tdd test/*.js",
  16. "test-wasm": "WASM=1 mocha -b -u tdd test/*.js",
  17. "test": "npm run test-wasm && npm run test-js",
  18. "bench": "node --expose-gc bench/index.mjs",
  19. "build": "node build.js && babel dist/lexer.mjs | terser -o dist/lexer.js",
  20. "build-wasm": "make lib/lexer.wasm && node build.js",
  21. "footprint": "npm run build && cat dist/lexer.js | gzip -9f | wc -c"
  22. },
  23. "author": "Guy Bedford",
  24. "license": "MIT",
  25. "devDependencies": {
  26. "@babel/cli": "^7.5.5",
  27. "@babel/core": "^7.5.5",
  28. "@babel/plugin-transform-modules-commonjs": "^7.5.0",
  29. "kleur": "^2.0.2",
  30. "mocha": "^9.1.3",
  31. "terser": "^4.1.4"
  32. },
  33. "files": [
  34. "dist",
  35. "lexer.d.ts"
  36. ],
  37. "repository": {
  38. "type": "git",
  39. "url": "git+https://github.com/nodejs/cjs-module-lexer.git"
  40. },
  41. "bugs": {
  42. "url": "https://github.com/nodejs/cjs-module-lexer/issues"
  43. },
  44. "homepage": "https://github.com/nodejs/cjs-module-lexer#readme"
  45. }