forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-dev.ts
39 lines (32 loc) · 1.51 KB
/
start-dev.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
// This file is used during development to load the built-in plugins and to bypass
// some other checks
import * as rushLib from '@microsoft/rush-lib/lib/index';
import { PackageJsonLookup, Import } from '@rushstack/node-core-library';
import { RushCommandSelector } from './RushCommandSelector';
const builtInPluginConfigurations: rushLib._IBuiltInPluginConfiguration[] = [];
function includePlugin(pluginName: string, pluginPackageName?: string): void {
if (!pluginPackageName) {
pluginPackageName = `@rushstack/${pluginName}`;
}
builtInPluginConfigurations.push({
packageName: pluginPackageName,
pluginName: pluginName,
pluginPackageFolder: Import.resolvePackage({
packageName: pluginPackageName,
baseFolderPath: __dirname
})
});
}
includePlugin('rush-amazon-s3-build-cache-plugin');
includePlugin('rush-azure-storage-build-cache-plugin');
includePlugin('rush-http-build-cache-plugin');
// Including this here so that developers can reuse it without installing the plugin a second time
includePlugin('rush-azure-interactive-auth-plugin', '@rushstack/rush-azure-storage-build-cache-plugin');
const currentPackageVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version;
RushCommandSelector.execute(currentPackageVersion, rushLib, {
isManaged: false,
alreadyReportedNodeTooNewError: false,
builtInPluginConfigurations
});