so in summary:
• I want to write a http server using node apis in kotlin running on node: i.e. port the sample in
https://nodejs.org/en/about/ from js to kotlin
• I am using strictly only
npm
and command line tools (
dukat
and
kotlinc-js
- no Gradle, IDEs, etc.);
• for kotlinc-js to compile, I also need to have definitions for node and ecmascript APIs converted from typescript to kotlin
• I am failing at a step of converting ecmascript definitions, try this:
npm i dukat && npx dukat -d kt node_modules/dukat/d.ts.libs/*.d.ts
, you will get
failed to resolve source file lib.es5.d.ts
• therefore got curious why the d.ts files are bundled with
dukat
while
dukat
fails to compile them - maybe it can work, but I missed to do something required