From 2d8dc608e8463cf9e1d3d8cbd5fa2c22e457a71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=81=93=E5=8C=96=E5=B8=AB?= <645907+wraith13@users.noreply.github.com> Date: Thu, 19 Dec 2019 14:14:01 +0900 Subject: [PATCH 1/3] Modifying messages to match the current situation I know it was a few seconds before. But now it is a few minutes. --- src/publish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/publish.ts b/src/publish.ts index 8b4b4060..3c7d7266 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -73,7 +73,7 @@ async function _publish(packagePath: string, pat: string, manifest: Manifest): P return promise .catch(err => Promise.reject(err.statusCode === 409 ? `${fullName} already exists.` : err)) - .then(() => log.done(`Published ${fullName}\nYour extension will live at ${getPublishedUrl(name)} (might take a few seconds for it to show up).`)); + .then(() => log.done(`Published ${fullName}\nYour extension will live at ${getPublishedUrl(name)} (might take a few minutes for it to show up).`)); }) .catch(err => { const message = err && err.message || ''; From 4302d01253ba24c267005554d7340a779b7df622 Mon Sep 17 00:00:00 2001 From: Yiyang Hao Date: Wed, 25 Dec 2019 11:30:43 +0800 Subject: [PATCH 2/3] Support linked npm modules Fixes #203 --- src/npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npm.ts b/src/npm.ts index 07fcac81..9de9f1ed 100644 --- a/src/npm.ts +++ b/src/npm.ts @@ -54,7 +54,7 @@ function checkNPM(cancellationToken?: CancellationToken): Promise { function getNpmDependencies(cwd: string): Promise { return checkNPM() - .then(() => exec('npm list --production --parseable --depth=99999', { cwd, maxBuffer: 5000 * 1024 })) + .then(() => exec('npm list --production --parseable --depth=99999 --link=true', { cwd, maxBuffer: 5000 * 1024 })) .then(({ stdout }) => stdout .split(/[\r\n]/) .filter(dir => path.isAbsolute(dir))); From 845eb79541d5fcb452efe1db5ac8fcecfe82d62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Mon, 13 Jan 2020 11:56:24 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index cb6b1df0..03d2bdfc 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ - [Node.js](https://nodejs.org/en/) at least `8.x.x` +## Usage + +`vsce` is meant to be mainly used as a command line tool. It can also be used a library since it exposes a small [API](https://github.com/microsoft/vscode-vsce/blob/master/src/api.ts). + +> **Warning:** When using vsce as a library be sure to sanitize any user input used in API calls, as a security measurement. + ## Development First clone this repository, then: