1
0

package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "yaml",
  3. "version": "1.10.2",
  4. "license": "ISC",
  5. "author": "Eemeli Aro <eemeli@gmail.com>",
  6. "repository": "github:eemeli/yaml",
  7. "description": "JavaScript parser and stringifier for YAML",
  8. "keywords": [
  9. "YAML",
  10. "parser",
  11. "stringifier"
  12. ],
  13. "homepage": "https://eemeli.org/yaml/v1/",
  14. "files": [
  15. "browser/",
  16. "dist/",
  17. "types/",
  18. "*.d.ts",
  19. "*.js",
  20. "*.mjs",
  21. "!*config.js"
  22. ],
  23. "type": "commonjs",
  24. "main": "./index.js",
  25. "browser": {
  26. "./index.js": "./browser/index.js",
  27. "./map.js": "./browser/map.js",
  28. "./pair.js": "./browser/pair.js",
  29. "./parse-cst.js": "./browser/parse-cst.js",
  30. "./scalar.js": "./browser/scalar.js",
  31. "./schema.js": "./browser/schema.js",
  32. "./seq.js": "./browser/seq.js",
  33. "./types.js": "./browser/types.js",
  34. "./types.mjs": "./browser/types.js",
  35. "./types/binary.js": "./browser/types/binary.js",
  36. "./types/omap.js": "./browser/types/omap.js",
  37. "./types/pairs.js": "./browser/types/pairs.js",
  38. "./types/set.js": "./browser/types/set.js",
  39. "./types/timestamp.js": "./browser/types/timestamp.js",
  40. "./util.js": "./browser/util.js",
  41. "./util.mjs": "./browser/util.js"
  42. },
  43. "exports": {
  44. ".": "./index.js",
  45. "./parse-cst": "./parse-cst.js",
  46. "./types": [
  47. {
  48. "import": "./types.mjs"
  49. },
  50. "./types.js"
  51. ],
  52. "./util": [
  53. {
  54. "import": "./util.mjs"
  55. },
  56. "./util.js"
  57. ],
  58. "./": "./"
  59. },
  60. "scripts": {
  61. "build": "npm run build:node && npm run build:browser",
  62. "build:browser": "rollup -c rollup.browser-config.js",
  63. "build:node": "rollup -c rollup.node-config.js",
  64. "clean": "git clean -fdxe node_modules",
  65. "lint": "eslint src/",
  66. "prettier": "prettier --write .",
  67. "start": "cross-env TRACE_LEVEL=log npm run build:node && node -i -e 'YAML=require(\".\")'",
  68. "test": "jest",
  69. "test:browsers": "cd playground && npm test",
  70. "test:dist": "npm run build:node && jest",
  71. "test:types": "tsc --lib ES2017 --noEmit tests/typings.ts",
  72. "docs:install": "cd docs-slate && bundle install",
  73. "docs:deploy": "cd docs-slate && ./deploy.sh",
  74. "docs": "cd docs-slate && bundle exec middleman server",
  75. "preversion": "npm test && npm run build",
  76. "prepublishOnly": "npm run clean && npm test && npm run build"
  77. },
  78. "browserslist": "> 0.5%, not dead",
  79. "prettier": {
  80. "arrowParens": "avoid",
  81. "semi": false,
  82. "singleQuote": true,
  83. "trailingComma": "none"
  84. },
  85. "devDependencies": {
  86. "@babel/core": "^7.12.10",
  87. "@babel/plugin-proposal-class-properties": "^7.12.1",
  88. "@babel/preset-env": "^7.12.11",
  89. "@rollup/plugin-babel": "^5.2.3",
  90. "babel-eslint": "^10.1.0",
  91. "babel-jest": "^26.6.3",
  92. "babel-plugin-trace": "^1.1.0",
  93. "common-tags": "^1.8.0",
  94. "cross-env": "^7.0.3",
  95. "eslint": "^7.19.0",
  96. "eslint-config-prettier": "^7.2.0",
  97. "fast-check": "^2.12.0",
  98. "jest": "^26.6.3",
  99. "prettier": "^2.2.1",
  100. "rollup": "^2.38.2",
  101. "typescript": "^4.1.3"
  102. },
  103. "engines": {
  104. "node": ">= 6"
  105. }
  106. }