microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 101 forks source link

Crash when generating types for scoped package #114

Closed ajafff closed 4 years ago

ajafff commented 5 years ago
> npx dts-gen --dt --name @iarna/toml --template module
npx: installed 59 in 5.764s
Unexpected crash! Please log a bug with the commandline you specified.
ENOENT: no such file or directory, mkdir 'types/@iarna/toml'

It should generate types/iarna__toml instead.

hdoro commented 5 years ago

@ajafff I've managed to go over this bug by creating a folder for the scope before running dts-gen... In your case, try creating a @iarna folder and then running it, it should work :)

EthanSK commented 4 years ago

still having this issue

burtek commented 4 years ago

+1 Solution posted by @hcavalieri does not work for me - I get error when the script is unable to create types/@scope/package/@scope/package-tests.ts

burtek commented 4 years ago

@ajafff @hcavalieri @EthanSK works like a charm with dts-gen@0.6.0 thanks to @sandersn

This can be closed now :)