diff --git a/.gitignore b/.gitignore index 9cc6e85..6da9605 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ web/sites/default/files/* # Never commit real credentials .env + +node_modules/ diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..0dde532 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "checkJs": true, + "paths": { + "https://esm.sh/preact@10": ["./node_modules/preact/src/index.d.ts"], + "https://esm.sh/preact@10/hooks": ["./node_modules/preact/hooks/src/index.d.ts"], + "https://esm.sh/htm@3/preact": ["./node_modules/htm/preact/index.d.ts"] + } + }, + "include": [ + "web/modules/custom/riverside_pt/js/**/*.js", + "web/modules/custom/riverside_pt/js/globals.d.ts" + ] +}