ezmedicationinput 0.1.44 → 0.1.45

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/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "ezmedicationinput",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "Parse concise medication sigs into FHIR R5 Dosage JSON",
5
5
  "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
8
17
  "scripts": {
9
- "build": "tsc -p tsconfig.json && node scripts/postbuild.cjs",
10
- "test": "vitest run"
18
+ "test:dist": "npm run build && vitest run test-dist",
19
+ "build": "tsup && tsc -p tsconfig.types.json",
20
+ "test": "vitest run --dir test"
11
21
  },
12
22
  "files": [
13
23
  "dist"
@@ -26,7 +36,8 @@
26
36
  },
27
37
  "bugs": "https://github.com/swittk/ezmedicationinput/issues",
28
38
  "devDependencies": {
39
+ "tsup": "^8.5.1",
29
40
  "typescript": "^5.4.0",
30
41
  "vitest": "^1.5.0"
31
42
  }
32
- }
43
+ }