Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a script to clean up db output and run it before build script #65

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chess/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down
3 changes: 2 additions & 1 deletion hex-battle/backend/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down
3 changes: 2 additions & 1 deletion nft-lvlup/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down
3 changes: 2 additions & 1 deletion open-world/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down
3 changes: 2 additions & 1 deletion paima-dice/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down
5 changes: 3 additions & 2 deletions rock-paper-scissors/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand All @@ -21,4 +22,4 @@
"@types/pg": "^8.10.9",
"tsc-alias": "^1.8.8"
}
}
}
3 changes: 2 additions & 1 deletion trading-cards/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down
3 changes: 2 additions & 1 deletion web-2.5/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"clean": "sh ../scripts/wipe.sh",
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "npx pgtyped -w -c pgtypedconfig.json"
},
Expand Down