From ce55b724b00ff7fc93f3df4089e698e6f9d5086b Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Fri, 11 Nov 2022 09:54:11 +0100 Subject: [PATCH] Use non-dev bin for CLI in integration tests (#641) --- .changeset/new-ants-yell.md | 5 +++++ integration-tests/testkit/cli.ts | 2 +- packages/libraries/cli/package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/new-ants-yell.md diff --git a/.changeset/new-ants-yell.md b/.changeset/new-ants-yell.md new file mode 100644 index 0000000000..2500deef84 --- /dev/null +++ b/.changeset/new-ants-yell.md @@ -0,0 +1,5 @@ +--- +'@graphql-hive/cli': patch +--- + +Do not include npm-shrinkwrap.json diff --git a/integration-tests/testkit/cli.ts b/integration-tests/testkit/cli.ts index c79169b348..9af86f84f2 100644 --- a/integration-tests/testkit/cli.ts +++ b/integration-tests/testkit/cli.ts @@ -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}`); diff --git a/packages/libraries/cli/package.json b/packages/libraries/cli/package.json index 1ef3fa14bd..5a3dbd7969 100644 --- a/packages/libraries/cli/package.json +++ b/packages/libraries/cli/package.json @@ -20,10 +20,10 @@ "bin": { "hive": "./bin/run" }, + "main": "dist/index.js", "files": [ "/bin", "/dist", - "/npm-shrinkwrap.json", "/oclif.manifest.json" ], "scripts": {