sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.18k stars 219 forks source link

Cannot find name 'ChildProcess' #322

Closed yyz945947732 closed 1 year ago

yyz945947732 commented 1 year ago

image

i think @types/node should depend as dependencies instead of devDependencies because the content is explicitly referenced.

image

when my package depend open and build to bundler. ChildProcess not found error will be reported unless i install @types/node.

image

sindresorhus commented 1 year ago

This is a Node.js package, so you are expected to have the Node.js types already. Having the types as dependency is not feasible as it would conflict with other packages having other Node.js versions as dependency.