package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "@jsonjoy.com/util",
  3. "private": false,
  4. "publishConfig": {
  5. "access": "public"
  6. },
  7. "version": "1.5.0",
  8. "description": "Various helper utilities",
  9. "author": {
  10. "name": "streamich",
  11. "url": "https://github.com/streamich"
  12. },
  13. "homepage": "https://github.com/jsonjoy-com/util",
  14. "repository": "jsonjoy-com/util",
  15. "license": "Apache-2.0",
  16. "funding": {
  17. "type": "github",
  18. "url": "https://github.com/sponsors/streamich"
  19. },
  20. "keywords": [
  21. "codegen",
  22. "buffer",
  23. "string",
  24. "utf8",
  25. "json",
  26. "json-equal",
  27. "json-brand",
  28. "json-random",
  29. "fuzzer"
  30. ],
  31. "engines": {
  32. "node": ">=10.0"
  33. },
  34. "main": "lib/index.js",
  35. "types": "lib/index.d.ts",
  36. "typings": "lib/index.d.ts",
  37. "files": [
  38. "LICENSE",
  39. "lib/"
  40. ],
  41. "scripts": {
  42. "prettier": "prettier --ignore-path .gitignore --write \"src/**/*.{ts,tsx,js,jsx}\"",
  43. "prettier:check": "prettier --ignore-path .gitignore --list-different 'src/**/*.{ts,tsx,js,jsx}'",
  44. "lint": "yarn tslint",
  45. "tslint": "tslint 'src/**/*.{js,jsx,ts,tsx}' -t verbose --project .",
  46. "clean": "rimraf lib typedocs coverage gh-pages yarn-error.log",
  47. "build": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib",
  48. "jest": "node -r ts-node/register ./node_modules/.bin/jest",
  49. "test": "jest --maxWorkers 7",
  50. "test:ci": "yarn jest --maxWorkers 3 --no-cache",
  51. "coverage": "yarn test --collectCoverage",
  52. "typedoc": "typedoc",
  53. "build:pages": "rimraf gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage",
  54. "deploy:pages": "gh-pages -d gh-pages",
  55. "publish-coverage-and-typedocs": "yarn typedoc && yarn coverage && yarn build:pages && yarn deploy:pages"
  56. },
  57. "peerDependencies": {
  58. "tslib": "2"
  59. },
  60. "dependencies": {},
  61. "devDependencies": {
  62. "@types/benchmark": "^2.1.2",
  63. "@types/jest": "^29.5.12",
  64. "benchmark": "^2.1.4",
  65. "jest": "^29.7.0",
  66. "json-pack-napi": "^0.0.2",
  67. "prettier": "^3.2.5",
  68. "pretty-quick": "^3.1.3",
  69. "rimraf": "^5.0.0",
  70. "ts-jest": "^29.1.2",
  71. "ts-node": "^10.9.2",
  72. "tslib": "^2.6.2",
  73. "tslint": "^6.1.3",
  74. "tslint-config-common": "^1.6.2",
  75. "typedoc": "^0.25.12",
  76. "typescript": "^5.4.4"
  77. },
  78. "jest": {
  79. "verbose": true,
  80. "testEnvironmentOptions": {
  81. "url": "http://localhost/"
  82. },
  83. "setupFiles": [
  84. "<rootDir>/src/__tests__/setup.js"
  85. ],
  86. "moduleFileExtensions": [
  87. "ts",
  88. "js"
  89. ],
  90. "transform": {
  91. "^.+\\.ts$": "ts-jest"
  92. },
  93. "transformIgnorePatterns": [],
  94. "testRegex": ".*/(__tests__|__jest__|demo)/.*\\.(test|spec)\\.ts$"
  95. },
  96. "prettier": {
  97. "arrowParens": "always",
  98. "printWidth": 120,
  99. "tabWidth": 2,
  100. "useTabs": false,
  101. "semi": true,
  102. "singleQuote": true,
  103. "trailingComma": "all",
  104. "bracketSpacing": false
  105. }
  106. }