From b5a0c478d78d87b29b17e6052dc22e3063ab5e4e Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Sat, 6 Jan 2024 10:38:33 -0600 Subject: [PATCH] fix: Improved package with bundling --- .prettierignore | 1 + .vscodeignore | 2 +- package.json | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.prettierignore b/.prettierignore index 763301f..04c42f6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ dist/ +out/ node_modules/ \ No newline at end of file diff --git a/.vscodeignore b/.vscodeignore index 61d45a1..767a926 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -2,7 +2,7 @@ .vscode-test/** .github/** src/** -out/test/** +out/** **/tsconfig.json diff --git a/package.json b/package.json index 390d4f9..9bb111d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "activationEvents": [ "onStartupFinished" ], - "main": "./out/main.js", + "main": "./dist/main.js", "contributes": { "commands": [ { @@ -114,12 +114,12 @@ }, "scripts": { "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-base": "esbuild ./src/extension.ts --bundle --outfile=dist/main.js --external:vscode --format=cjs --platform=node", "compile": "npm run esbuild-base -- --sourcemap", "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch", "test-compile": "tsc -p ./", "watch": "tsc -watch -p ./", - "pretest": "npm run compile && npm run lint", + "pretest": "npm run test-compile && npm run lint", "lint": "eslint src --ext ts", "format": "npx prettier --write \"src/**/*.ts\"", "test": "vscode-test"