@giteeteam/apps-manifest 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/types.d.ts +2 -0
  2. package/package.json +10 -2
package/lib/types.d.ts CHANGED
@@ -72,6 +72,8 @@ export interface IConsumer {
72
72
  function: string;
73
73
  method: string;
74
74
  };
75
+ /** 并行处理的数量,默认是1 */
76
+ batchSize?: number;
75
77
  }
76
78
  export interface IMessageQueueConsumer extends IConsumer {
77
79
  messageQueue: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-manifest",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Giteeteam Apps Manifest",
5
5
  "keywords": [
6
6
  "typescript",
@@ -16,11 +16,20 @@
16
16
  "test": "pnpm build && vitest run --coverage",
17
17
  "dev": "tsc -w",
18
18
  "build": "rm -rf lib && tsc",
19
+ "lint": "npx eslint .",
20
+ "type-check": "tsc --pretty --noEmit",
21
+ "precommit": "pnpm i && lint-staged && pnpm type-check",
19
22
  "prepack": "pnpm build",
20
23
  "prepublish": "pnpm build",
21
24
  "prepublishOnly": "pnpm build",
22
25
  "publish:alpha": "npm publish --tag alpha"
23
26
  },
27
+ "lint-staged": {
28
+ "*.{ts,js,json}": [
29
+ "prettier --write",
30
+ "pnpm lint --fix"
31
+ ]
32
+ },
24
33
  "publishConfig": {
25
34
  "conventionalCommits": true,
26
35
  "access": "public",
@@ -37,7 +46,6 @@
37
46
  "devDependencies": {
38
47
  "@types/lodash": "^4.14.195",
39
48
  "@vitest/coverage-v8": "^2.1.3",
40
- "prettier": "^3.3.3",
41
49
  "typescript": "^4.8.3",
42
50
  "vitest": "^2.1.3"
43
51
  }