This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- patch vsce to remove duplicate file paths - change workspace config for vscode extension - add vsce config to vscode extension
- Loading branch information
Showing
4 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/out/package.js b/out/package.js | ||
index dc59da62ec08d6422aadac1b55b8f49f3286eedd..825f14c42096257c070662a9c9412a908b7df32d 100644 | ||
--- a/out/package.js | ||
+++ b/out/package.js | ||
@@ -1106,7 +1106,7 @@ async function collectAllFiles(cwd, dependencies, dependencyEntryPoints) { | ||
} | ||
function collectFiles(cwd, dependencies, dependencyEntryPoints, ignoreFile) { | ||
return collectAllFiles(cwd, dependencies, dependencyEntryPoints).then(files => { | ||
- files = files.filter(f => !/\r$/m.test(f)); | ||
+ files = files.filter((f, idx, arr) => !/\r$/m.test(f) && arr.indexOf(f) === idx); | ||
return (fs.promises | ||
.readFile(ignoreFile ? ignoreFile : path.join(cwd, '.vscodeignore'), 'utf8') | ||
.catch(err => err.code !== 'ENOENT' ? Promise.reject(err) : ignoreFile ? Promise.reject(err) : Promise.resolve('')) | ||
@@ -1311,6 +1311,9 @@ exports.listFiles = listFiles; | ||
* Lists the files included in the extension's package. Runs prepublish. | ||
*/ | ||
async function ls(options = {}) { | ||
+ const cwd = options.cwd || process.cwd(); | ||
+ const manifest = await readManifest(cwd); | ||
+ util.patchOptionsWithManifest(options, manifest); | ||
const files = await listFiles({ ...options, prepublish: true }); | ||
for (const file of files) { | ||
console.log(`${file}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,9 +76,10 @@ | |
"ts-essentials": "9.1.2", | ||
"ts-node": "10.8.1", | ||
"typescript": "4.7.4", | ||
"vsce": "2.9.1" | ||
"vsce": "2.9.2" | ||
}, | ||
"resolutions": { | ||
"chalk": "^4.1.2" | ||
"chalk": "^4.1.2", | ||
"[email protected]": "patch:vsce@npm:2.9.2#.yarn/patches/vsce-npm-2.9.2-2695a5b64c.patch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters