Skip to content

Commit

Permalink
Add bin to package json (#2429)
Browse files Browse the repository at this point in the history
* fix name for action package

Signed-off-by: TuvalSimha <[email protected]>

* fix

Signed-off-by: TuvalSimha <[email protected]>

* buildOptions

Signed-off-by: TuvalSimha <[email protected]>

* changeset

Signed-off-by: TuvalSimha <[email protected]>

---------

Signed-off-by: TuvalSimha <[email protected]>
  • Loading branch information
TuvalSimha authored Apr 10, 2023
1 parent 6acf39e commit 5dceaf2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/real-guests-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphql-inspector/action': patch
'@graphql-inspector/cli': patch
'@graphql-inspector/ci': patch
---

Fix "bin" in the package.json
3 changes: 3 additions & 0 deletions packages/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"url": "https://github.com/kamilkisiela"
},
"license": "MIT",
"bin": {
"graphql-inspector-github": "dist/cjs/index.js"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down
10 changes: 10 additions & 0 deletions packages/ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"url": "https://github.com/kamilkisiela"
},
"license": "MIT",
"bin": {
"graphql-inspector": "dist/cjs/index.js"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down Expand Up @@ -79,6 +82,13 @@
"access": "public"
},
"sideEffects": false,
"buildOptions": {
"bin": {
"graphql-inspector": {
"input": "src/index.ts"
}
}
},
"typescript": {
"definition": "dist/typings/index.d.ts"
}
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"url": "https://github.com/kamilkisiela"
},
"license": "MIT",
"bin": {
"graphql-inspector": "dist/cjs/index.js"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down Expand Up @@ -91,6 +94,16 @@
"access": "public"
},
"sideEffects": false,
"buildOptions": {
"copy": [
"demo.gif"
],
"bin": {
"graphql-inspector": {
"input": "src/index.ts"
}
}
},
"typescript": {
"definition": "dist/typings/index.d.ts"
}
Expand Down

0 comments on commit 5dceaf2

Please sign in to comment.