Skip to content

Commit

Permalink
feat(ci): watch command for schema package that does everything
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Sep 14, 2023
1 parent 1a014b0 commit 3c5d936
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
}
},
"scripts": {
"watch": "graphql-codegen --verbose --watch",
"watch": "concurrently \"npm run watch:codegen\" \"npm run watch:swc\" \"npm run watch:tsc\"",
"watch:codegen": "graphql-codegen --verbose --watch",
"watch:swc": "swc ./src -d ./build --watch",
"watch:tsc": "tsc --emitDeclarationOnly --watch",
"prep": "graphql-codegen --verbose && swc ./src -d ./build && tsc --emitDeclarationOnly"
},
"devDependencies": {
Expand All @@ -40,7 +43,8 @@
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.67",
"graphql": "^16.7.1",
"typescript": "^5.1.6"
"typescript": "^5.1.6",
"concurrently": "^8.2.1"
},
"dependencies": {
"@amazeelabs/scalars": "^1.6.2",
Expand Down
64 changes: 62 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit 3c5d936

Please sign in to comment.