forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.ts
More file actions
19 lines (13 loc) · 742 Bytes
/
start.ts
File metadata and controls
19 lines (13 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as os from 'os';
import * as colors from 'colors';
import {
PackageJsonLookup
} from '@microsoft/node-core-library';
import { RushStackCommandLine } from './cli/RushStackCommandLine';
const currentPackageVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version;
console.log(os.EOL + colors.bold(`rush-stack ${currentPackageVersion} `
+ colors.cyan(' - http://rushstack.io') + os.EOL));
const parser: RushStackCommandLine = new RushStackCommandLine();
parser.execute().catch(console.error); // CommandLineParser.execute() should never reject the promise