File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Installation
44``` bash
5- npm install @trinsic/trinsic
5+ npm install @trinsic/sdk
66```
77
88``` ts
99import {
1010 TrinsicService
11- } from " @trinsic/trinsic " ;
11+ } from " @trinsic/sdk " ;
1212```
1313
1414For 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
Original file line number Diff line number Diff line change 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" : {
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" ,
You can’t perform that action at this time.
0 commit comments