From c2fad50f03abf71aee03170cd278f9249930e2d5 Mon Sep 17 00:00:00 2001 From: Artem Ufimtcev Date: Mon, 12 Aug 2024 12:13:36 +0200 Subject: [PATCH] Chore/dependency cleanup (#34) * Remove chalk as a dependency * Do not install dev deps on deploy * Bump version --- .github/workflows/deploy.yml | 2 +- package-lock.json | 15 +++++++++------ package.json | 7 +++---- yarn.lock | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a99a32d..c2feafd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,7 +48,7 @@ jobs: run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_READ }}" > ~/.npmrc - name: Install dependencies - run: npm i + run: npm ci --skip-dev - name: Build run: npm run build diff --git a/package-lock.json b/package-lock.json index daf8fd5..78203e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@supernovaio/cli", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@supernovaio/cli", - "version": "1.0.7", + "version": "1.0.8", "bundleDependencies": [ "@supernova-studio/pulsar-core", "@supernova-studio/simple-parse-github-url", @@ -21,9 +21,7 @@ "@supernova-studio/pulsar-core": "2.2.3", "@supernovaio/sdk": "2.0.12", "axios": "^1.6.2", - "chalk": "^5.0.1", "colors": "^1.4.0", - "dotenv": "^16.0.0", "node-fetch": "^3.2.4" }, "bin": { @@ -40,6 +38,7 @@ "@types/mocha": "^9.0.0", "@types/node": "^16.11.36", "chai": "^4", + "dotenv": "^16.0.0", "eslint": "^7.32.0", "eslint-config-oclif": "^5.2.1", "eslint-config-oclif-typescript": "^3.1.9", @@ -6636,6 +6635,7 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true, "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" }, @@ -7246,6 +7246,7 @@ "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "dev": true, "engines": { "node": ">=12" }, @@ -21293,7 +21294,8 @@ "chalk": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==" + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true }, "change-case": { "version": "4.1.2", @@ -21717,7 +21719,8 @@ "dotenv": { "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==" + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "dev": true }, "ecdsa-sig-formatter": { "version": "1.0.11", diff --git a/package.json b/package.json index 751979a..5e34363 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@supernovaio/cli", "description": "Supernova.io Command Line Interface", - "version": "1.0.8", + "version": "1.0.9", "author": "Supernova.io", "homepage": "https://supernova.io/", "keywords": [ @@ -28,9 +28,7 @@ "@supernova-studio/pulsar-core": "2.2.3", "@supernovaio/sdk": "2.0.12", "axios": "^1.6.2", - "chalk": "^5.0.1", "colors": "^1.4.0", - "dotenv": "^16.0.0", "node-fetch": "^3.2.4" }, "bundleDependencies": [ @@ -59,7 +57,8 @@ "shx": "^0.3.3", "ts-node": "10.9.1", "tslib": "^2.3.1", - "typescript": "5.2.2" + "typescript": "5.2.2", + "dotenv": "^16.0.0" }, "engines": { "node": ">=12.0.0" diff --git a/yarn.lock b/yarn.lock index e94050a..46b1b95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3893,7 +3893,7 @@ chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^5.0.1, chalk@^5.3.0: +chalk@^5.3.0: version "5.3.0" resolved "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz" integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==