diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index d899f60e3..cf66deafb 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -29,8 +29,10 @@ | |||
29 | "package": "vsce package -o rust-analyzer.vsix", | 29 | "package": "vsce package -o rust-analyzer.vsix", |
30 | "build": "tsc", | 30 | "build": "tsc", |
31 | "watch": "tsc --watch", | 31 | "watch": "tsc --watch", |
32 | "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src", | 32 | "lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests", |
33 | "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src --fix" | 33 | "fix": " tsfmt -r && eslint -c .eslintrc.js --ext ts ./src ./tests --fix", |
34 | "pretest": "npm run build", | ||
35 | "test": "node ./out/tests/runTests.js" | ||
34 | }, | 36 | }, |
35 | "dependencies": { | 37 | "dependencies": { |
36 | "node-fetch": "^2.6.0", | 38 | "node-fetch": "^2.6.0", |
@@ -39,17 +41,22 @@ | |||
39 | "devDependencies": { | 41 | "devDependencies": { |
40 | "@rollup/plugin-commonjs": "^11.1.0", | 42 | "@rollup/plugin-commonjs": "^11.1.0", |
41 | "@rollup/plugin-node-resolve": "^7.1.3", | 43 | "@rollup/plugin-node-resolve": "^7.1.3", |
44 | "@types/glob": "^7.1.1", | ||
45 | "@types/mocha": "^7.0.2", | ||
42 | "@types/node": "^12.12.39", | 46 | "@types/node": "^12.12.39", |
43 | "@types/node-fetch": "^2.5.7", | 47 | "@types/node-fetch": "^2.5.7", |
44 | "@types/vscode": "^1.44.0", | 48 | "@types/vscode": "^1.44.0", |
45 | "@typescript-eslint/eslint-plugin": "^2.33.0", | 49 | "@typescript-eslint/eslint-plugin": "^2.33.0", |
46 | "@typescript-eslint/parser": "^2.33.0", | 50 | "@typescript-eslint/parser": "^2.33.0", |
47 | "eslint": "^6.8.0", | 51 | "eslint": "^6.8.0", |
52 | "glob": "^7.1.6", | ||
53 | "mocha": "^7.1.2", | ||
48 | "rollup": "^2.10.0", | 54 | "rollup": "^2.10.0", |
49 | "tslib": "^1.12.0", | 55 | "tslib": "^1.12.0", |
50 | "typescript": "^3.9.2", | 56 | "typescript": "^3.9.2", |
51 | "typescript-formatter": "^7.2.2", | 57 | "typescript-formatter": "^7.2.2", |
52 | "vsce": "^1.75.0" | 58 | "vsce": "^1.75.0", |
59 | "vscode-test": "^1.3.0" | ||
53 | }, | 60 | }, |
54 | "activationEvents": [ | 61 | "activationEvents": [ |
55 | "onLanguage:rust", | 62 | "onLanguage:rust", |
@@ -57,7 +64,7 @@ | |||
57 | "onCommand:rust-analyzer.collectGarbage", | 64 | "onCommand:rust-analyzer.collectGarbage", |
58 | "workspaceContains:**/Cargo.toml" | 65 | "workspaceContains:**/Cargo.toml" |
59 | ], | 66 | ], |
60 | "main": "./out/main", | 67 | "main": "./out/src/main", |
61 | "contributes": { | 68 | "contributes": { |
62 | "taskDefinitions": [ | 69 | "taskDefinitions": [ |
63 | { | 70 | { |