Skip to content

Commit

Permalink
feat(browser) add @slangroom/helpers pkg (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino authored Jun 10, 2024
1 parent dabdcd3 commit 3163cd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"@slangroom/http": "workspace:*",
"@slangroom/json-schema": "workspace:*",
"@slangroom/pocketbase": "workspace:*",
"@slangroom/qrcode": "workspace:*"
"@slangroom/qrcode": "workspace:*",
"@slangroom/helpers": "workspace:*"
},
"version": "1.33.1",
"repository": "https://github.com/dyne/slangroom",
Expand Down
3 changes: 2 additions & 1 deletion pkg/browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import { Slangroom } from '@slangroom/core';
import { qrcode } from '@slangroom/qrcode';
import { http } from '@slangroom/http';
import { pocketbase } from '@slangroom/pocketbase';
import { helpers } from '@slangroom/helpers';
import {JSONSchema} from '@slangroom/json-schema'
const slangroom = new Slangroom([http, qrcode, JSONSchema, pocketbase]);
const slangroom = new Slangroom([http, qrcode, JSONSchema, pocketbase, helpers]);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).slangroom = slangroom; // instead of casting window to any, you can extend the Window interface: https://stackoverflow.com/a/43513740/5433572
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 3163cd1

Please sign in to comment.