From 7dd58487f9fc02041304717fb978a23ac372a5e8 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Fri, 12 Apr 2024 16:47:02 +0530 Subject: [PATCH] chore: cleanup - Organize imports. - Update CI config. --- .github/workflows/tests.yml | 8 ++++---- packages/hoppscotch-cli/bin/hopp.js | 2 +- packages/hoppscotch-cli/src/index.ts | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a2af6430de..b77f485535f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,21 +17,21 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup environment run: mv .env.example .env - name: Setup pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3 with: version: 8 run_install: true - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: ${{ matrix.node-version }} cache: pnpm - name: Run tests diff --git a/packages/hoppscotch-cli/bin/hopp.js b/packages/hoppscotch-cli/bin/hopp.js index fc0454f588c..2a5e91a60cf 100755 --- a/packages/hoppscotch-cli/bin/hopp.js +++ b/packages/hoppscotch-cli/bin/hopp.js @@ -4,8 +4,8 @@ import { cli } from "../dist/index.js"; -import { cloneDeep } from "lodash-es"; import { spawnSync } from "child_process"; +import { cloneDeep } from "lodash-es"; const nodeVersion = parseInt(process.versions.node.split(".")[0]); diff --git a/packages/hoppscotch-cli/src/index.ts b/packages/hoppscotch-cli/src/index.ts index 0fbc16646d3..daa71995a3e 100644 --- a/packages/hoppscotch-cli/src/index.ts +++ b/packages/hoppscotch-cli/src/index.ts @@ -1,6 +1,7 @@ import chalk from "chalk"; import { Command } from "commander"; import * as E from "fp-ts/Either"; + import { version } from "../package.json"; import { test } from "./commands/test"; import { handleError } from "./handlers/error";