Skip to content

Commit

Permalink
Chore: Final fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vija02 committed Nov 9, 2024
1 parent 5906398 commit f2fcb26
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
21 changes: 16 additions & 5 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@
"name": "@repo/graphql",
"private": true,
"version": "0.0.0",
"main": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"scripts": {
"build": "yarn codegen && tsc -b",
"dev": "concurrently --kill-others --names \"GQL-CodeGen,GQL-Build\" --prefix \"({name})\" --prefix-colors \"magentaBright.bold,greenBright.bold\" \"yarn codegen --watch\" \"tsc -b --watch --preserveWatchOutput\"",
"build": "yarn codegen && pkgroll --src .",
"dev": "concurrently --kill-others --names \"GQL-CodeGen,GQL-Build\" --prefix \"({name})\" --prefix-colors \"magentaBright.bold,greenBright.bold\" \"yarn codegen --watch\" \"pkgroll --src ./ --watch\"",
"codegen": "graphql-codegen --config codegen.yml"
},
"dependencies": {
Expand All @@ -21,6 +31,7 @@
"@graphql-codegen/typescript-operations": "^4.3.0",
"@graphql-codegen/typescript-react-apollo": "4.3.2",
"@parcel/watcher": "^2.4.1",
"@repo/typescript-config": "*"
"@repo/typescript-config": "*",
"pkgroll": "^2.5.1"
}
}
2 changes: 1 addition & 1 deletion packages/graphql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"noEmit": false,
"rootDir": ".",
"outDir": ".",
"outDir": "dist",
"tsBuildInfoFile": "tsconfig.tsbuildinfo",
"declarationDir": ".",
"lib": ["es2018", "esnext.asynciterable"],
Expand Down
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5325,6 +5325,7 @@ __metadata:
"@graphql-codegen/typescript-react-apollo": "npm:4.3.2"
"@parcel/watcher": "npm:^2.4.1"
"@repo/typescript-config": "npm:*"
pkgroll: "npm:^2.5.1"
react: "npm:rc"
use-pubsub-js: "npm:^1.0.7"
languageName: unknown
Expand Down Expand Up @@ -5390,6 +5391,7 @@ __metadata:
dependencies:
"@apollo/client": "npm:3.11.8"
"@hocuspocus/server": "npm:2.13.7"
"@repo/graphql": "npm:*"
"@repo/typescript-config": "npm:*"
fast-deep-equal: "npm:^3.1.3"
graphql: "npm:^15.9.0"
Expand Down

0 comments on commit f2fcb26

Please sign in to comment.