turbo.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "$schema": "https://turbo.build/schema.json",
  3. "globalEnv": ["NODE_ENV"],
  4. "ui": "tui",
  5. "tasks": {
  6. "build": {
  7. "dependsOn": ["^build", "build:cjs", "build:esm"],
  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. "build:cjs": {
  20. "outputs": ["dist/cjs/**"]
  21. },
  22. "build:esm": {
  23. "outputs": ["dist/esm/**"]
  24. },
  25. "fix": {
  26. "dependsOn": ["fix:lint", "fix:format"],
  27. "cache": false
  28. },
  29. "fix:format": {
  30. "dependsOn": ["fix:lint"],
  31. "cache": false
  32. },
  33. "fix:lint": {
  34. "dependsOn": ["^build"],
  35. "cache": false
  36. },
  37. "test": {
  38. "dependsOn": [
  39. "test:types",
  40. "test:unit",
  41. "test:integration",
  42. "test:format",
  43. "test:lint"
  44. ]
  45. },
  46. "test:format": {},
  47. "test:lint": {
  48. "dependsOn": ["^build"]
  49. },
  50. "test:types": {
  51. "dependsOn": ["^build"]
  52. },
  53. "test:unit": {
  54. "dependsOn": ["^build"]
  55. },
  56. "test:integration": {
  57. "dependsOn": ["^build"]
  58. }
  59. }
  60. }