From b43cb93d8bab1c9aeb42715765291853c15675b4 Mon Sep 17 00:00:00 2001 From: hoonoh Date: Wed, 17 Nov 2021 17:01:20 +0900 Subject: [PATCH] fix: fix vscode plugin bugs - package using npm (https://github.com/microsoft/vscode-vsce/issues/432) - add .vscodeignore - remove invalid import --- packages/vscode-slonik-live-server/.vscodeignore | 3 +++ packages/vscode-slonik-live-server/package.json | 2 +- packages/vscode-slonik-live-server/src/index.ts | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 packages/vscode-slonik-live-server/.vscodeignore diff --git a/packages/vscode-slonik-live-server/.vscodeignore b/packages/vscode-slonik-live-server/.vscodeignore new file mode 100644 index 00000000..e7e35611 --- /dev/null +++ b/packages/vscode-slonik-live-server/.vscodeignore @@ -0,0 +1,3 @@ +src/ +tsconfig*.json +.gitignore diff --git a/packages/vscode-slonik-live-server/package.json b/packages/vscode-slonik-live-server/package.json index ec27b3f0..8b40859e 100644 --- a/packages/vscode-slonik-live-server/package.json +++ b/packages/vscode-slonik-live-server/package.json @@ -12,7 +12,7 @@ "scripts": { "postinstall": "yarn build", "build": "rimraf dist && tsc -p tsconfig.build.json", - "vscode:prepublish": "npm run compile", + "vscode:prepublish": "npm install --no-save && npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./" }, diff --git a/packages/vscode-slonik-live-server/src/index.ts b/packages/vscode-slonik-live-server/src/index.ts index 767df6e0..296101ce 100644 --- a/packages/vscode-slonik-live-server/src/index.ts +++ b/packages/vscode-slonik-live-server/src/index.ts @@ -1,5 +1,3 @@ -import 'ts-slonik-live-server-plugin'; - import { DeepPartial } from 'ts-essentials'; import { PluginConfig } from 'ts-slonik-live-server-plugin/dist/lib/config'; import { ExtensionContext, extensions, window, workspace } from 'vscode';