tracking-exposed / trex

youtube & tiktok analysis + youchoose recommendation custmizer. backend, extensions, and tooling
https://docs.tracking.exposed
GNU Affero General Public License v3.0
54 stars 15 forks source link

build(workspace): set 'transpileOnly' mode for ts-loader with 'BUILD_TRANSPILE_ONLY' env var #831

Closed ascariandrea closed 1 year ago

ascariandrea commented 1 year ago

Summary

The CI is not checking the tk:ext is compiling properly, cause previously our webpack configuration only transpiled the source code. So I'm adding a step for yarn tk:ext tsc -b and check the extension compiles properly and set BUILD_TRANSPILE_ONLY env var to control type checking in webpack

Changelog

[build:workspace] build(workspace): set 'transpileOnly' mode for ts-loader with 'BUILD_TRANSPILE_ONLY' env var

Test Plan

# comment the `logoUrl` property from `tk:ext` popup
yarn tk:ext watch # no errors
yarn tk:ext build # ts error
# you can repeat the test for `yt:ext` too
rekoke commented 1 year ago

no errors, all good!