Skip to content

Commit

Permalink
Export @trinsic/sdk/browser properly (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus authored Aug 1, 2022
1 parent bba5391 commit 9f2b668
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

## Installation
```bash
npm install @trinsic/trinsic
npm install @trinsic/sdk
```

```ts
import {
TrinsicService
} from "@trinsic/trinsic";
} from "@trinsic/sdk";
```

For bundlers that do not use the `"browser"` field, you can directly import the required web package with:
```ts
import { AccountService} from "@trinsic/trinsic/lib/browser";
import { AccountService} from "@trinsic/sdk/browser";
````

## Documentation
Expand Down
6 changes: 5 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@trinsic/trinsic",
"name": "@trinsic/sdk",
"version": "1.0.0",
"description": "Node and Browser wrapper for the Trinsic services",
"browser": {
Expand All @@ -10,6 +10,10 @@
"files": [
"lib/**/*"
],
"exports": {
".": "./lib/index.js",
"./browser": "./lib/browser.js"
},
"scripts": {
"build": "npm run build:proto && npm run build:typescript",
"build:proto": "pwsh Generate-Proto.ps1",
Expand Down

0 comments on commit 9f2b668

Please sign in to comment.