|
15 | 15 | "commitlint": "commitlint -f HEAD@{15}",
|
16 | 16 | "lint": "eslint --ext .js,.ts,.tsx .",
|
17 | 17 | "lint:fix": "eslint --fix --ext .js,.ts,.tsx .",
|
18 |
| - "prettier": "prettier --check '**/*.{css,html,js,ts,json,md,yaml,yml}'", |
19 |
| - "prettier:fix": "prettier --write '**/*.{css,html,js,ts,json,md,yaml,yml}'", |
| 18 | + "lint-staged": "lint-staged", |
| 19 | + "ygsec": "ygsec", |
20 | 20 | "release": "semantic-release",
|
21 | 21 | "release-local": "node -r dotenv/config node_modules/semantic-release/bin/semantic-release --no-ci --dry-run",
|
22 |
| - "check-dependencies": "npx npm-check --skip-unused --update" |
23 |
| - }, |
24 |
| - "husky": { |
25 |
| - "hooks": { |
26 |
| - "pre-commit": "ygsec && lint-staged", |
27 |
| - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
28 |
| - "pre-push": "ygsec && npm run lint:fix && npm run prettier:fix" |
29 |
| - } |
| 22 | + "check-dependencies": "npx npm-check --skip-unused --update", |
| 23 | + "prepare": "husky install" |
30 | 24 | },
|
31 | 25 | "lint-staged": {
|
32 | 26 | "**/*.{js,ts,tsx}": [
|
33 | 27 | "npm run lint:fix",
|
34 | 28 | "git add ."
|
35 |
| - ], |
36 |
| - "**/*.{css,html,js,ts,json,md,yaml,yml}": [ |
37 |
| - "npm run prettier:fix", |
38 |
| - "git add ." |
39 | 29 | ]
|
40 | 30 | },
|
41 | 31 | "author": "Tencent Cloud, Inc.",
|
42 | 32 | "license": "MIT",
|
43 | 33 | "devDependencies": {
|
44 |
| - "@commitlint/cli": "^8.3.5", |
45 |
| - "@commitlint/config-conventional": "^8.3.4", |
| 34 | + "@commitlint/cli": "^12.1.4", |
| 35 | + "@commitlint/config-conventional": "^12.1.4", |
46 | 36 | "@semantic-release/changelog": "^5.0.0",
|
47 | 37 | "@semantic-release/commit-analyzer": "^8.0.1",
|
48 | 38 | "@semantic-release/git": "^9.0.0",
|
49 | 39 | "@semantic-release/npm": "^7.0.4",
|
50 | 40 | "@semantic-release/release-notes-generator": "^9.0.1",
|
51 |
| - "@serverless/platform-client-china": "^2.1.14", |
| 41 | + "@serverless/platform-client-china": "^2.1.17", |
52 | 42 | "@types/fs-extra": "^9.0.6",
|
53 |
| - "@types/inquirer": "^7.3.1", |
| 43 | + "@types/inquirer": "^7.3.2", |
54 | 44 | "@types/jest": "^26.0.20",
|
55 | 45 | "@types/js-yaml": "^4.0.0",
|
56 |
| - "@types/node": "^15.0.2", |
| 46 | + "@types/node": "^16.0.0", |
57 | 47 | "@types/semver": "^7.3.5",
|
58 |
| - "@typescript-eslint/eslint-plugin": "^4.25.0", |
59 |
| - "@typescript-eslint/parser": "^4.25.0", |
60 |
| - "@ygkit/secure": "0.0.3", |
61 |
| - "axios": "^0.19.2", |
| 48 | + "@typescript-eslint/eslint-plugin": "^4.28.1", |
| 49 | + "@typescript-eslint/parser": "^4.28.1", |
| 50 | + "@ygkit/secure": "^0.0.10", |
| 51 | + "axios": "^0.21.1", |
62 | 52 | "babel-eslint": "^10.1.0",
|
63 | 53 | "chalk": "^4.1.0",
|
64 |
| - "commander": "^7.0.0", |
65 |
| - "dotenv": "^8.2.0", |
66 |
| - "eslint": "^6.8.0", |
67 |
| - "eslint-config-prettier": "^6.10.0", |
| 54 | + "commander": "^8.0.0", |
| 55 | + "dotenv": "^10.0.0", |
| 56 | + "eslint": "^7.30.0", |
| 57 | + "eslint-config-prettier": "^8.3.0", |
68 | 58 | "eslint-plugin-import": "^2.20.1",
|
69 | 59 | "eslint-plugin-prettier": "^3.1.2",
|
70 |
| - "fs-extra": "^9.1.0", |
71 |
| - "husky": "^4.2.5", |
| 60 | + "fs-extra": "^10.0.0", |
| 61 | + "husky": "^7.0.0", |
72 | 62 | "inquirer": "^8.0.0",
|
73 |
| - "jest": "^26.6.3", |
| 63 | + "jest": "^27.0.6", |
74 | 64 | "js-yaml": "^4.0.0",
|
75 |
| - "lint-staged": "^10.0.8", |
| 65 | + "lint-staged": "^11.0.0", |
76 | 66 | "ncp": "^2.0.0",
|
77 | 67 | "ora": "^5.3.0",
|
78 |
| - "prettier": "^1.19.1", |
| 68 | + "prettier": "^2.3.2", |
79 | 69 | "semantic-release": "^17.0.4",
|
80 | 70 | "semver": "^7.3.5",
|
81 |
| - "ts-jest": "^26.5.0", |
82 |
| - "ts-node": "^9.1.1", |
83 |
| - "typescript": "^4.1.3", |
84 |
| - "yargs": "^16.2.0" |
| 71 | + "ts-jest": "^27.0.3", |
| 72 | + "ts-node": "^10.0.0", |
| 73 | + "typescript": "^4.3.5", |
| 74 | + "yargs": "^17.0.1" |
85 | 75 | },
|
86 | 76 | "directories": {
|
87 | 77 | "doc": "docs",
|
|
0 commit comments