Skip to content

Commit

Permalink
Merge pull request #7 from michaeljolley/bundle
Browse files Browse the repository at this point in the history
fix: Improved package with bundling
  • Loading branch information
michaeljolley authored Jan 6, 2024
2 parents 8f983cf + b5a0c47 commit 8bf3135
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
out/
node_modules/
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.vscode-test/**
.github/**
src/**
out/test/**
out/**


**/tsconfig.json
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"activationEvents": [
"onStartupFinished"
],
"main": "./out/main.js",
"main": "./dist/main.js",
"contributes": {
"commands": [
{
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8bf3135

Please sign in to comment.