Hello there!
First of all - thank you for the amazing package!
I have noticed that dts-generator stopped working for me in the new (3.0.0) version. I am running it on Windows.
Please see my experiment below:
- Installed 3.0.0
- Got "module not found" error
- Installed 2.1.0
- Worked fine with same command
Command line:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS F:\Test\www\ter> npm install dts-generator@3.0.0
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ dts-generator@3.0.0
removed 2 packages, updated 1 package and audited 24088 packages in 12.008s
found 0 vulnerabilities
PS F:\Test\www\ter> npm run dts
> ter@1.0.0 dts F:\Test\www\ter
> dts-generator --name ter --project ./ --out index.d.ts --main ter/index
Starting
processing:
F:/Test/www/ter/lib/interfaces.ts
F:/Test/www/ter/lib/config.ts
F:/Test/www/ter/lib/sources/av.ts
F:/Test/www/ter/lib/sources/magic.ts
F:/Test/www/ter/lib/sources/mc.ts
F:/Test/www/ter/lib/er.ts
F:/Test/www/ter/index.ts
F:/Test/www/ter/lib/test-utils.ts
(node:3064) UnhandledPromiseRejectionWarning: Error: main module ter/index was not found
at F:\Test\www\ter\node_modules\dts-generator\index.js:295:23
at new Promise (<anonymous>)
at Object.generate [as default] (F:\Test\www\ter\node_modules\dts-generator\index.js:232:16)
at Object.main [as default] (F:\Test\www\ter\node_modules\dts-generator\bin\dts-generator.js:70:31)
at Object.<anonymous> (F:\Test\www\ter\node_modules\dts-generator\bin\dts-generator:5:22)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
(node:3064) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:3064) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
PS F:\Test\www\ter> npm install dts-generator@2.1.0
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ dts-generator@2.1.0
added 2 packages from 2 contributors, updated 1 package and audited 24088 packages in 11.757s
found 0 vulnerabilities
PS F:\Test\www\ter> npm run dts
> ter@1.0.0 dts F:\Test\www\ter
> dts-generator --name ter --project ./ --out index.d.ts --main ter/index
Starting
processing:
F:/Test/www/ter/lib/interfaces.ts
F:/Test/www/ter/lib/config.ts
F:/Test/www/ter/lib/sources/av.ts
F:/Test/www/ter/lib/sources/magic.ts
F:/Test/www/ter/lib/sources/mc.ts
F:/Test/www/ter/lib/er.ts
F:/Test/www/ter/index.ts
F:/Test/www/ter/lib/test-utils.ts
Aliased main module ter to ter/index
output to "index.d.ts"
Done!
Hello there!
First of all - thank you for the amazing package!
I have noticed that dts-generator stopped working for me in the new (3.0.0) version. I am running it on Windows.
Please see my experiment below:
Command line: