Closed KBroichhausen closed 4 months ago
I can confirm tsed init
appears to work fine in release 5.0.1 as I was starting a new project and ran into this right away.
(( At least, it doesn't exhibit the error on yarn build
. ))
Hello @KBroichhausen Thanks for this issue. I'll try to fix that asap :)
:tada: This issue has been resolved in version 5.0.3 :tada:
The release is available on:
v5.0.3
Your semantic-release bot :package::rocket:
Information
Following compile erros occur:
./envs/index
only exportsconfig
andisProduction
. I guessconfig
should be imported insrc/config/index.ts
but that would also clash with the file definingexport const config
by itself. Maybe import likeimport {config as envConfig} from "./envs/index";
should be considered.PostgresDatasource
is actually the name from the exportedDataSource
. I guess it should beconst instance = PlatformTest.get<DataSource>(PostgresDatasource);
whereDataSource
is the type fromtypeorm
package.Never used
SuperTest
but the type seems to be justlet request: SuperTest.Agent;
instead oflet request: SuperTest.SuperTest<SuperTest.Test>;
After fixing this, I get:
Error: Cannot find package '@babel/plugin-proposal-object-rest-spread' [...]
. Should be installed by the CLI.Also the CLI page doesn't work: https://cli.tsed.io/
Example
Just follow the posted interaction with tsed cli.
Acceptance criteria