mirror of https://github.com/coder/code-server.git
18 lines
954 B
JavaScript
18 lines
954 B
JavaScript
"use strict";
|
|
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const path = require("path");
|
|
const fs = require("fs");
|
|
const root = path.dirname(path.dirname(__dirname));
|
|
const yarnrcPath = path.join(root, 'remote', '.yarnrc');
|
|
// NOTE@coder: Fix version due to .yarnrc removal.
|
|
const version = process.versions.node;
|
|
const platform = process.platform;
|
|
const arch = platform === 'darwin' ? 'x64' : process.arch;
|
|
const node = platform === 'win32' ? 'node.exe' : 'node';
|
|
const nodePath = path.join(root, '.build', 'node', `v${version}`, `${platform}-${arch}`, node);
|
|
console.log(nodePath);
|