From 17a1056ac6a71b001147127da15317822520fc54 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 19 Dec 2023 14:22:37 +0800 Subject: [PATCH] fix(deps): bug --- package-lock.json | 20 ++++++++++++-------- package.json | 2 +- packages/cli/package.json | 1 - packages/sample/package.json | 6 +++--- packages/sentry/package.json | 6 ++++-- packages/sftp/lib/sftp/action.mjs | 1 + packages/sftp/lib/sftp/ssh.mjs | 2 +- packages/sftp/package.json | 5 ++++- 8 files changed, 26 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index a997bb0..db7ddec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6857,7 +6857,6 @@ "bring-it": "dist/cli.mjs" }, "devDependencies": { - "@bring-it/utils": "*", "cheetor": "^0.13.0" }, "engines": { @@ -6968,36 +6967,38 @@ }, "packages/sample": { "name": "@bring-it/sample", - "version": "0.3.1", + "version": "0.3.2", "license": "MIT", "dependencies": { "globby": "^14.0.0" }, - "devDependencies": { - "@bring-it/utils": "*" - }, "engines": { "node": "^18.0.0 || ^20.0.0" + }, + "peerDependencies": { + "@bring-it/cli": "^0.8.0" } }, "packages/sentry": { "name": "@bring-it/sentry", - "version": "0.3.1", + "version": "0.3.2", "license": "MIT", "dependencies": { "globby": "^14.0.0" }, "devDependencies": { - "@bring-it/utils": "*", "@npmcli/promise-spawn": "^7.0.0" }, "engines": { "node": "^18.0.0 || ^20.0.0" + }, + "peerDependencies": { + "@bring-it/cli": "^0.8.0" } }, "packages/sftp": { "name": "@bring-it/sftp", - "version": "0.2.1", + "version": "0.2.2", "license": "MIT", "dependencies": { "globby": "^14.0.0" @@ -7014,6 +7015,9 @@ }, "engines": { "node": "^18.0.0 || ^20.0.0" + }, + "peerDependencies": { + "@bring-it/cli": "^0.8.0" } }, "packages/utils": { diff --git a/package.json b/package.json index 6025df9..edbd0bf 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "bundle": [ "packages/**" ], - "internal-regex": "^@bring-it\\/" + "internal-regex": "^@bring-it\\/utils" }, "prettier": "@nice-move/prettier-config" } diff --git a/packages/cli/package.json b/packages/cli/package.json index b0d84ad..9f4098c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -41,7 +41,6 @@ "yargs": "^17.7.2" }, "devDependencies": { - "@bring-it/utils": "*", "cheetor": "^0.13.0" }, "engines": { diff --git a/packages/sample/package.json b/packages/sample/package.json index 54e03e4..0b44db4 100644 --- a/packages/sample/package.json +++ b/packages/sample/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/sample", - "version": "0.3.1", + "version": "0.3.2", "description": "Generate code sample files", "license": "MIT", "author": { @@ -37,8 +37,8 @@ "dependencies": { "globby": "^14.0.0" }, - "devDependencies": { - "@bring-it/utils": "*" + "peerDependencies": { + "@bring-it/cli": "^0.8.0" }, "engines": { "node": "^18.0.0 || ^20.0.0" diff --git a/packages/sentry/package.json b/packages/sentry/package.json index e104874..a3eec4d 100644 --- a/packages/sentry/package.json +++ b/packages/sentry/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/sentry", - "version": "0.3.1", + "version": "0.3.2", "description": "Update sentry artifacts", "license": "MIT", "author": { @@ -38,9 +38,11 @@ "globby": "^14.0.0" }, "devDependencies": { - "@bring-it/utils": "*", "@npmcli/promise-spawn": "^7.0.0" }, + "peerDependencies": { + "@bring-it/cli": "^0.8.0" + }, "engines": { "node": "^18.0.0 || ^20.0.0" }, diff --git a/packages/sftp/lib/sftp/action.mjs b/packages/sftp/lib/sftp/action.mjs index b0303ee..428442b 100644 --- a/packages/sftp/lib/sftp/action.mjs +++ b/packages/sftp/lib/sftp/action.mjs @@ -13,6 +13,7 @@ function parsePath(cwd = preset.cwd) { ); } +// eslint-disable-next-line consistent-return export async function action({ key, cwd, server, path: forcePath }) { const { user, hostname, port, path: filePath } = checkServer(server); diff --git a/packages/sftp/lib/sftp/ssh.mjs b/packages/sftp/lib/sftp/ssh.mjs index 437987e..a897567 100644 --- a/packages/sftp/lib/sftp/ssh.mjs +++ b/packages/sftp/lib/sftp/ssh.mjs @@ -29,7 +29,7 @@ export function SSH({ user, hostname, port, key }, callback) { ssh.connection.on('close', () => { logger.info('Connection:', 'close'); - // eslint-disable-next-line unicorn/no-process-exit + // eslint-disable-next-line unicorn/no-process-exit, n/no-process-exit process.exit(); }); }) diff --git a/packages/sftp/package.json b/packages/sftp/package.json index 5d21c61..2c9fdc7 100644 --- a/packages/sftp/package.json +++ b/packages/sftp/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/sftp", - "version": "0.2.1", + "version": "0.2.2", "description": "SFTP deployment tool for frontend", "license": "MIT", "author": { @@ -48,6 +48,9 @@ "slash": "^5.1.0", "ssh-config": "^4.4.1" }, + "peerDependencies": { + "@bring-it/cli": "^0.8.0" + }, "engines": { "node": "^18.0.0 || ^20.0.0" },