UNPKG

1.02 kBJavaScriptView Raw
1"use strict";
2// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3// See LICENSE in the project root for license information.
4Object.defineProperty(exports, "__esModule", { value: true });
5const yargs_1 = require("yargs");
6const path = require("path");
7exports.root = process.cwd();
8exports.args = yargs_1.argv;
9// There appears to be a TypeScript compiler bug that isn't allowing us to say
10// IPackageJSON | undefined here, so let's create a stub package.json here instead.
11// @todo: remove this when the compiler is fixed.
12let packageJson = {
13 directories: {
14 packagePath: undefined
15 }
16};
17try {
18 packageJson = require(path.join(exports.root, "package.json" /* PackageJson */));
19}
20catch (e) {
21 // Package.json probably doesn't exit
22}
23exports.builtPackage = packageJson;
24// eslint-disable-next-line @typescript-eslint/no-var-requires
25exports.coreBuildPackage = require('../package.json');
26exports.nodeVersion = process.version;
27//# sourceMappingURL=State.js.map
\No newline at end of file