-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running npm install after files are copied to node_modules/@types removes them #5
Comments
See the readme for the alternative way of accessing them directly.
|
Hmm, I assume you are referring to the deckgl-typings readme and suggest adding a |
Oh, sorry - I was answering from my mobile and didn't see the context was on this project. 😳 |
I am suffering it too, is kind of annoying that they disappear on every npm install. Due to this, I would suggest to not copy the typings under @types/ and do always 'something' to include those types even they are not in @types folder. I see you have one workaround: import * as DeckTypings from "@danmarshall/deckgl-typings"
declare module "deck.gl" {
export namespace DeckTypings {}
} but is there something that stops this library to do a workaround like including @danmarshall/deckgl-typings under the typeRoots? "typeRoots": [
"node_modules/@types",
"node_modules/@danmarshall"
] With that it should be solved, and IMO it's neat and understandable. |
@llorenspujol - thanks for the note. Does the |
@llorenspujol - sure I'm open to PRs :) |
Hi,
my project has a dev dependency on
@danmarshall/deckgl-typings
and when I installed it withnpm install --save-dev @danmarshall/deckgl-typings
it correctly created directories and copied files tonode_modules/@types/
.Now running
npm install
(e.g. because I pulled from my project's repo and other dependencies changed) removes thedeck.gl*
and related directories undernode_modules/@types
npm outputs:
removed 21 packages and audited 11 packages in 0.377s
, which matches the 21 directories from deckgl-typings. This is with npm 6.14.5, node 12.18 on Windows 10 x64You can reproduce with these steps:
Should I have some different/additional dependency listed in my projects.json?
The text was updated successfully, but these errors were encountered: