|
6 | 6 | "main": "lib/index.js", |
7 | 7 | "bugs": "https://github.com/forcedotcom/cli/issues", |
8 | 8 | "dependencies": { |
9 | | - "@oclif/core": "^2.0.7", |
| 9 | + "@oclif/core": "^2.1.1", |
10 | 10 | "@salesforce/core": "^3.33.1", |
11 | | - "@salesforce/sf-plugins-core": "^2.0.1", |
| 11 | + "@salesforce/sf-plugins-core": "^2.1.1", |
12 | 12 | "tslib": "^2" |
13 | 13 | }, |
14 | 14 | "devDependencies": { |
15 | 15 | "@oclif/plugin-command-snapshot": "^3.3.0", |
16 | 16 | "@oclif/plugin-help": "^5.1.22", |
17 | 17 | "@salesforce/cli-plugins-testkit": "^3.2.18", |
18 | 18 | "@salesforce/dev-config": "^3.0.1", |
19 | | - "@salesforce/dev-scripts": "^3.1.0", |
| 19 | + "@salesforce/dev-scripts": "^4.0.0-beta.9", |
20 | 20 | "@salesforce/plugin-command-reference": "^2.2.9", |
21 | 21 | "@salesforce/prettier-config": "^0.0.2", |
22 | 22 | "@salesforce/ts-sinon": "1.4.4", |
|
32 | 32 | "eslint-plugin-header": "^3.0.0", |
33 | 33 | "eslint-plugin-import": "2.26.0", |
34 | 34 | "eslint-plugin-jsdoc": "^39.8.0", |
35 | | - "eslint-plugin-sf-plugin": "^1.5.1", |
| 35 | + "eslint-plugin-sf-plugin": "^1.8.1", |
36 | 36 | "husky": "^7.0.4", |
37 | 37 | "mocha": "^9.1.3", |
38 | 38 | "nyc": "^15.1.0", |
|
42 | 42 | "shx": "0.3.4", |
43 | 43 | "sinon": "10.0.0", |
44 | 44 | "ts-node": "^10.0.0", |
45 | | - "typescript": "^4.9.5" |
| 45 | + "typescript": "^4.9.5", |
| 46 | + "wireit": "^0.9.3" |
46 | 47 | }, |
47 | 48 | "config": {}, |
48 | 49 | "engines": { |
|
87 | 88 | }, |
88 | 89 | "repository": "salesforcecli/plugin-schema", |
89 | 90 | "scripts": { |
90 | | - "build": "sf-build", |
| 91 | + "build": "wireit", |
91 | 92 | "clean": "sf-clean", |
92 | 93 | "clean-all": "sf-clean all", |
93 | 94 | "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json", |
94 | | - "compile": "sf-compile", |
| 95 | + "compile": "wireit", |
95 | 96 | "docs": "sf-docs", |
96 | | - "format": "sf-format", |
97 | | - "lint": "sf-lint", |
| 97 | + "format": "wireit", |
| 98 | + "lint": "wireit", |
98 | 99 | "postpack": "shx rm -f oclif.manifest.json", |
99 | | - "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference", |
100 | 100 | "prepack": "sf-prepack", |
101 | 101 | "prepare": "sf-install", |
102 | | - "pretest": "sf-compile-test", |
103 | | - "test": "sf-test", |
104 | | - "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings", |
105 | | - "test:deprecation-policy": "./bin/dev snapshot:compare", |
106 | | - "test:json-schema": "./bin/dev schema:compare", |
| 102 | + "test": "wireit", |
| 103 | + "test:command-reference": "wireit", |
| 104 | + "test:compile": "wireit", |
| 105 | + "test:deprecation-policy": "wireit", |
| 106 | + "test:json-schema": "wireit", |
107 | 107 | "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel", |
| 108 | + "test:only": "wireit", |
108 | 109 | "version": "oclif readme" |
109 | 110 | }, |
110 | 111 | "publishConfig": { |
111 | 112 | "access": "public" |
| 113 | + }, |
| 114 | + "wireit": { |
| 115 | + "build": { |
| 116 | + "dependencies": [ |
| 117 | + "compile", |
| 118 | + "lint" |
| 119 | + ] |
| 120 | + }, |
| 121 | + "compile": { |
| 122 | + "command": "tsc -p . --pretty --incremental", |
| 123 | + "files": [ |
| 124 | + "src/**/*.ts", |
| 125 | + "tsconfig.json", |
| 126 | + "messages/**" |
| 127 | + ], |
| 128 | + "output": [ |
| 129 | + "lib/**", |
| 130 | + "*.tsbuildinfo" |
| 131 | + ], |
| 132 | + "clean": "if-file-deleted" |
| 133 | + }, |
| 134 | + "format": { |
| 135 | + "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"" |
| 136 | + }, |
| 137 | + "lint": { |
| 138 | + "command": "eslint src test --color --cache --cache-location .eslintcache", |
| 139 | + "files": [ |
| 140 | + "src/**/*.ts", |
| 141 | + "test/**/*.ts", |
| 142 | + "messages/**", |
| 143 | + ".eslintignore", |
| 144 | + ".eslintrc.js" |
| 145 | + ], |
| 146 | + "output": [] |
| 147 | + }, |
| 148 | + "test:compile": { |
| 149 | + "command": "tsc -p \"./test\" --pretty", |
| 150 | + "files": [ |
| 151 | + "test/**/*.ts", |
| 152 | + "tsconfig.json", |
| 153 | + "test/tsconfig.json" |
| 154 | + ], |
| 155 | + "output": [] |
| 156 | + }, |
| 157 | + "test": { |
| 158 | + "dependencies": [ |
| 159 | + "test:compile", |
| 160 | + "test:only", |
| 161 | + "test:command-reference", |
| 162 | + "test:deprecation-policy", |
| 163 | + "lint", |
| 164 | + "test:json-schema" |
| 165 | + ] |
| 166 | + }, |
| 167 | + "test:only": { |
| 168 | + "command": "nyc mocha \"test/**/*.test.ts\"", |
| 169 | + "files": [ |
| 170 | + "test/**/*.ts", |
| 171 | + "src/**/*.ts", |
| 172 | + "tsconfig.json", |
| 173 | + "test/tsconfig.json" |
| 174 | + ], |
| 175 | + "output": [] |
| 176 | + }, |
| 177 | + "test:command-reference": { |
| 178 | + "command": "\"./bin/dev\" commandreference:generate --erroronwarnings", |
| 179 | + "files": [ |
| 180 | + "src/**/*.ts", |
| 181 | + "messages/**" |
| 182 | + ], |
| 183 | + "output": [ |
| 184 | + "tmp/root" |
| 185 | + ] |
| 186 | + }, |
| 187 | + "test:deprecation-policy": { |
| 188 | + "command": "\"./bin/dev\" snapshot:compare", |
| 189 | + "files": [ |
| 190 | + "src/**/*.ts" |
| 191 | + ], |
| 192 | + "output": [], |
| 193 | + "dependencies": [ |
| 194 | + "compile" |
| 195 | + ] |
| 196 | + }, |
| 197 | + "test:json-schema": { |
| 198 | + "command": "\"./bin/dev\" schema:compare", |
| 199 | + "files": [ |
| 200 | + "src/**/*.ts", |
| 201 | + "schemas" |
| 202 | + ], |
| 203 | + "output": [] |
| 204 | + } |
112 | 205 | } |
113 | 206 | } |
0 commit comments