turbo.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "$schema": "https://turbo.build/schema.json",
  3. "globalEnv": ["NODE_ENV"],
  4. "ui": "tui",
  5. "tasks": {
  6. "build": {
  7. "dependsOn": ["^build"],
  8. "inputs": [
  9. "$TURBO_DEFAULT$",
  10. "!README.md",
  11. "!**/*.test.*",
  12. "!jest.config.js",
  13. "!eslint.config.js",
  14. "!prettier.config.js",
  15. "!vercel.json"
  16. ],
  17. "outputs": ["dist/**", "lib/**"]
  18. },
  19. "fix": {
  20. "dependsOn": ["fix:lint", "fix:format"],
  21. "cache": false
  22. },
  23. "fix:format": {
  24. "dependsOn": ["fix:lint"],
  25. "cache": false
  26. },
  27. "fix:lint": {
  28. "dependsOn": ["^build"],
  29. "cache": false
  30. },
  31. "test": {
  32. "dependsOn": [
  33. "test:types",
  34. "test:unit",
  35. "test:integration",
  36. "test:format",
  37. "test:lint"
  38. ]
  39. },
  40. "test:format": {},
  41. "test:lint": {
  42. "dependsOn": ["^build"]
  43. },
  44. "test:types": {
  45. "dependsOn": ["^build"]
  46. },
  47. "test:unit": {
  48. "dependsOn": ["^build"]
  49. },
  50. "test:integration": {
  51. "dependsOn": ["^build"]
  52. }
  53. }
  54. }