From d55036c5a746ecd62bb60765ab4c6c35d6369db5 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 26 Aug 2021 14:55:56 +1000 Subject: [PATCH] chore: fix packaging of extension --- .github/workflows/ci.yml | 2 +- .vscodeignore | 18 ++++++++++++++---- package.json | 4 ++-- typescript-deno-plugin/package.json | 4 ++++ 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8cea4aa..6ec7ebd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: run: npm run test-compile - name: Package - run: npx vsce@1.93.0 package -o vscode-deno.vsix + run: npx vsce@1.96.1 package -o vscode-deno.vsix - name: Artifact upload uses: actions/upload-artifact@v2 diff --git a/.vscodeignore b/.vscodeignore index d9fd5542..f5e5f80d 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,8 +1,18 @@ +.github +.gitignore .vscode -node_modules +*.vsix out -src -*.map docs +screenshots tsconfig.json -/screenshots/*.png +typescript-deno-plugin +!typescript-deno-plugin/dist/*.js +!typescript-deno-plugin/package.json +node_modules +!node_modules/typescript-deno-plugin/dist/*.js +!node_modules/typescript-deno-plugin/package.json +!screenshots/basic_usage.gif +client +!client/dist/*.js +!client/package.json diff --git a/package.json b/package.json index f8b64723..a7d5c825 100644 --- a/package.json +++ b/package.json @@ -446,7 +446,7 @@ ] }, "scripts": { - "vscode:prepublish": "npm run esbuild-plugin && npm run esbuild-base", + "vscode:prepublish": "npm i && 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", @@ -464,4 +464,4 @@ "esbuild": "^0.12.22", "typescript": "^4.3.5" } -} \ No newline at end of file +} diff --git a/typescript-deno-plugin/package.json b/typescript-deno-plugin/package.json index 34b53780..86b7cc31 100644 --- a/typescript-deno-plugin/package.json +++ b/typescript-deno-plugin/package.json @@ -7,6 +7,10 @@ "version": "3.8.1", "publisher": "deno-land", "main": "./dist/index", + "files": [ + "dist", + "README.md" + ], "repository": { "type": "git", "url": "https://github.com/denoland/vscode_deno"