fhirstarterjs 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,10 +41,10 @@ const bundle = await client.request("Patient?family=Smith")
41
41
 
42
42
  ## TypeScript types
43
43
 
44
- If needed, you can import the public types directly from the shipped type folder:
44
+ If needed, you can import the public types directly:
45
45
 
46
46
  ```ts
47
- import type { AuthConfig, JwkSet, LiveTokenResponse, Provider } from "fhirstarterjs/types/api"
47
+ import type { AuthConfig, JwkSet, LiveTokenResponse, Provider } from "fhirstarterjs"
48
48
  ```
49
49
 
50
50
  ## Other FHIR clients
@@ -117,7 +117,7 @@ Host `jwks.json` at the exact URL you register with your authorization server, t
117
117
  | Command | What |
118
118
  |---|---|
119
119
  | `npm run check` | `tsc --noEmit` |
120
- | `npm run build` | Compile to `dist/` (JS only — no `.d.ts`) |
120
+ | `npm run build` | Compile to `dist/` |
121
121
 
122
122
  ## Notes
123
123
 
package/package.json CHANGED
@@ -1,20 +1,14 @@
1
1
  {
2
2
  "name": "fhirstarterjs",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "SMART Backend Services auth lifecycle for any FHIR client",
5
5
  "type": "module",
6
6
  "main": "./dist/fhirstarter.js",
7
7
  "types": "./ts/fhirstarter.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./ts/fhirstarter.ts",
10
+ "types": "./types/index.d.ts",
11
11
  "import": "./dist/fhirstarter.js"
12
- },
13
- "./types/api": {
14
- "types": "./types/api.d.ts"
15
- },
16
- "./types/internal": {
17
- "types": "./types/internal.d.ts"
18
12
  }
19
13
  },
20
14
  "files": ["dist", "ts", "types", "README.md", "LICENSE.md"],
@@ -0,0 +1,3 @@
1
+ export { default } from "../ts/fhirstarter.js"
2
+ export type * from "./api.d.ts"
3
+ export type * from "./internal.d.ts"