package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "value-or-promise",
  3. "version": "1.0.12",
  4. "description": "A thenable to streamline a possibly sync / possibly async workflow.",
  5. "main": "build/main/index.js",
  6. "typings": "build/main/index.d.ts",
  7. "module": "build/module/index.js",
  8. "repository": "https://github.com/yaacovCR/value-or-promise",
  9. "license": "MIT",
  10. "keywords": [],
  11. "scripts": {
  12. "build": "run-p build:*",
  13. "build:main": "tsc -p tsconfig.json",
  14. "build:module": "tsc -p tsconfig.module.json",
  15. "fix": "run-s fix:*",
  16. "fix:prettier": "prettier \"src/**/*.ts\" --write",
  17. "fix:lint": "eslint src --ext .ts --fix",
  18. "test": "run-s build test:*",
  19. "test:lint": "eslint src --ext .ts",
  20. "test:prettier": "prettier \"src/**/*.ts\" --list-different",
  21. "test:mocha": "mocha --require ts-node/register \"src/**/*.spec.ts\"",
  22. "watch:build": "tsc -p tsconfig.json -w",
  23. "watch:test": "mocha --require ts-node/register --watch --watch-extensions ts --watch-files src \"src/**/*.spec.ts\" "
  24. },
  25. "engines": {
  26. "node": ">=12"
  27. },
  28. "devDependencies": {
  29. "@changesets/cli": "^2.26.0",
  30. "@types/mocha": "^10.0.1",
  31. "@types/node": "^18.11.18",
  32. "@typescript-eslint/eslint-plugin": "^5.48.0",
  33. "@typescript-eslint/parser": "^5.48.0",
  34. "eslint": "^8.31.0",
  35. "eslint-config-prettier": "^8.6.0",
  36. "eslint-plugin-eslint-comments": "^3.2.0",
  37. "eslint-plugin-functional": "^4.4.1",
  38. "eslint-plugin-import": "^2.26.0",
  39. "expect": "^29.3.1",
  40. "mocha": "^10.2.0",
  41. "npm-run-all": "^4.1.5",
  42. "prettier": "^2.8.1",
  43. "ts-node": "^10.9.1",
  44. "typescript": "^4.9.4"
  45. },
  46. "files": [
  47. "build/main/**/*",
  48. "build/module/**/*",
  49. "!**/*.spec.*",
  50. "!**/*.json",
  51. "CHANGELOG.md",
  52. "LICENSE",
  53. "README.md"
  54. ],
  55. "prettier": {
  56. "singleQuote": true
  57. }
  58. }