зеркало из https://github.com/microsoft/just.git
Installed stack - finding the installed stacks at the right location (#58)
* find installed stacks from the right location * change file
This commit is contained in:
Родитель
9326232ae4
Коммит
68f961aa72
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "just-scripts",
|
||||
"comment": "Find installed stack from scripts folder in monorepo",
|
||||
"type": "patch"
|
||||
}
|
||||
],
|
||||
"packageName": "just-scripts",
|
||||
"email": "kchau@microsoft.com"
|
||||
}
|
|
@ -12,7 +12,7 @@ export interface OutdatedInfo {
|
|||
|
||||
export async function getOutdatedStacks(rootPath: string) {
|
||||
const scriptsPath = path.join(rootPath, 'scripts');
|
||||
const installedStacks = findInstalledStacks(rootPath);
|
||||
const installedStacks = findInstalledStacks(scriptsPath);
|
||||
|
||||
const outdatedJson: any = await new Promise((resolve, reject) => {
|
||||
const cp = spawn('npm', ['outdated', '--json'], { cwd: scriptsPath, stdio: 'pipe' });
|
||||
|
|
|
@ -34,7 +34,7 @@ export function addPackageTask(): TaskFunction {
|
|||
|
||||
// TODO: do validation that the path is indeed a monorepo
|
||||
|
||||
const installedStacks = findInstalledStacks(rootPath);
|
||||
const installedStacks = findInstalledStacks(path.join(rootPath, 'scripts'));
|
||||
|
||||
// TODO: autosuggest just-stack-* packages from npmjs.org
|
||||
let response = await prompts({
|
||||
|
|
Загрузка…
Ссылка в новой задаче