Skip to content

Commit

Permalink
Fix oclif tarballs (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Nov 10, 2022
1 parent c9dba87 commit 750b46d
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-cups-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-hive/cli': patch
---

Bump
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Pack tarballs
if: steps.cli.outputs.publish == 'true'
working-directory: packages/libraries/cli
run: pnpm oclif pack tarballs --no-xz
run: pnpm pack && pnpm oclif pack tarballs --no-xz

- name: Upload tarballs
if: steps.cli.outputs.publish == 'true'
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ integration-tests/testkit/gql/

/.husky/_/

npm-shrinkwrap.json

# Rust
/target

Expand Down
53 changes: 28 additions & 25 deletions packages/libraries/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ npm install -g @graphql-hive/cli
$ hive COMMAND
running command...
$ hive (--version)
@graphql-hive/cli/0.18.1 darwin-arm64 node-v16.15.0
@graphql-hive/cli/0.19.1 darwin-arm64 node-v16.18.0
$ hive --help [COMMAND]
USAGE
$ hive COMMAND
Expand Down Expand Up @@ -63,7 +63,7 @@ DESCRIPTION
deletes specific cli configuration
```

_See code: [dist/commands/config/delete.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/config/delete.js)_
_See code: [dist/commands/config/delete.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/config/delete.js)_

## `hive config:get KEY`

Expand All @@ -80,7 +80,7 @@ DESCRIPTION
prints specific cli configuration
```

_See code: [dist/commands/config/get.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/config/get.js)_
_See code: [dist/commands/config/get.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/config/get.js)_

## `hive config:reset`

Expand All @@ -94,7 +94,7 @@ DESCRIPTION
resets local cli configuration
```

_See code: [dist/commands/config/reset.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/config/reset.js)_
_See code: [dist/commands/config/reset.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/config/reset.js)_

## `hive config:set KEY VALUE`

Expand All @@ -112,7 +112,7 @@ DESCRIPTION
updates specific cli configuration
```

_See code: [dist/commands/config/set.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/config/set.js)_
_See code: [dist/commands/config/set.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/config/set.js)_

## `hive help [COMMAND]`

Expand All @@ -132,7 +132,7 @@ DESCRIPTION
Display help for hive.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.12/src/commands/help.ts)_
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.18/src/commands/help.ts)_

## `hive operations:check FILE`

Expand All @@ -154,7 +154,7 @@ DESCRIPTION
checks operations against a published schema
```

_See code: [dist/commands/operations/check.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/operations/check.js)_
_See code: [dist/commands/operations/check.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/operations/check.js)_

## `hive operations:publish FILE`

Expand All @@ -177,7 +177,7 @@ DESCRIPTION
saves operations to the store
```

_See code: [dist/commands/operations/publish.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/operations/publish.js)_
_See code: [dist/commands/operations/publish.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/operations/publish.js)_

## `hive schema:check FILE`

Expand All @@ -204,7 +204,7 @@ DESCRIPTION
checks schema
```

_See code: [dist/commands/schema/check.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/schema/check.js)_
_See code: [dist/commands/schema/check.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/schema/check.js)_

## `hive schema:publish FILE`

Expand All @@ -213,30 +213,33 @@ publishes schema
```
USAGE
$ hive schema:publish [FILE] [--service <value>] [--url <value>] [--metadata <value>] [--registry <value>]
[--token <value>] [--author <value>] [--commit <value>] [--github] [--force] [--require <value>]
[--token <value>] [--author <value>] [--commit <value>] [--github] [--force] [--experimental_acceptBreakingChanges]
[--require <value>]
ARGUMENTS
FILE Path to the schema file(s)
FLAGS
--author=<value> author of the change
--commit=<value> associated commit sha
--force force publish even on breaking changes
--github Connect with GitHub Application
--metadata=<value> additional metadata to attach to the GraphQL schema. This can be a string with a valid JSON, or
a path to a file containing a valid JSON
--registry=<value> registry address
--require=<value>... [default: ] Loads specific require.extensions before running the codegen and reading the
configuration
--service=<value> service name (only for distributed schemas)
--token=<value> api token
--url=<value> service url (only for distributed schemas)
--author=<value> author of the change
--commit=<value> associated commit sha
--experimental_acceptBreakingChanges (experimental) accept breaking changes and mark schema as valid (only if
composable)
--force force publish even on breaking changes
--github Connect with GitHub Application
--metadata=<value> additional metadata to attach to the GraphQL schema. This can be a string with a
valid JSON, or a path to a file containing a valid JSON
--registry=<value> registry address
--require=<value>... [default: ] Loads specific require.extensions before running the codegen and
reading the configuration
--service=<value> service name (only for distributed schemas)
--token=<value> api token
--url=<value> service url (only for distributed schemas)
DESCRIPTION
publishes schema
```

_See code: [dist/commands/schema/publish.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/schema/publish.js)_
_See code: [dist/commands/schema/publish.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/schema/publish.js)_

## `hive update [CHANNEL]`

Expand Down Expand Up @@ -273,7 +276,7 @@ EXAMPLES
$ hive update --available
```

_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v3.0.0/src/commands/update.ts)_
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v3.0.6/src/commands/update.ts)_

## `hive whoami`

Expand All @@ -291,7 +294,7 @@ DESCRIPTION
checks schema
```

_See code: [dist/commands/whoami.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.18.1/dist/commands/whoami.js)_
_See code: [dist/commands/whoami.js](https://github.com/kamilkisiela/graphql-hive/blob/v0.19.1/dist/commands/whoami.js)_

<!-- commandsstop -->

Expand Down
3 changes: 2 additions & 1 deletion packages/libraries/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
"files": [
"/bin",
"/dist",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"scripts": {
"start": "./bin/dev",
"build": "tsc",
"postpack": "rm -f oclif.manifest.json",
"prepack": "rimraf lib && tsc -b && oclif manifest && oclif readme",
"prepack": "npm shrinkwrap && rimraf lib && tsc -b && oclif manifest && oclif readme",
"version": "oclif readme && git add README.md",
"schema:check:single": "pnpm start schema:check examples/single.graphql",
"schema:check:stitching": "pnpm start schema:check examples/stitching.graphql --service posts",
Expand Down

0 comments on commit 750b46d

Please sign in to comment.