peerjs-server
peerjs-server copied to clipboard
@types packages as production dependencies?
I'm having an issue:
peerjs-server lists a few DefinitelyTyped packages as production dependencies:
@types/cors
@types/express
@types/ws
This means that these packages are installed when peerjs-server or any package that depends on it is installed
I have a suggestion:
Move them from dependencies
to devDependencies
in package.json.
@vostrnad I have a question: We have index.d.ts
which uses @types/ws
and @types/express
. Is it safe to move these packages to devDeps? AFAIK if the library exports some types, it should be in deps.
Types should go to dependencies
, see the typescript documentation