From 67707c759f9963c00641c99b9e58293a8ef016a4 Mon Sep 17 00:00:00 2001 From: shimataro Date: Tue, 20 Dec 2022 07:16:25 +0900 Subject: [PATCH] `getSshDirectory()` should not be exported --- lib/index.js | 2 -- src/main.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 907b545..a3d78c6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2720,7 +2720,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSshDirectory = void 0; const fs_1 = __importDefault(__nccwpck_require__(147)); const path_1 = __importDefault(__nccwpck_require__(17)); const core = __importStar(__nccwpck_require__(186)); @@ -2853,7 +2852,6 @@ function removeSshDirectory() { function getSshDirectory() { return path_1.default.resolve(getHomeDirectory(), ".ssh"); } -exports.getSshDirectory = getSshDirectory; /** * get home directory * @returns home directory name diff --git a/src/main.ts b/src/main.ts index ee40e68..40443e9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -147,7 +147,7 @@ function removeSshDirectory(): string { * get SSH directory * @returns SSH directory name */ -export function getSshDirectory(): string { +function getSshDirectory(): string { return path.resolve(getHomeDirectory(), ".ssh"); }