From da69cc0f5d4f42b577426fab9d8497d4268547d2 Mon Sep 17 00:00:00 2001 From: Riccardo Ferretti Date: Thu, 19 Nov 2020 17:57:56 +0100 Subject: [PATCH] improved publishing scripts --- package.json | 4 ++-- packages/foam-vscode/package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a55302c1a..75f87a2c6 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "watch:core": "yarn workspace foam-core start", "test:core": "yarn workspace foam-core test", "vscode:package-extension": "yarn workspace foam-vscode package-extension", - "vscode:install-extension": "code --install-extension ./packages/foam-vscode/foam-vscode-$npm_package_version.vsix", - "vscode:publish-extension": "npx vsce publish --packagePath ./packages/foam-vscode/foam-vscode-$npm_package_version.vsix", + "vscode:install-extension": "yarn workspace foam-vscode install-extension", + "vscode:publish-extension": "yarn workspace foam-vscode publish-extension", "clean": "lerna run clean", "build": "lerna run build", "test": "lerna run test", diff --git a/packages/foam-vscode/package.json b/packages/foam-vscode/package.json index 41b866b33..2f6997939 100644 --- a/packages/foam-vscode/package.json +++ b/packages/foam-vscode/package.json @@ -161,7 +161,8 @@ "npm-install": "rimraf node_modules && npm i", "npm-cleanup": "rimraf package-lock.json node_modules && yarn", "package-extension": "npx vsce package && yarn npm-cleanup", - "publish-extension": "npx vsce publish && yarn npm-cleanup" + "install-extension": "code --install-extension ./foam-vscode-$npm_package_version.vsix", + "publish-extension": "npx vsce publish --packagePath foam-vscode-$npm_package_version.vsix && yarn npm-cleanup" }, "devDependencies": { "@babel/core": "^7.11.0",