|
18 | 18 | "@oclif/plugin-help": "^5", |
19 | 19 | "@oclif/test": "^2.2.2", |
20 | 20 | "@salesforce/dev-config": "3.0.1", |
| 21 | + "@salesforce/dev-scripts": "^3.1.0", |
21 | 22 | "@salesforce/plugin-command-reference": "^1.3.16", |
22 | 23 | "@salesforce/prettier-config": "^0.0.2", |
23 | 24 | "@salesforce/ts-sinon": "^1.1.2", |
24 | 25 | "@salesforce/ts-types": "1.2.2", |
25 | 26 | "@swc/core": "^1.3.21", |
26 | | - "@types/chai": "^4", |
27 | 27 | "@types/mkdirp": "0.5.2", |
28 | | - "@types/mocha": "^5", |
29 | | - "@types/node": "^14", |
30 | | - "chai": "^4", |
| 28 | + "@typescript-eslint/eslint-plugin": "^5.33.0", |
| 29 | + "@typescript-eslint/parser": "^5.33.0", |
| 30 | + "chai": "^4.2.0", |
31 | 31 | "cross-env": "7.0.2", |
| 32 | + "eslint": "^8.21.0", |
| 33 | + "eslint-config-prettier": "^8.5.0", |
| 34 | + "eslint-config-salesforce": "^1.1.0", |
| 35 | + "eslint-config-salesforce-license": "^0.1.6", |
| 36 | + "eslint-config-salesforce-typescript": "^1.1.1", |
| 37 | + "eslint-plugin-header": "^3.0.0", |
| 38 | + "eslint-plugin-import": "^2.26.0", |
| 39 | + "eslint-plugin-jsdoc": "^39.3.6", |
32 | 40 | "globby": "^8", |
33 | | - "mocha": "^5", |
34 | | - "nyc": "^14.1.1", |
| 41 | + "husky": "^7.0.4", |
| 42 | + "mocha": "^9.1.3", |
| 43 | + "nyc": "^15.1.0", |
35 | 44 | "oclif": "^3.2.28", |
| 45 | + "prettier": "^2.7.1", |
| 46 | + "pretty-quick": "^3.1.0", |
36 | 47 | "shx": "^0.3.4", |
37 | | - "sinon": "^7.3.1", |
38 | | - "ts-node": "^8.7.0", |
| 48 | + "sinon": "10.0.0", |
| 49 | + "ts-node": "^10.0.0", |
39 | 50 | "typescript": "4.6.4" |
40 | 51 | }, |
41 | 52 | "engines": { |
42 | | - "node": ">=14.14.0" |
| 53 | + "node": ">=14.0.0" |
43 | 54 | }, |
44 | 55 | "files": [ |
45 | 56 | "yarn.lock", |
|
96 | 107 | }, |
97 | 108 | "repository": "salesforcecli/plugin-apex", |
98 | 109 | "scripts": { |
99 | | - "build": "shx rm -rf lib && tsc -b", |
100 | | - "format": "prettier --config ../../.prettierrc --write './{src,test,scripts}/**/*.{ts,js,json}'", |
101 | | - "lint": "eslint -c .eslintrc.json --ext .ts ./src ./test", |
102 | | - "manifest:generate": "yarn build && oclif manifest", |
| 110 | + "build": "sf-build", |
| 111 | + "clean": "sf-clean", |
| 112 | + "clean-all": "sf-clean all", |
| 113 | + "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json", |
| 114 | + "compile": "sf-compile", |
| 115 | + "docs": "sf-docs", |
| 116 | + "format": "sf-format", |
| 117 | + "lint": "sf-lint", |
103 | 118 | "postpack": "shx rm -f oclif.manifest.json", |
104 | | - "test": "cross-env FORCE_COLOR=true mocha --recursive \"./test/**/*.test.ts\" --full-trace", |
105 | | - "version": "oclif readme && git add README.md", |
| 119 | + "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference", |
| 120 | + "prepack": "sf-prepack", |
| 121 | + "prepare": "sf-install", |
| 122 | + "pretest": "sf-compile-test", |
| 123 | + "test": "sf-test", |
| 124 | + "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings", |
106 | 125 | "test:deprecation-policy": "./bin/dev snapshot:compare", |
107 | | - "test:command-reference": "./bin/dev commandreference:generate -p apex --erroronwarnings", |
108 | | - "package": "npm pack" |
109 | | - }, |
110 | | - "husky": { |
111 | | - "hooks": { |
112 | | - "pre-commit": "yarn lint-staged" |
113 | | - } |
| 126 | + "test:json-schema": "./bin/dev schema:compare", |
| 127 | + "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel", |
| 128 | + "version": "oclif readme" |
114 | 129 | }, |
115 | 130 | "lint-staged": { |
116 | 131 | "./{src,test}/**/*.{ts,js}": [ |
|
0 commit comments