From a35e9aef0ea75ea7ba8a4dfc23ec6d637b9a9c4a Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 17 May 2024 20:37:04 +0200 Subject: [PATCH] add tidal package to website --- website/.gitignore | 3 +++ website/package.json | 4 +++- website/src/repl/util.mjs | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) 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([