/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import path from 'path';6import fs from 'fs';78const root = path.dirname(path.dirname(__dirname));9const npmrcPath = path.join(root, 'remote', '.npmrc');10const npmrc = fs.readFileSync(npmrcPath, 'utf8');11const version = /^target="(.*)"$/m.exec(npmrc)![1];1213const platform = process.platform;14const arch = process.arch;1516const node = platform === 'win32' ? 'node.exe' : 'node';17const nodePath = path.join(root, '.build', 'node', `v${version}`, `${platform}-${arch}`, node);1819console.log(nodePath);202122