CognxSafeTrack commited on
Commit
53c6fed
·
1 Parent(s): a993a81

fix: use hybrid exports for database package to support both tsx and node runtimes

Browse files
Files changed (1) hide show
  1. packages/database/package.json +7 -3
packages/database/package.json CHANGED
@@ -1,10 +1,14 @@
1
  {
2
  "name": "@repo/database",
3
  "version": "0.0.0",
4
- "main": "./dist/index.js",
5
- "types": "./dist/index.d.ts",
6
  "exports": {
7
- ".": "./dist/index.js",
 
 
 
 
8
  "./seed": "./dist/src/seed.js"
9
  },
10
  "scripts": {
 
1
  {
2
  "name": "@repo/database",
3
  "version": "0.0.0",
4
+ "main": "./index.ts",
5
+ "types": "./index.ts",
6
  "exports": {
7
+ ".": {
8
+ "import": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./index.ts"
11
+ },
12
  "./seed": "./dist/src/seed.js"
13
  },
14
  "scripts": {