package.json 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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\" premajor --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": "^12.0.1",
  34. "@commitlint/config-conventional": "^12.0.1",
  35. "@graphql-codegen/add": "3.1.1",
  36. "@graphql-codegen/cli": "2.6.2",
  37. "@graphql-codegen/fragment-matcher": "3.2.1",
  38. "@graphql-codegen/typescript": "2.4.5",
  39. "@graphql-codegen/typescript-operations": "2.3.2",
  40. "@graphql-tools/schema": "^8.3.1",
  41. "@types/jest": "^26.0.20",
  42. "@types/klaw-sync": "^6.0.0",
  43. "@types/node": "^14.14.31",
  44. "concurrently": "^6.0.0",
  45. "conventional-changelog-core": "^4.2.2",
  46. "find": "^0.3.0",
  47. "graphql": "16.3.0",
  48. "husky": "^4.3.0",
  49. "jest": "^27.0.6",
  50. "klaw-sync": "^6.0.0",
  51. "lerna": "^4.0.0",
  52. "lint-staged": "^10.5.4",
  53. "prettier": "^2.2.1",
  54. "ts-jest": "^27.0.4",
  55. "ts-node": "^10.2.1",
  56. "tslint": "^6.1.3",
  57. "typescript": "4.5.5"
  58. },
  59. "resolutions": {
  60. "npm-packlist": "1.1.12"
  61. },
  62. "workspaces": {
  63. "packages": [
  64. "packages/*"
  65. ],
  66. "nohoist": [
  67. "**/@types/jasmine",
  68. "**/@types/jasminewd2",
  69. "**/@angular*/**"
  70. ]
  71. },
  72. "commitlint": {
  73. "extends": [
  74. "@commitlint/config-conventional"
  75. ],
  76. "rules": {
  77. "subject-case": [
  78. 2,
  79. "always",
  80. [
  81. "sentence-case"
  82. ]
  83. ]
  84. }
  85. },
  86. "husky": {
  87. "hooks": {
  88. "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
  89. "post-commit": "git update-index --again",
  90. "pre-commit": "lint-staged",
  91. "pre-push": "yarn check-imports && yarn check-angular-versions && yarn build && yarn test && yarn e2e"
  92. }
  93. }
  94. }