Open glensc opened 2 years ago
Some of the errors went away after updating @types/node
to 10
└─ @types/node@10.17.60
$ yarn build; if [ $DATABASE_JSON_FILE ]; then yarn run setup; fi
yarn run v1.22.18
$ tsc
source/danger/danger_runner.ts:169:57 - error TS2345: Argument of type 'Process' is not assignable to parameter of type 'ExitCodeContainer'.
Types of property 'exitCode' are incompatible.
Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
169 return new Executor(source, platform, runner, config, process)
~~~~~~~
source/github/events/handlers/_tests/_events-create-fixture.test.ts:55:10 - error TS2790: The operand of a 'delete' operator must be optional.
55 delete (payload.payload.dsl as DangerDSLJSONType).github!.api
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 2 errors.
Error about delete operand explained here:
The ExitCodeContainer.exitCode was fixed in:
the commit is unreadable because nobody is following atomic commit principle, but scroll down to find ExitCodeContainer
to find the diff.
another bummer was, that I spent a some dozen minutes trying to figure out wtf the source code does not match the package source on npm, trying to figure what weird build system inject extra process parameter to class constructor, before realized, I'm on master, not the main branch 😭
The Dockerfile at 4c7109895ee956183411a3cb635942825d58bd97 fails to build:
also this project package.json suffer same problem as in danger.js: