Skip to content

Commit

Permalink
Use non-dev bin for CLI in integration tests (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Nov 11, 2022
1 parent 08c2a9f commit ce55b72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-ants-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-hive/cli': patch
---

Do not include npm-shrinkwrap.json
2 changes: 1 addition & 1 deletion integration-tests/testkit/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { execa } from '@n1ru4l/dockest';
import { resolve } from 'path';

const registryAddress = utils.getServiceAddress('server', 3001);
const cliDevLocation = resolve(__dirname, '../../packages/libraries/cli/bin/dev');
const cliDevLocation = resolve(__dirname, '../../packages/libraries/cli/bin/run');

async function exec(cmd: string) {
const result = execa(`${cliDevLocation} ${cmd}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/libraries/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"bin": {
"hive": "./bin/run"
},
"main": "dist/index.js",
"files": [
"/bin",
"/dist",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"scripts": {
Expand Down

0 comments on commit ce55b72

Please sign in to comment.