package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "name": "esquery",
  3. "version": "1.6.0",
  4. "author": "Joel Feenstra <jrfeenst+esquery@gmail.com>",
  5. "contributors": [],
  6. "description": "A query library for ECMAScript AST using a CSS selector like query language.",
  7. "main": "dist/esquery.min.js",
  8. "module": "dist/esquery.esm.min.js",
  9. "files": [
  10. "dist/*.js",
  11. "dist/*.map",
  12. "parser.js",
  13. "license.txt",
  14. "README.md"
  15. ],
  16. "nyc": {
  17. "branches": 100,
  18. "lines": 100,
  19. "functions": 100,
  20. "statements": 100,
  21. "reporter": [
  22. "html",
  23. "text"
  24. ],
  25. "exclude": [
  26. "parser.js",
  27. "dist",
  28. "tests"
  29. ]
  30. },
  31. "scripts": {
  32. "prepublishOnly": "npm run build && npm test",
  33. "build:parser": "rm parser.js && pegjs --cache --format umd -o \"parser.js\" \"grammar.pegjs\"",
  34. "build:browser": "rollup -c",
  35. "build": "npm run build:parser && npm run build:browser",
  36. "mocha": "mocha --require chai/register-assert --require @babel/register tests",
  37. "test": "nyc npm run mocha && npm run lint",
  38. "test:ci": "npm run mocha",
  39. "lint": "eslint ."
  40. },
  41. "repository": {
  42. "type": "git",
  43. "url": "https://github.com/estools/esquery.git"
  44. },
  45. "bugs": "https://github.com/estools/esquery/issues",
  46. "homepage": "https://github.com/estools/esquery/",
  47. "keywords": [
  48. "ast",
  49. "ecmascript",
  50. "javascript",
  51. "query"
  52. ],
  53. "devDependencies": {
  54. "@babel/core": "^7.9.0",
  55. "@babel/preset-env": "^7.9.5",
  56. "@babel/register": "^7.9.0",
  57. "@rollup/plugin-commonjs": "^11.1.0",
  58. "@rollup/plugin-json": "^4.0.2",
  59. "@rollup/plugin-node-resolve": "^7.1.3",
  60. "babel-plugin-transform-es2017-object-entries": "0.0.5",
  61. "chai": "4.2.0",
  62. "eslint": "^6.8.0",
  63. "esprima": "~4.0.1",
  64. "mocha": "7.1.1",
  65. "nyc": "^15.0.1",
  66. "pegjs": "~0.10.0",
  67. "rollup": "^1.32.1",
  68. "rollup-plugin-babel": "^4.4.0",
  69. "rollup-plugin-terser": "^5.3.0"
  70. },
  71. "license": "BSD-3-Clause",
  72. "engines": {
  73. "node": ">=0.10"
  74. },
  75. "dependencies": {
  76. "estraverse": "^5.1.0"
  77. }
  78. }