Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion scripts/generate-native-dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,14 @@ function main() {
const functions = parseRustModule(source);

if (functions.length === 0) {
console.warn(` ⚠️ No #[rquickjs::function] found in ${moduleDir}`);
if (moduleDir === "native-globals") {
// native-globals registers globals (TextEncoder, crypto, etc.) on
// globalThis — it doesn't export module functions. Skip silently.
continue;
}
console.warn(
` ⚠️ No #[rquickjs::function] exports found for native module '${moduleDir}'; skipping .d.ts generation.`,
);
continue;
}

Expand Down
Loading
Loading