package.json 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "tsconfig-paths",
  3. "version": "3.12.0",
  4. "description": "Load node modules according to tsconfig paths, in run-time or via API.",
  5. "main": "lib/index.js",
  6. "types": "lib/index.d.ts",
  7. "author": "Jonas Kello",
  8. "license": "MIT",
  9. "repository": "https://github.com/dividab/tsconfig-paths",
  10. "files": [
  11. "/src",
  12. "/lib",
  13. "register.js",
  14. "package.json",
  15. "CHANGELOG.md",
  16. "LICENSE",
  17. "README.md"
  18. ],
  19. "devDependencies": {
  20. "@types/chai": "^4.1.4",
  21. "@types/minimist": "^1.2.0",
  22. "@types/mocha": "^5.2.3",
  23. "@types/node": "^6.0.54",
  24. "@types/strip-bom": "^3.0.0",
  25. "@types/strip-json-comments": "^0.0.30",
  26. "chai": "^4.1.2",
  27. "codecov": "^3.1.0",
  28. "husky": "^4.2.5",
  29. "lint-staged": "^10.2.11",
  30. "mocha": "^5.2.0",
  31. "nyc": "^11.4.1",
  32. "prettier": "^2.0.5",
  33. "rimraf": "^2.6.2",
  34. "shelljs": "^0.7.5",
  35. "ts-node": "^7.0.0",
  36. "tslint": "^5.8.0",
  37. "typescript": "^2.4.1"
  38. },
  39. "dependencies": {
  40. "@types/json5": "^0.0.29",
  41. "json5": "^1.0.1",
  42. "minimist": "^1.2.0",
  43. "strip-bom": "^3.0.0"
  44. },
  45. "scripts": {
  46. "start": "cd src && ts-node index.ts",
  47. "example:node": "yarn build && cd ./example/node && ts-node -r ../register.js main.ts",
  48. "example:project": "yarn build && ts-node -r ./register.js -P ./example/project/tsconfig.json ./example/project/main.ts",
  49. "example:api": "cd example/api && ts-node main.ts",
  50. "example:perf": "cd example/perf && ts-node main.ts",
  51. "test": "mocha",
  52. "build": "rimraf lib && tsc -p src",
  53. "build:test": "rimraf ./test/js_out && tsc -p test",
  54. "lint": "tslint './{src,tests}/**/*.ts{,x}'",
  55. "verify": "yarn build && yarn lint && yarn coverage",
  56. "coverage": "rimraf coverage .nyc_output && nyc yarn test",
  57. "report-coverage": "codecov -f coverage/*.json",
  58. "publish:major": "yarn build && node scripts/publish.js major",
  59. "publish:minor": "yarn build && node scripts/publish.js minor",
  60. "publish:patch": "yarn build && node scripts/publish.js patch",
  61. "preversion": "yarn verify",
  62. "postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
  63. },
  64. "lint-staged": {
  65. "*.{ts,tsx}": "tslint",
  66. "*.{ts,tsx,json,css}": [
  67. "prettier --write",
  68. "git add"
  69. ]
  70. },
  71. "husky": {
  72. "hooks": {
  73. "pre-commit": "lint-staged"
  74. }
  75. }
  76. }