package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "typed-function",
  3. "version": "4.1.0",
  4. "description": "Type checking for JavaScript functions",
  5. "author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
  6. "contributors": [
  7. "Glen Whitney (https://github.com/gwhitney)",
  8. "Luke Gumbley (https://github.com/luke-gumbley)"
  9. ],
  10. "homepage": "https://github.com/josdejong/typed-function",
  11. "repository": {
  12. "type": "git",
  13. "url": "https://github.com/josdejong/typed-function.git"
  14. },
  15. "keywords": [
  16. "typed",
  17. "function",
  18. "arguments",
  19. "compose",
  20. "types"
  21. ],
  22. "type": "module",
  23. "main": "lib/umd/typed-function.js",
  24. "module": "lib/esm/typed-function.mjs",
  25. "browser": "lib/umd/typed-function.js",
  26. "scripts": {
  27. "test": "mocha test --recursive",
  28. "test:lib": "mocha test test-lib --recursive",
  29. "build": "npm-run-all build:**",
  30. "build:clean": "del-cli lib",
  31. "build:esm": "babel src --out-dir lib/esm --out-file-extension .mjs --source-maps --config-file ./babel.config.json",
  32. "build:umd": "rollup lib/esm/typed-function.mjs --format umd --name 'typed' --sourcemap --output.file lib/umd/typed-function.js && cpy tools/cjs/package.json lib/umd --flat",
  33. "build-and-test": "npm run lint && npm run build && npm run test:lib",
  34. "lint": "eslint --cache src/**/*.mjs test/**/*.mjs test-lib/**/*.mjs",
  35. "format": "npm run lint -- --fix",
  36. "coverage": "nyc _mocha -- test --recursive; echo \"\nCoverage report is available at ./coverage/lcov-report/index.html\"",
  37. "prepublishOnly": "npm run build-and-test"
  38. },
  39. "engines": {
  40. "node": ">= 14"
  41. },
  42. "devDependencies": {
  43. "@babel/cli": "7.18.10",
  44. "@babel/preset-env": "7.18.10",
  45. "benchmark": "2.1.4",
  46. "cpy-cli": "4.2.0",
  47. "del-cli": "5.0.0",
  48. "eslint": "8.22.0",
  49. "eslint-config-standard": "17.0.0",
  50. "eslint-plugin-import": "2.26.0",
  51. "eslint-plugin-n": "15.2.5",
  52. "eslint-plugin-promise": "6.0.0",
  53. "mocha": "10.0.0",
  54. "npm-run-all": "4.1.5",
  55. "nyc": "15.1.0",
  56. "pad-right": "0.2.2",
  57. "rollup": "2.78.1"
  58. },
  59. "files": [
  60. "README.md",
  61. "LICENSE.md",
  62. "lib"
  63. ]
  64. }