package.json 1.0 KB

123456789101112131415161718192021222324252627282930
  1. {
  2. "name": "@overleaf/promise-utils",
  3. "version": "0.1.0",
  4. "description": "utilities to help working with promises",
  5. "main": "index.js",
  6. "types": "types/index.d.ts",
  7. "scripts": {
  8. "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
  9. "test:unit": "mocha --exit test/**/*.{js,cjs}",
  10. "lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
  11. "lint:fix": "eslint --fix --ext .js --ext .cjs .",
  12. "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
  13. "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
  14. "test:ci": "npm run test:unit",
  15. "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
  16. "types:check": "tsc --noEmit",
  17. "types:rebuild": "rm -rf types && npm run types:build"
  18. },
  19. "author": "Overleaf (https://www.overleaf.com)",
  20. "license": "AGPL-3.0-only",
  21. "devDependencies": {
  22. "chai": "^4.3.10",
  23. "chai-as-promised": "^7.1.1",
  24. "mocha": "^10.2.0",
  25. "typescript": "^5.0.4"
  26. },
  27. "dependencies": {
  28. "p-limit": "^2.3.0"
  29. }
  30. }