Skip to content

Commit

Permalink
Run build commands sequentially to prevent race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Dec 9, 2024
1 parent f1c3c45 commit 6ad5559
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"url": "git+https://github.com/electric-sql/electric.git"
},
"scripts": {
"build": "shx rm -rf dist && concurrently \"tsup\" \"tsc -p tsconfig.build.json\"",
"build": "shx rm -rf dist && tsup && tsc -p tsconfig.build.json",
"format": "eslint . --fix",
"prepack": "pnpm build",
"stylecheck": "eslint . --quiet",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"url": "git+https://github.com/electric-sql/electric.git"
},
"scripts": {
"build": "shx rm -rf dist && concurrently \"tsup\" \"tsc -p tsconfig.build.json\"",
"build": "shx rm -rf dist && tsup && tsc -p tsconfig.build.json",
"format": "eslint . --fix",
"prepack": "pnpm build",
"stylecheck": "eslint . --quiet",
Expand Down
3 changes: 3 additions & 0 deletions packages/typescript-client/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"skipLibCheck": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "tests", "dist"]
}

0 comments on commit 6ad5559

Please sign in to comment.