package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "name": "ts-jest",
  3. "version": "24.3.0",
  4. "main": "dist/index.js",
  5. "types": "dist/index.d.ts",
  6. "bin": "cli.js",
  7. "description": "A preprocessor with source maps support to help use TypeScript with Jest",
  8. "scripts": {
  9. "prebuild": "node scripts/clean-dist.js",
  10. "build": "tsc -p tsconfig.build.json",
  11. "postbuild": "node scripts/post-build.js",
  12. "build:watch": "tsc -p tsconfig.build.json -w",
  13. "clean": "node scripts/clean.js",
  14. "pretest": "npm run lint",
  15. "test": "run-s -s test:e2e \"test:unit -- {@}\" --",
  16. "test:prepare": "npm run test:e2e -- --prepareOnly",
  17. "test:e2e": "node scripts/e2e.js",
  18. "test:unit": "node_modules/.bin/jest",
  19. "test:external": "node scripts/test-external-project.js",
  20. "lint": "run-s lint:ts lint:js",
  21. "lint:js": "node_modules/.bin/eslint . -f stylish",
  22. "lint:ts": "node_modules/.bin/tslint -t stylish --project .",
  23. "lint:fix": "run-s lint:fix:ts lint:fix:js",
  24. "lint:fix:js": "node_modules/.bin/eslint . --fix",
  25. "lint:fix:ts": "node_modules/.bin/tslint --fix --project .",
  26. "typecheck": "node_modules/.bin/tsc -p .",
  27. "doc": "cd docs && bundle exec jekyll serve --livereload",
  28. "doc:link": "git worktree add docs/_site gh-pages",
  29. "doc:unlink": "git worktree prune",
  30. "doc:build": "cd docs && bundle exec jekyll build",
  31. "doc:build-commit": "npm run doc:build && cd docs/_site && git add --all && git commit -m \"Updates github pages\"",
  32. "changelog": "node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
  33. "prepare": "npm run build",
  34. "prepublishOnly": "npm run test",
  35. "preversion": "npm run test",
  36. "update:e2e": "node scripts/update-e2e-templates.js",
  37. "version": "npm run changelog && git add CHANGELOG.md"
  38. },
  39. "repository": {
  40. "type": "git",
  41. "url": "git+https://github.com/kulshekhar/ts-jest.git"
  42. },
  43. "keywords": [
  44. "jest",
  45. "typescript",
  46. "sourcemap",
  47. "react",
  48. "testing"
  49. ],
  50. "author": "Kulshekhar Kabra <kulshekhar@users.noreply.github.com> (https://github.com/kulshekhar)",
  51. "contributors": [
  52. "Huafu Gandon <huafu.gandon@gmail.com> (https://github.com/huafu)"
  53. ],
  54. "license": "MIT",
  55. "bugs": {
  56. "url": "https://github.com/kulshekhar/ts-jest/issues"
  57. },
  58. "homepage": "https://kulshekhar.github.io/ts-jest",
  59. "dependencies": {
  60. "bs-logger": "0.x",
  61. "buffer-from": "1.x",
  62. "fast-json-stable-stringify": "2.x",
  63. "lodash.memoize": "4.x",
  64. "json5": "2.x",
  65. "make-error": "1.x",
  66. "mkdirp": "0.x",
  67. "resolve": "1.x",
  68. "semver": "^5.5",
  69. "yargs-parser": "10.x"
  70. },
  71. "peerDependencies": {
  72. "jest": ">=24 <25"
  73. },
  74. "husky": {
  75. "hooks": {
  76. "pre-commit": "lint-staged",
  77. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
  78. "post-commit": "git reset"
  79. }
  80. },
  81. "devDependencies": {
  82. "@commitlint/cli": "8.x",
  83. "@commitlint/config-conventional": "7.x",
  84. "@types/babel__core": "7.x",
  85. "@types/buffer-from": "latest",
  86. "@types/cross-spawn": "latest",
  87. "@types/fs-extra": "latest",
  88. "@types/jest": "23.x",
  89. "@types/js-yaml": "latest",
  90. "@types/json5": "latest",
  91. "@types/lodash.memoize": "4.x",
  92. "@types/lodash.merge": "4.x",
  93. "@types/lodash.set": "4.x",
  94. "@types/mkdirp": "latest",
  95. "@types/node": "10.x",
  96. "@types/resolve": "latest",
  97. "@types/semver": "latest",
  98. "@types/yargs": "latest",
  99. "conventional-changelog-cli": "2.x",
  100. "cross-spawn": "latest",
  101. "eslint": "latest",
  102. "fs-extra": "latest",
  103. "glob-gitignore": "latest",
  104. "husky": "1.x",
  105. "jest": "24.x",
  106. "js-yaml": "latest",
  107. "lint-staged": "latest",
  108. "lodash.merge": "4.x",
  109. "lodash.set": "4.x",
  110. "npm-run-all": "latest",
  111. "prettier": "latest",
  112. "source-map": "latest",
  113. "tslint": "latest",
  114. "tslint-config-prettier": "latest",
  115. "tslint-plugin-prettier": "latest",
  116. "typescript": "3.x"
  117. },
  118. "lint-staged": {
  119. "*.{ts,tsx}": [
  120. "tslint --fix",
  121. "git add"
  122. ],
  123. "*.{js,jsx}": [
  124. "eslint --fix",
  125. "git add"
  126. ]
  127. },
  128. "engines": {
  129. "node": ">= 6"
  130. }
  131. }