emscripten-core / emscripten-core/emsdk

[Bazel] Emit Type Definitions

Open
#1,487 1 comment 2 reactions 1 assignee Claimed by @walkingeyerobot View on GitHub
Dominant language
Python
Stars
3.7k
Forks
821
Avg merge
1h 25m
Merged PRs (30d)
3

Description

I tried to add `--emit-tsd [some file path]` to the linker options, however the build complained that `tsc` is not available from the emscripten workspace. From my understanding, [these lines](https://github.com/emscripten-core/emscripten/blob/ffeb76137e765a0023de2635420a4827ca15106d/tools/emscripten.py#L646) check that `tsc` is globally available or via npm. I attempted a few things to incorporate typescript via rules_js from Aspect Build without much success. Without sandboxing and with a global installation of typescript, it works just fine.

What is the recommended approach to maintain sandboxing when emitting types?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.