Skip to content
Draft
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
12 changes: 12 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Updating Runtime Dependencies

Ensure that the package you are adding has TypeScript type definitions.

1. Add the runtime dependency to package.json
2. Update scripts/updateRuntimeDependencies.js to include the TypeScript type definitions for the package
3. Run `npm run updateRuntimeDependencies`
4. Check that file src/runtime/declarations.ts has been updated
5. Update src/TypeScriptToJavaScriptCompiler.ts to load the declarations into the TS compilation environment
6. Update src/TypeScriptCompilationContext.ts to automatically import the module into generated TS runtime code
7. Update src/JavaScriptEvaluator.ts to pass the reference to the npm module into the function being evaluated

2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import js from "@eslint/js";
import tseslint from "typescript-eslint";

export default defineConfig([
globalIgnores(["dist/", "scripts/", "**/model-gen/**"]),
globalIgnores(["dist/", "scripts/", "**/model-gen/**", "test/archives/**"]),
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{
files: ["**/*.{js,mjs,cjs,ts}"],
Expand Down
Empty file added out.txt
Empty file.
Loading