Skip to content

Commit

Permalink
chore(package.json): fragmented each package.json to an singular app …
Browse files Browse the repository at this point in the history
…as turbopack doc says

Kickstarting - improve actual repo with TurboRepo eletroswing#31
  • Loading branch information
yandevv committed Mar 9, 2024
1 parent ada8353 commit 59184b0
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 38 deletions.
19 changes: 19 additions & 0 deletions apps/api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@repo/api",
"version": "0.0.1",
"description": "BacenSimulator api server, focused in create endpoints to interact with the database.",
"scripts": {
"start": "ts-node -r tsconfig-paths/register server.ts",
"dev": "ts-node-dev -r tsconfig-paths/register server.ts"
},
"repository": "https://github.com/eletroswing/bacen-simulator",
"author": "eletroswing",
"license": "MIT",
"dependencies": {
"fast-xml-parser": "^4.3.5",
"fastify": "^4.26.2",
"fastify-plugin": "^4.5.1",
"zod": "^3.22.4"
}
}

80 changes: 55 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 8 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"description": "BacenSimulator is a docker image to simulate Bacen, a official Brazilian payment infrastructure",
"scripts": {
"build": "tsc -p tsconfig.json",
"start": "ts-node -r tsconfig-paths/register ./apps/api/server.ts",
"dev": "ts-node-dev -r tsconfig-paths/register ./apps/api/server.ts",
"migration": "npm run migration:run && npm run migration:seed",
"migration:run": "ts-node -r tsconfig-paths/register ./package/infra/migrate.ts",
"migration:seed": "ts-node -r tsconfig-paths/register ./package/infra/seed_database.ts",
"commit": "cz"
},
"config": {
Expand All @@ -24,15 +19,15 @@
"commitizen": "^4.3.0",
"ts-node-dev": "^2.0.0",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.4.2",
"turbo": "^1.12.5"
"turbo": "^1.12.5",
"typescript": "^5.4.2"
},
"dependencies": {
"fast-xml-parser": "^4.3.5",
"fastify": "^4.26.2",
"fastify-plugin": "^4.5.1",
"sqlite3": "^5.1.7",
"ts-node": "^10.9.2",
"zod": "^3.22.4"
}
"ts-node": "^10.9.2"
},
"workspaces": [
"packages/*",
"apps/*"
]
}
18 changes: 18 additions & 0 deletions packages/infra/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@repo/infra",
"version": "0.0.1",
"description": "BacenSimulator infrastructure responsible to manage databases (migrator and seeder).",
"scripts": {
"migration": "npm run migration:run && npm run migration:seed",
"migration:run": "ts-node -r tsconfig-paths/register ./package/infra/migrate.ts",
"migration:seed": "ts-node -r tsconfig-paths/register ./package/infra/seed_database.ts"
},
"repository": "https://github.com/eletroswing/bacen-simulator",
"author": "eletroswing",
"license": "MIT",
"exports": {
"./logger": "./logger.ts",
"./database": "./database.ts"
}
}

0 comments on commit 59184b0

Please sign in to comment.