Skip to content

Commit

Permalink
improve seeding and all cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoalzate committed Jul 17, 2024
1 parent 468adcc commit 86dbb44
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 11 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
"dev:node": "node --watch --env-file=.env dist/index.js",
"dev:esbuild": "pnpm run build:watch",
"dev": "run-p dev:*",
"db:generate": "drizzle-kit generate",
"db:drop": "drizzle-kit drop",
"db:check": "drizzle-kit check",
"db:studio": "drizzle-kit studio",
"db:up": "drizzle-kit up",
"db:seed": "pnpm exec esbuild ./scripts/db/seed.ts --bundle --platform=node --outfile=dist/seed.js && node --env-file=.env dist/seed.js",
"db:generate": "pnpm exec drizzle-kit generate",
"db:drop": "pnpm exec drizzle-kit drop",
"db:check": "pnpm exec drizzle-kit check",
"db:studio": "pnpm exec drizzle-kit studio",
"db:up": "pnpm exec drizzle-kit up",
"db:seed": "node --import tsx --env-file=.env ./scripts/db/seed.ts",
"db:seed:cleanup": "pnpm run db:seed --cleanup",
"db:insert:groups": "pnpm exec esbuild ./scripts/db/insertCustomGroups.ts --bundle --platform=node --format=cjs | node --env-file=.env",
"test": "jest --runInBand",
"test:coverage": "jest --coverage --runInBand",
"format": "prettier --check \"src/**/*.{ts,md}\"",
"format:fix": "prettier --write \"src/**/*.{ts,md}\""
"test": "pnpm exec jest --runInBand",
"test:coverage": "pnpm exec jest --coverage --runInBand",
"format": "pnpm exec prettier --check \"src/**/*.{ts,md}\"",
"format:fix": "pnpm exec prettier --write \"src/**/*.{ts,md}\""
},
"keywords": [],
"author": "",
Expand Down Expand Up @@ -51,6 +50,7 @@
"pg": "^8.11.5",
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"tsx": "^4.16.2",
"typescript": "^5.5.2"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 86dbb44

Please sign in to comment.