ts-simple-type icon indicating copy to clipboard operation
ts-simple-type copied to clipboard

typescript should be a normal (not dev) dependency

Open blittle opened this issue 4 years ago • 1 comments

The lib/index.cjs.js artifact has a direct dependency on typescript (see line 3), which means this should have a direct dependency on typescript, instead of dev dependency. The problem is manifest with the warning when using yarn2:

Error: ts-simple-type tried to access typescript, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

blittle avatar Jun 02 '21 16:06 blittle

I wonder if it's intended to be a peer dependency. I'm updating TypeScript now, but not changing this yet while I figure out how things are structured...

justinfagnani avatar Jul 15 '21 16:07 justinfagnani