diff --git a/website/.gitignore b/website/.gitignore index 02f6e50b..60c587b1 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -17,3 +17,6 @@ pnpm-debug.log* # macOS-specific files .DS_Store + +public/tree-sitter.wasm +public/tree-sitter-haskell.wasm \ No newline at end of file diff --git a/website/package.json b/website/package.json index 5065c106..16d86d93 100644 --- a/website/package.json +++ b/website/package.json @@ -9,7 +9,8 @@ "check": "astro check && tsc", "build": "astro build", "preview": "astro preview --port 3009 --host 0.0.0.0", - "astro": "astro" + "astro": "astro", + "postinstall": "cp node_modules/hs2js/dist/tree-sitter.wasm public && cp node_modules/hs2js/dist/tree-sitter-haskell.wasm public" }, "dependencies": { "@algolia/client-search": "^4.22.0", @@ -39,6 +40,7 @@ "@strudel/transpiler": "workspace:*", "@strudel/webaudio": "workspace:*", "@strudel/xen": "workspace:*", + "@strudel/tidal": "workspace:*", "@supabase/supabase-js": "^2.39.1", "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.10", diff --git a/website/src/repl/util.mjs b/website/src/repl/util.mjs index 3147ae38..703d3447 100644 --- a/website/src/repl/util.mjs +++ b/website/src/repl/util.mjs @@ -82,6 +82,7 @@ export function loadModules() { import('@strudel/serial'), import('@strudel/soundfonts'), import('@strudel/csound'), + import('@strudel/tidal'), ]; if (isTauri()) { modules = modules.concat([