Skip to content

Commit

Permalink
Merge pull request #651 from millerds/fix-npm-install-trigger
Browse files Browse the repository at this point in the history
Add yeoman legacy install prototype
  • Loading branch information
millerds authored Aug 3, 2021
2 parents 2ef0527 + 2cce2fd commit 3f41177
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import { v4 as uuidv4 } from 'uuid';
import * as yosay from 'yosay';
const yo = require("yeoman-generator");

// Workaround for generator-office breaking change (v4 => v5)
// If we can figure out how to get the new packageManagerInstallTask to work
// with downloaded package.json then we won't need this or the installDependencies calls
-_.extend(yo.prototype, require('yeoman-generator/lib/actions/install'));

const childProcessExec = promisify(childProcess.exec);
const excelCustomFunctions = `excel-functions`;
let isSsoProject = false;
Expand Down

0 comments on commit 3f41177

Please sign in to comment.