You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leaving this TODO for myself; right now, I store the clone of TypeScript and associated info / data inside of the package dir. This is fine, except if you use pnpm, the path to that dir changes whenever the package version is bumped, meaning the package gets duplicated and needs a reclone, which isn't great.
But, I don't want to have just one directory shared between every every-ts instance (since one might want to install it twice for some reason), so some other fix needs to be figured out there.
The text was updated successfully, but these errors were encountered:
Maybe default to somewhere in ~/.cache/ + allow location to be overridden with a CLI flag, environment variable or such?
I use nvm and on every new version the npm packages are installed in a new location, which also requires a lot of needless fetching (and I guess disk space)
An OS-specific user cache path was where I was thinking to put it, but I also want to avoid using it when every-ts is not installed globally (in case people want to install it right into their project and not use a global install, or for development of the tool). That, I'm less sure how to do.
I use nvm and on every new version the npm packages are installed in a new location, which also requires a lot of needless fetching (and I guess disk space)
FWIW, I personally set export npm_config_prefix="$HOME/.local" and then use shell aliases to always force global npm usages to cd to $HOME beforehand, that way my globally installed packages are independent of what node version I'm using. (I also use fnm which makes it easier for me to exec my "default" node version to run npm for consistency; I don't think nvm lets you do anything except touch the current shell.)
Leaving this TODO for myself; right now, I store the clone of TypeScript and associated info / data inside of the package dir. This is fine, except if you use
pnpm
, the path to that dir changes whenever the package version is bumped, meaning the package gets duplicated and needs a reclone, which isn't great.But, I don't want to have just one directory shared between every
every-ts
instance (since one might want to install it twice for some reason), so some other fix needs to be figured out there.The text was updated successfully, but these errors were encountered: