CognxSafeTrack Claude Sonnet 4.6 commited on
Commit
3deace7
·
1 Parent(s): 785cec2

fix(database): point @repo /database/seed export to compiled dist

Browse files

exports["./seed"] was pointing to src/seed.ts (raw TypeScript) which
Node cannot parse in production → SyntaxError: Unexpected token ':'.
Changed to dist/src/seed.js which is already compiled by tsc (src/**/*
is in tsconfig include). Also reverted root seed.ts to pure script —
the re-export we added was unused since exports now points to dist/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

packages/database/package.json CHANGED
@@ -5,7 +5,7 @@
5
  "types": "./dist/index.d.ts",
6
  "exports": {
7
  ".": "./dist/index.js",
8
- "./seed": "./src/seed.ts"
9
  },
10
  "scripts": {
11
  "build": "prisma generate && tsc --build",
 
5
  "types": "./dist/index.d.ts",
6
  "exports": {
7
  ".": "./dist/index.js",
8
+ "./seed": "./dist/src/seed.js"
9
  },
10
  "scripts": {
11
  "build": "prisma generate && tsc --build",
packages/database/seed.ts CHANGED
@@ -1,5 +1,3 @@
1
- export { seedDatabase } from './src/seed';
2
-
3
  /**
4
  * Seed Script — Module 1 : Eco-Moto Business
5
  * Inserts a realistic Track + 3 TrackDays for testing.
 
 
 
1
  /**
2
  * Seed Script — Module 1 : Eco-Moto Business
3
  * Inserts a realistic Track + 3 TrackDays for testing.