`keytar` brings in a lot of files in the build
See original GitHub issueI’m looking into reducing the number of files in our server build.
Turns out that keytar
brings in a lot of file because the use of prebuild-install
in the install
script.
Because of that prebuild-install
is a dependency (not just a dev dependency) and prebuild-install
and all it’s dependencies end up in the bits we ship (tar-fs, tar-stream, readable-stream…).
It’s not easy to remove all these unnecessary from the build. We have a hand curated filter (https://github.com/microsoft/vscode/blob/main/build/.moduleignore) but that’s cumbersome and might change after an update.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Microsoft/vscode - Gitter
Hi -- I couldn't find an issue for this. When I look at the git diff page, select a line, or just click...
Read more >How to securely store sensitive information in Electron with ...
We'll just do it in plain node.js first. Just npm install keytar create an index.js file and add the following: /** * The...
Read more >Building a MIDI keytar
Hi all, Firstly, I wanted to post this link, which demonstrates what a keytar is. http://keyboardkraze.com/best-keytar-2018-wired-wireless/ ...
Read more >Some thoughts on the Alesis Vortex Keytar. - Gearspace.com
Build quality is plasticky but that's been the case for most keytars ... the knobs (which are of a good quality) the ribbon,...
Read more >Keytar | Hackaday
What looks like the 1987 movie Mannequin taking a dark, Mengelesque turn, is as awesome as it is bizarre, thanks to building the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@thegecko that comes from here: https://github.com/microsoft/vscode/blob/3268d1d47d1ae902bc1ec45bd2153fdacab66ff6/src/vs/workbench/api/common/extHostRequireInterceptor.ts#L36
It’s really just keytar, the vscode module itself, obviously, and the
open
/opn
module.Keytar behaves this way so that you have consistency if your extension is actually running on a remote. You get the value stored on the client side (the side with an actual keychain).
@deepak1556 do you think we could meet and go over the approach with vscode-node-sqlite3 and how I could do the same for keytar? I like the idea of following that pattern and I’m curious to know how we publish vscode-node-sqlite3