Skip to content

Commit

Permalink
pnpm issue fix, #13
Browse files Browse the repository at this point in the history
  • Loading branch information
koltyakov committed Feb 3, 2020
1 parent 4a26a2d commit 2941f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "generator-sppp",
"description": "SharePoint Pull-n-Push - Yeoman generator for client-side development",
"version": "3.8.0",
"version": "3.8.1",
"author": "Andrew Koltyakov <[email protected]>",
"main": "./app/index.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ module.exports = class extends Generator {

if (this.options['package-manager'] === 'pnpm') {
next && await this.utils.execPromise('pnpm --version').then(() => {
installer = (dep: string | string[], opt) => {
const args = ['install'].concat(dep).concat(dargs(opt));
installer = (dep: string | string[], opt: any) => {
opt = { ...opt, 'shamefully-hoist': true };
const args = ['add'].concat(dep).concat(dargs(opt));
this.spawnCommandSync('pnpm', args);
};
devDepOptions = { 'save-dev': true };
Expand Down

0 comments on commit 2941f4e

Please sign in to comment.