Skip to content

Commit

Permalink
chore: bundle extension (denoland#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk authored Aug 26, 2021
1 parent b1ecf7f commit 72c4b7a
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
- name: Lint
run: npm run lint

- name: Compile
run: npm run compile
- name: Type check
run: npm run test-compile

- name: Package
run: npx vsce@1.93.0 package -o vscode-deno.vsix
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
out
dist
node_modules
client/server
.vscode-test
*.vsix
!.vscode
*.vsix
16 changes: 8 additions & 8 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.vscode/**
**/*.ts
**/*.map
.gitignore
**/tsconfig.json
**/tsconfig.base.json

/typescript-deno-plugin
.vscode
node_modules
out
src
*.map
docs
tsconfig.json
/screenshots/*.png
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"onCommand:deno.reloadImportRegistries",
"onWebviewPanel:welcomeDeno"
],
"main": "./client/out/extension",
"main": "./client/dist/main",
"contributes": {
"breakpoints": [
{
Expand Down Expand Up @@ -446,8 +446,11 @@
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"vscode:prepublish": "npm run esbuild-plugin && npm run esbuild-base",
"esbuild-base": "esbuild ./client/src/extension.ts --bundle --outfile=client/dist/main.js --external:vscode --format=cjs --platform=node",
"esbuild-plugin": "esbuild ./typescript-deno-plugin/src/index.ts --bundle --outfile=typescript-deno-plugin/dist/index.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-plugin -- --sourcemap && npm run esbuild-base -- --sourcemap",
"test-compile": "tsc -b",
"fmt": "deno fmt .vscode .github client/src media typescript-deno-plugin/src typescript-deno-plugin/*.md docs package.json tsconfig.json README.md CHANGELOG.md",
"lint": "deno lint --unstable client/src typescript-deno-plugin/src docs",
"watch": "tsc -b -w",
Expand All @@ -458,6 +461,7 @@
},
"devDependencies": {
"@types/node": "^14.14.25",
"esbuild": "^0.12.22",
"typescript": "^4.3.5"
}
}
}
2 changes: 1 addition & 1 deletion typescript-deno-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"version": "3.8.1",
"publisher": "deno-land",
"main": "./out/index",
"main": "./dist/index",
"repository": {
"type": "git",
"url": "https://github.com/denoland/vscode_deno"
Expand Down

0 comments on commit 72c4b7a

Please sign in to comment.