Commit 15728ba
authored
Fix ci-ets: pin @types/node@18 for the ArkAnalyzer build (#362)
* Fix ci-ets: pin @types/node@18 for the ArkAnalyzer build
ArkAnalyzer's npm install pulls the floating latest @types/node, whose
new d.ts files (e.g. ffi.d.ts) use syntax that ArkAnalyzer's bundled
TypeScript cannot parse, so `npm run build` fails with TS1139/TS1005
errors and the whole ci-ets job dies before any Gradle test runs.
Pin a compatible @types/node major right after npm install.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix ci-ets: pin @types/node in the manifest instead of a second npm install
A follow-up `npm install --no-save @types/node@18` re-resolves the npm
tree and prunes ohos-typescript, which ArkAnalyzer's postinstall script
installs with --no-save (it is absent from package.json), so the build
fails with TS2307. Pin @types/node via `npm pkg set` BEFORE the single
`npm install` instead: the pin then survives resolution and postinstall
keeps ohos-typescript in place. Verified locally: `npm run build`
produces out/src/save/serializeArkIR.js.1 parent dfb9993 commit 15728ba
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
| |||
0 commit comments