1 | ;
|
2 | // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
3 | // See LICENSE in the project root for license information.
|
4 | Object.defineProperty(exports, "__esModule", { value: true });
|
5 | const yargs_1 = require("yargs");
|
6 | const path = require("path");
|
7 | exports.root = process.cwd();
|
8 | exports.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.
|
12 | let packageJson = {
|
13 | directories: {
|
14 | packagePath: undefined
|
15 | }
|
16 | };
|
17 | try {
|
18 | packageJson = require(path.join(exports.root, "package.json" /* PackageJson */));
|
19 | }
|
20 | catch (e) {
|
21 | // Package.json probably doesn't exit
|
22 | }
|
23 | exports.builtPackage = packageJson;
|
24 | // eslint-disable-next-line @typescript-eslint/no-var-requires
|
25 | exports.coreBuildPackage = require('../package.json');
|
26 | exports.nodeVersion = process.version;
|
27 | //# sourceMappingURL=State.js.map |
\ | No newline at end of file |