package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "name": "vendure",
  3. "version": "0.0.0",
  4. "private": true,
  5. "engines": {
  6. "node": ">= 18"
  7. },
  8. "homepage": "https://www.vendure.io",
  9. "repository": {
  10. "type": "git",
  11. "url": "https://github.com/vendure-ecommerce/vendure"
  12. },
  13. "scripts": {
  14. "watch": "lerna run watch --parallel",
  15. "watch:core-common": "lerna run --scope @vendure/common --scope @vendure/core watch --parallel",
  16. "build:core-common": "lerna run --scope @vendure/common --scope @vendure/core build",
  17. "lint": "eslint --fix",
  18. "format": "prettier --write --html-whitespace-sensitivity ignore",
  19. "docs:generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
  20. "docs:generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
  21. "docs:build": "npm run docs:generate-typescript-docs && npm run docs:generate-graphql-docs",
  22. "codegen": "tsc -p scripts/codegen/plugins && ts-node scripts/codegen/generate-graphql-types.ts && npm run codegen:gql-tada",
  23. "codegen:gql-tada": "ts-node scripts/codegen/generate-gql-tada-types.ts",
  24. "version": "npm i && npm run check-imports && npm run check-angular-versions && npm run build && npm run check-core-type-defs && npm run generate-changelog && git add CHANGELOG* && git add */version.ts",
  25. "test": "lerna run test --stream --no-bail",
  26. "e2e": "lerna run e2e --stream --no-bail",
  27. "build": "lerna run build",
  28. "check-imports": "ts-node scripts/check-imports.ts",
  29. "check-core-type-defs": "ts-node scripts/check-core-type-defs.ts",
  30. "check-angular-versions": "ts-node scripts/check-angular-versions.ts",
  31. "generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
  32. "publish-release": "lerna version -m \"chore: Publish %s\" --no-push --force-publish --exact",
  33. "publish-prerelease": "lerna version -m \"chore: Pre-release %s\" prerelease --exact --no-push --force-publish --preid next --dist-tag next",
  34. "publish-local": "lerna version --force-publish --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
  35. },
  36. "devDependencies": {
  37. "@commitlint/cli": "^19.1.0",
  38. "@commitlint/config-conventional": "^19.1.0",
  39. "@gql.tada/cli-utils": "^1.6.5",
  40. "@graphql-codegen/add": "6.0.0",
  41. "@graphql-codegen/cli": "6.0.0",
  42. "@graphql-codegen/fragment-matcher": "6.0.0",
  43. "@graphql-codegen/typed-document-node": "^6.0.1",
  44. "@graphql-codegen/typescript": "5.0.1",
  45. "@graphql-codegen/typescript-operations": "5.0.1",
  46. "@graphql-tools/schema": "^10.0.25",
  47. "gql.tada": "^1.8.10",
  48. "@swc/core": "^1.4.6",
  49. "@types/klaw-sync": "^6.0.5",
  50. "@types/node": "^20.11.19",
  51. "concurrently": "^9.2.0",
  52. "conventional-changelog-core": "^7.0.0",
  53. "cross-env": "^7.0.3",
  54. "find": "^0.3.0",
  55. "graphql": "~16.11.0",
  56. "husky": "^4.3.0",
  57. "klaw-sync": "^6.0.0",
  58. "lerna": "^9.0.3",
  59. "lint-staged": "^10.5.4",
  60. "prettier": "^3.2.5",
  61. "prettier-plugin-organize-imports": "^4.1.0",
  62. "rollup": "^4.18.0",
  63. "tinybench": "^2.6.0",
  64. "ts-node": "^10.9.2",
  65. "typescript": "5.8.2",
  66. "unplugin-swc": "^1.4.4",
  67. "vitest": "^3.2.4"
  68. },
  69. "//": "Fix for https://github.com/npm/cli/issues/4828",
  70. "optionalDependencies": {
  71. "@nx/nx-darwin-arm64": "17.2.8",
  72. "@nx/nx-darwin-x64": "17.2.8",
  73. "@nx/nx-linux-x64-gnu": "17.2.8",
  74. "@nx/nx-win32-x64-msvc": "17.2.8",
  75. "@rollup/rollup-linux-x64-gnu": "^4.13.0",
  76. "@swc/core-darwin-arm64": "1.7.19",
  77. "@swc/core-linux-x64-gnu": "1.4.7"
  78. },
  79. "resolutions": {
  80. "@apollo/server": "^5.0.0"
  81. },
  82. "workspaces": {
  83. "packages": [
  84. "packages/*"
  85. ],
  86. "nohoist": [
  87. "**/@types/jasmine",
  88. "**/@types/jasminewd2"
  89. ]
  90. },
  91. "commitlint": {
  92. "extends": [
  93. "@commitlint/config-conventional"
  94. ],
  95. "rules": {
  96. "subject-case": [
  97. 2,
  98. "always",
  99. [
  100. "sentence-case"
  101. ]
  102. ]
  103. }
  104. },
  105. "husky": {
  106. "hooks": {
  107. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  108. "post-commit": "git update-index --again",
  109. "pre-commit": "NODE_OPTIONS=\"--max-old-space-size=8096\" lint-staged"
  110. }
  111. },
  112. "dependencies": {
  113. "@typescript-eslint/eslint-plugin": "^5.54.1",
  114. "@typescript-eslint/parser": "^5.54.1",
  115. "eslint": "^8.41.0",
  116. "eslint-config-prettier": "^8.8.0",
  117. "eslint-plugin-import": "^2.27.5",
  118. "eslint-plugin-jsdoc": "^45.0.0",
  119. "eslint-plugin-prefer-arrow": "^1.2.3"
  120. }
  121. }