From 75d780e8de8188d8a87b6c09bf80b2f569914a79 Mon Sep 17 00:00:00 2001 From: Andrew Nolte Date: Mon, 20 May 2024 22:57:22 -0400 Subject: [PATCH] rework build scripts --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 130c6f1..ae73214 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "Visualization" ], "icon": "images/icon.png", - "main": "./out/main.js", + "main": "./dist/main.js", "prettier": { "trailingComma": "es5", "singleQuote": true, @@ -674,10 +674,10 @@ "compile-tests": "tsc -p . --outDir out", "watch-tests": "tsc -p . -w --outDir out", "lint": "eslint src --ext ts", - "vscode:prepublish": "npm run esbuild-base -- --minify", - "esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node", - "esbuild": "npm run esbuild-base -- --sourcemap", - "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch", + "vscode:prepublish": "npm run esbuild-base -- --minify --outfile=dist/main.js", + "esbuild-base": "esbuild ./src/extension.ts --bundle --external:vscode --format=cjs --platform=node", + "esbuild": "npm run esbuild-base -- --sourcemap --outfile=out/main.js", + "esbuild-watch": "npm run esbuild -- --watch", "format": "npx prettier --write **/*.ts", "test-compile": "tsc -p ./", "test-headless": "npm run compile-tests && xvfb-run node ./out/src/test/runTest.js", @@ -722,4 +722,4 @@ "publisherDisplayName": "AndrewNolte", "publisherId": "fcf32c99-a624-437b-9f47-9333ea128623" } -} \ No newline at end of file +}