package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "root",
  3. "type": "module",
  4. "version": "0.0.0",
  5. "private": true,
  6. "repository": {
  7. "type": "git",
  8. "url": "https://github.com/withastro/astro.git"
  9. },
  10. "scripts": {
  11. "release": "pnpm run build && changeset publish",
  12. "build": "turbo run build --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
  13. "build:ci": "turbo run build:ci --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
  14. "build:examples": "turbo run build --filter=\"@example/*\"",
  15. "dev": "turbo run dev --concurrency=40 --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
  16. "format": "pnpm run format:code",
  17. "format:ci": "pnpm run format:code",
  18. "format:code": "prettier -w \"**/*\" --ignore-unknown --cache",
  19. "format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json",
  20. "test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
  21. "test:match": "cd packages/astro && pnpm run test:match",
  22. "test:unit": "cd packages/astro && pnpm run test:unit",
  23. "test:unit:match": "cd packages/astro && pnpm run test:unit:match",
  24. "test:smoke": "pnpm test:smoke:example && pnpm test:smoke:docs",
  25. "test:smoke:example": "turbo run build --concurrency=100% --filter=\"@example/*\"",
  26. "test:smoke:docs": "turbo run build --filter=docs",
  27. "test:check-examples": "node ./scripts/smoke/check.js",
  28. "test:vite-ci": "turbo run test --filter=astro",
  29. "test:e2e": "cd packages/astro && pnpm playwright install && pnpm run test:e2e",
  30. "test:e2e:match": "cd packages/astro && pnpm playwright install && pnpm run test:e2e:match",
  31. "test:e2e:hosts": "turbo run test:hosted",
  32. "benchmark": "astro-benchmark",
  33. "lint": "eslint . --report-unused-disable-directives",
  34. "version": "changeset version && node ./scripts/deps/update-example-versions.js && pnpm install --no-frozen-lockfile && pnpm run format",
  35. "preinstall": "npx only-allow pnpm"
  36. },
  37. "workspaces": [
  38. "packages/markdown/*",
  39. "packages/integrations/*",
  40. "packages/*"
  41. ],
  42. "engines": {
  43. "node": ">=18.14.1",
  44. "pnpm": ">=8.6.12"
  45. },
  46. "packageManager": "pnpm@8.6.12",
  47. "dependencies": {
  48. "astro-benchmark": "workspace:*"
  49. },
  50. "devDependencies": {
  51. "@astrojs/check": "^0.3.1",
  52. "@changesets/changelog-github": "^0.4.8",
  53. "@changesets/cli": "^2.26.2",
  54. "@types/node": "^18.17.8",
  55. "@typescript-eslint/eslint-plugin": "^6.11.0",
  56. "@typescript-eslint/parser": "^6.11.0",
  57. "esbuild": "^0.19.6",
  58. "eslint": "^8.54.0",
  59. "eslint-config-prettier": "^9.0.0",
  60. "eslint-plugin-no-only-tests": "^3.1.0",
  61. "eslint-plugin-prettier": "^5.0.0",
  62. "eslint-plugin-regexp": "^2.2.0",
  63. "globby": "^14.0.0",
  64. "only-allow": "^1.1.1",
  65. "organize-imports-cli": "^0.10.0",
  66. "prettier": "^3.1.0",
  67. "prettier-plugin-astro": "^0.12.2",
  68. "tiny-glob": "^0.2.9",
  69. "turbo": "^1.10.12",
  70. "typescript": "~5.2.2"
  71. },
  72. "pnpm": {
  73. "packageExtensions": {
  74. "vite-svg-loader": {
  75. "peerDependenciesMeta": {
  76. "vue": {
  77. "optional": true
  78. }
  79. }
  80. },
  81. "svelte2tsx": {
  82. "peerDependenciesMeta": {
  83. "typescript": {
  84. "optional": true
  85. }
  86. }
  87. },
  88. "rehype-pretty-code": {
  89. "peerDependenciesMeta": {
  90. "shiki": {
  91. "optional": true
  92. }
  93. }
  94. }
  95. },
  96. "overrides": {
  97. "organize-imports-cli>ts-morph": "^19.0.0",
  98. "tsconfig-resolver>type-fest": "3.0.0"
  99. },
  100. "peerDependencyRules": {
  101. "ignoreMissing": [
  102. "rollup",
  103. "@babel/core",
  104. "@babel/plugin-transform-react-jsx",
  105. "vite",
  106. "react",
  107. "react-dom",
  108. "@types/react",
  109. "tslib",
  110. "quill-delta",
  111. "rxjs"
  112. ],
  113. "allowAny": [
  114. "astro"
  115. ]
  116. }
  117. }
  118. }