@imranq2/fhirpatientsummary 1.0.5 → 1.0.6

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.
Files changed (1) hide show
  1. package/package.json +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imranq2/fhirpatientsummary",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A template for creating npm packages using TypeScript and VSCode",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -12,12 +12,12 @@
12
12
  "import": "./dist/index.mjs"
13
13
  }
14
14
  },
15
+ "type": "module",
15
16
  "files": [
16
17
  "dist/**/*"
17
18
  ],
18
- "type": "module",
19
19
  "scripts": {
20
- "build": "npm run clean:dist && tsup src/index.ts --format cjs,esm --dts",
20
+ "build": "npm run clean:dist && tsup src/index.ts --format cjs,esm --dts && npm run check:cjs-import && npm run check:esm-import && npm run check:ts-import",
21
21
  "build:watch": "npm run clean:dist && tsup src/index.ts --format cjs,esm --dts --watch",
22
22
  "clean": "npm run clean:all",
23
23
  "clean:all": "npm run clean:dist && npm run clean:coverage && npm run clean:deps",
@@ -33,7 +33,10 @@
33
33
  "semantic-release": "semantic-release",
34
34
  "test:watch": "jest --watch",
35
35
  "test": "jest --coverage",
36
- "typecheck": "tsc --noEmit"
36
+ "typecheck": "tsc --noEmit",
37
+ "check:cjs-import": "node test/build/cjs-import-check.cjs",
38
+ "check:esm-import": "node --experimental-vm-modules test/build/esm-import-check.mjs",
39
+ "check:ts-import": "ts-node --project tsconfig.json test/build/ts-import-check.ts"
37
40
  },
38
41
  "repository": {
39
42
  "type": "git",
@@ -93,7 +96,8 @@
93
96
  "typescript-eslint": "^8.34.1"
94
97
  },
95
98
  "lint-staged": {
96
- "*.{ts,js}": "eslint --cache --cache-location .eslintcache --fix"
99
+ "src/**/*.{ts,js}": "eslint --cache --cache-location .eslintcache --fix",
100
+ "test/!(build)/**/*.{ts,js}": "eslint --cache --cache-location .eslintcache --fix"
97
101
  },
98
102
  "release": {
99
103
  "branches": [