aurelia / cli

The Aurelia 1 command line tool. Use the CLI to create projects, scaffold components, and bundle your app for release.
MIT License
407 stars 133 forks source link

index.d.ts is blank #1175

Closed davidsk closed 4 years ago

davidsk commented 4 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: index.d.ts is blank but is used as a source for many imports in a cli project. This is generating a warning when using the au run command

3cp commented 4 years ago

I did not see any warning, can you share your full terminal logs?

ekzobrain commented 4 years ago

Also confirm, in v1.3.1 index.d.ts is blank in dist folder

3cp commented 4 years ago

We know is blank. Because the setup is converted to use typescript compiler but no code is converted from js to ts yet.

My question is where is the warning? Pls show some screenshots.

davidsk commented 4 years ago

It shows up in the problems tab in the vscode console, I'll post a screenshot shortly.

ekzobrain commented 4 years ago

I see this in WebStorm in aurelia_project/tasks/run.ts

Снимок экрана 2020-04-29 в 11 34 05
3cp commented 4 years ago

I see, that is kind of expected, because there is no typing from the code. Unless we

  1. convert part of the code base from js from ts.
  2. or get rid of the setup of TypeScript compiler, go to the old setup (without any compiler). Then add d.ts file manually.
3cp commented 4 years ago

Interestly, removing the index.d.ts file can silent the vscode. I will try to move lib/index.ts back to lib/index.js to prevent tsc to generate the empty d.ts file.

3cp commented 4 years ago

Removed empty index.d.ts file. Will be shipped in next version release.