summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/package.json12
-rw-r--r--extension/src/activation/environmentSetup.ts2
2 files changed, 7 insertions, 7 deletions
diff --git a/extension/package.json b/extension/package.json
index 26998ec9..59a8d9df 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -185,17 +185,17 @@
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "rm -rf ./out && esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
- "esbuild": "rm -rf ./out && node esbuild.mjs",
+ "esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
- "test-compile": "tsc -p ./",
+ "tsc": "tsc -p ./",
+ "tsc-watch": "tsc -watch -p ./",
+ "typegen": "node scripts/typegen.js",
"clientgen": "rm -rf src/client/ && npx @openapitools/openapi-generator-cli generate -i ../schema/openapi.json -g typescript-fetch -o src/client/ --additional-properties=supportsES6=true,npmVersion=8.19.2,typescriptThreePlus=true",
"rebuild": "electron-rebuild -v 19.1.8 node-pty",
- "watch": "tsc -watch -p ./",
- "pretest": "npm run compile && npm run lint",
+ "pretest": "npm run build && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"jest": "jest --config ./jest.config.js",
- "typegen": "node scripts/typegen.js",
"package": "npm install && npm run typegen && npm run clientgen && cd react-app && npm install && npm run build && cd .. && mkdir -p ./build && vsce package --out ./build"
},
"devDependencies": {
@@ -244,4 +244,4 @@
"optionalDependencies": {
"@esbuild/android-arm": "^0.18.17"
}
-}
+} \ No newline at end of file
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 7c18913a..c8e8b85f 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -10,7 +10,7 @@ import * as vscode from "vscode";
import * as os from "os";
import fkill from "fkill";
import { finished } from "stream/promises";
-import * as request from "request";
+import request = require("request");
const exec = promisify(execCb);