From c7f9b7ad82a64ef62c61779cabe11a7818cdf909 Mon Sep 17 00:00:00 2001 From: aminya Date: Sun, 8 Aug 2021 02:49:16 -0500 Subject: [PATCH] fix: fix Config types and props --- src/config.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index 3308bf1..ac53d69 100644 --- a/src/config.ts +++ b/src/config.ts @@ -9,11 +9,12 @@ import * as apm from "./apm" import Command from "./command" export default class Config extends Command { + private atomDirectory = apm.getAtomDirectory() + private atomNpmPath = require.resolve("npm/bin/npm-cli") + private atomNodeDirectory: string constructor() { super() - const atomDirectory = apm.getAtomDirectory() - this.atomNodeDirectory = path.join(atomDirectory, ".node-gyp") - this.atomNpmPath = require.resolve("npm/bin/npm-cli") + this.atomNodeDirectory = path.join(this.atomDirectory, ".node-gyp") } parseOptions(argv) {