UNPKG

1.18 kBJavaScriptView Raw
1"use strict";
2var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4 return new (P || (P = Promise))(function (resolve, reject) {
5 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8 step((generator = generator.apply(thisArg, _arguments || [])).next());
9 });
10};
11Object.defineProperty(exports, "__esModule", { value: true });
12const install_node_1 = require("../../install-node");
13const runtimes_1 = require("../../runtimes");
14function init({ cacheDir }) {
15 return __awaiter(this, void 0, void 0, function* () {
16 yield Promise.all([
17 runtimes_1.initializeRuntime(runtimes_1.runtimes.nodejs),
18 install_node_1.installNode(cacheDir, '8.10.0')
19 ]);
20 });
21}
22exports.init = init;
23//# sourceMappingURL=index.js.map
\No newline at end of file