Nav apraksta

package.json 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {
  2. "name": "yaml",
  3. "version": "2.2.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/",
  14. "files": [
  15. "browser/",
  16. "dist/",
  17. "util.d.ts",
  18. "util.js"
  19. ],
  20. "type": "commonjs",
  21. "main": "./dist/index.js",
  22. "browser": {
  23. "./dist/index.js": "./browser/index.js",
  24. "./dist/util.js": "./browser/dist/util.js",
  25. "./util.js": "./browser/dist/util.js"
  26. },
  27. "exports": {
  28. ".": {
  29. "node": "./dist/index.js",
  30. "default": "./browser/index.js"
  31. },
  32. "./package.json": "./package.json",
  33. "./util": {
  34. "node": "./dist/util.js",
  35. "default": "./browser/dist/util.js"
  36. }
  37. },
  38. "scripts": {
  39. "build": "npm run build:node && npm run build:browser",
  40. "build:browser": "rollup -c config/rollup.browser-config.mjs",
  41. "build:node": "rollup -c config/rollup.node-config.mjs",
  42. "clean": "git clean -fdxe node_modules",
  43. "lint": "eslint src/",
  44. "prettier": "prettier --write .",
  45. "prestart": "npm run build:node",
  46. "start": "node -i -e 'YAML=require(\"./dist/index.js\")'",
  47. "test": "jest --config config/jest.config.js",
  48. "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types",
  49. "test:browsers": "cd playground && npm test",
  50. "test:dist": "npm run build:node && jest --config config/jest.config.js",
  51. "test:dist:types": "tsc --allowJs --moduleResolution node --noEmit --target es5 dist/index.js",
  52. "test:types": "tsc --noEmit",
  53. "docs:install": "cd docs-slate && bundle install",
  54. "docs:deploy": "cd docs-slate && ./deploy.sh",
  55. "docs": "cd docs-slate && bundle exec middleman server",
  56. "preversion": "npm test && npm run build",
  57. "prepublishOnly": "npm run clean && npm test && npm run build"
  58. },
  59. "browserslist": "defaults, not ie 11",
  60. "prettier": {
  61. "arrowParens": "avoid",
  62. "semi": false,
  63. "singleQuote": true,
  64. "trailingComma": "none"
  65. },
  66. "devDependencies": {
  67. "@babel/core": "^7.12.10",
  68. "@babel/plugin-proposal-class-properties": "^7.12.1",
  69. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
  70. "@babel/plugin-transform-typescript": "^7.12.17",
  71. "@babel/preset-env": "^7.12.11",
  72. "@rollup/plugin-babel": "^6.0.3",
  73. "@rollup/plugin-replace": "^5.0.2",
  74. "@rollup/plugin-typescript": "^10.0.1",
  75. "@types/jest": "^29.2.4",
  76. "@types/node": "^14.18.35",
  77. "@typescript-eslint/eslint-plugin": "^5.3.1",
  78. "@typescript-eslint/parser": "^5.3.1",
  79. "babel-jest": "^29.0.1",
  80. "cross-env": "^7.0.3",
  81. "eslint": "^8.2.0",
  82. "eslint-config-prettier": "^8.1.0",
  83. "fast-check": "^2.12.0",
  84. "jest": "^29.0.1",
  85. "jest-ts-webcompat-resolver": "^1.0.0",
  86. "prettier": "^2.2.1",
  87. "rollup": "^3.7.5",
  88. "tslib": "^2.1.0",
  89. "typescript": "^4.3.5"
  90. },
  91. "engines": {
  92. "node": ">= 14"
  93. }
  94. }