package.json 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {
  2. "name": "vendure",
  3. "version": "10.2.2",
  4. "private": true,
  5. "engines": {
  6. "node": ">= 10.12.0 < 11 || >= 12.00"
  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": "yarn tslint --fix",
  12. "format": "prettier --write --html-whitespace-sensitivity ignore",
  13. "bootstrap": "lerna bootstrap",
  14. "docs:generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
  15. "docs:generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
  16. "docs:update-build-info": "ts-node scripts/docs/update-build-info.ts",
  17. "docs:build": "yarn docs:generate-graphql-docs && yarn docs:generate-typescript-docs && yarn docs:update-build-info",
  18. "codegen": "tsc -p scripts/codegen/plugins && ts-node scripts/codegen/generate-graphql-types.ts",
  19. "version": "yarn check-imports && yarn check-angular-versions && yarn build && yarn check-core-type-defs && yarn generate-changelog && git add CHANGELOG* && git add */version.ts",
  20. "dev-server:start": "cd packages/dev-server && yarn start",
  21. "test": "lerna run test --stream --no-bail",
  22. "e2e": "lerna run e2e --stream --no-bail",
  23. "build": "lerna run build",
  24. "check-imports": "ts-node scripts/check-imports.ts",
  25. "check-core-type-defs": "ts-node scripts/check-core-type-defs.ts",
  26. "check-angular-versions": "ts-node scripts/check-angular-versions.ts",
  27. "generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
  28. "publish-release": "lerna publish -m \"chore: Publish %s\" --no-push --force-publish",
  29. "publish-prerelease": "lerna publish -m \"chore: Pre-release %s\" prerelease --no-push --force-publish --preid next --dist-tag next",
  30. "publish-local": "lerna version --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
  31. },
  32. "devDependencies": {
  33. "@commitlint/cli": "^17.4.4",
  34. "@commitlint/config-conventional": "^17.4.4",
  35. "@graphql-codegen/add": "4.0.1",
  36. "@graphql-codegen/cli": "3.2.1",
  37. "@graphql-codegen/fragment-matcher": "4.0.1",
  38. "@graphql-codegen/typescript": "3.0.1",
  39. "@graphql-codegen/typescript-operations": "3.0.1",
  40. "@graphql-tools/schema": "^9.0.17",
  41. "@swc/core": "^1.3.38",
  42. "@types/jest": "^29.4.0",
  43. "@types/klaw-sync": "^6.0.0",
  44. "@types/node": "^14.14.31",
  45. "concurrently": "^6.0.0",
  46. "conventional-changelog-core": "^4.2.4",
  47. "find": "^0.3.0",
  48. "graphql": "16.6.0",
  49. "husky": "^4.3.0",
  50. "jest": "^29.4.3",
  51. "klaw-sync": "^6.0.0",
  52. "lerna": "^4.0.0",
  53. "lint-staged": "^10.5.4",
  54. "prettier": "^2.2.1",
  55. "ts-jest": "^29.0.5",
  56. "ts-node": "^10.9.1",
  57. "tslint": "^6.1.3",
  58. "typescript": "4.9.5",
  59. "unplugin-swc": "^1.3.2",
  60. "vitest": "^0.29.2"
  61. },
  62. "resolutions": {
  63. "npm-packlist": "1.1.12"
  64. },
  65. "workspaces": {
  66. "packages": [
  67. "packages/*"
  68. ],
  69. "nohoist": [
  70. "**/@types/jasmine",
  71. "**/@types/jasminewd2",
  72. "**/@angular*/**"
  73. ]
  74. },
  75. "commitlint": {
  76. "extends": [
  77. "@commitlint/config-conventional"
  78. ],
  79. "rules": {
  80. "subject-case": [
  81. 2,
  82. "always",
  83. [
  84. "sentence-case"
  85. ]
  86. ]
  87. }
  88. },
  89. "husky": {
  90. "hooks": {
  91. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  92. "post-commit": "git update-index --again",
  93. "pre-commit": "lint-staged",
  94. "pre-push": "yarn check-imports && yarn check-angular-versions && yarn build && yarn test && yarn e2e"
  95. }
  96. }
  97. }