package.json 3.9 KB

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