Barazo default frontend barazo.forum
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(ci): resolve plugin build failure in Turbopack (#216)

Two issues caused the CI build to fail:

1. Turbopack can't resolve .js → .tsx imports inside node_modules
(the plugin uses ESM .js extensions required by its NodeNext config).
Fix: create .js symlinks pointing to .tsx/.ts source files after
copying the plugin into node_modules.

2. tsc follows the pnpm symlink to ../barazo-plugins where @types/react
isn't installed, causing type-check failures.
Fix: install plugin-signatures devDependencies during CI setup.

authored by

Guido X Jansen and committed by
GitHub
7268bb1f 058ffba9

+14 -3
+14 -3
.github/actions/setup/action.yml
··· 25 25 git clone --depth 1 https://github.com/singi-labs/barazo-lexicons.git ../barazo-lexicons 26 26 cd ../barazo-lexicons && pnpm install --ignore-scripts && pnpm run build 27 27 28 - - name: Clone barazo-plugins 28 + - name: Clone and prepare barazo-plugins 29 29 shell: bash 30 - run: git clone --depth 1 https://github.com/singi-labs/barazo-plugins.git ../barazo-plugins 30 + run: | 31 + git clone --depth 1 https://github.com/singi-labs/barazo-plugins.git ../barazo-plugins 32 + cd ../barazo-plugins/packages/plugin-signatures && pnpm install --ignore-scripts 31 33 32 34 - name: Install dependencies 33 35 shell: bash 34 36 run: pnpm install --frozen-lockfile 35 37 36 - - name: Replace plugin symlinks for Turbopack compatibility 38 + - name: Copy plugin into node_modules for Turbopack 37 39 shell: bash 38 40 run: | 39 41 LINK=node_modules/@barazo/plugin-signatures ··· 42 44 rm "$LINK" 43 45 cp -r "$TARGET" "$LINK" 44 46 fi 47 + # Turbopack can't resolve .js → .tsx inside node_modules. 48 + # Create .js symlinks so the plugin's ESM imports resolve. 49 + cd "$LINK/frontend" 50 + for f in *.tsx; do 51 + ln -sf "$f" "${f%.tsx}.js" 52 + done 53 + for f in *.ts; do 54 + [ ! -e "${f%.ts}.js" ] && ln -sf "$f" "${f%.ts}.js" 55 + done