Skip to content

Commit 9f2b668

Browse files
Export @trinsic/sdk/browser properly (#906)
1 parent bba5391 commit 9f2b668

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

web/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
## Installation
44
```bash
5-
npm install @trinsic/trinsic
5+
npm install @trinsic/sdk
66
```
77

88
```ts
99
import {
1010
TrinsicService
11-
} from "@trinsic/trinsic";
11+
} from "@trinsic/sdk";
1212
```
1313

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

1919
## Documentation

web/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@trinsic/trinsic",
2+
"name": "@trinsic/sdk",
33
"version": "1.0.0",
44
"description": "Node and Browser wrapper for the Trinsic services",
55
"browser": {
@@ -10,6 +10,10 @@
1010
"files": [
1111
"lib/**/*"
1212
],
13+
"exports": {
14+
".": "./lib/index.js",
15+
"./browser": "./lib/browser.js"
16+
},
1317
"scripts": {
1418
"build": "npm run build:proto && npm run build:typescript",
1519
"build:proto": "pwsh Generate-Proto.ps1",

0 commit comments

Comments
 (0)