Skip to content

Commit

Permalink
Merge pull request #34 from koltyakov/dev
Browse files Browse the repository at this point in the history
pnpm issue fix, #13
  • Loading branch information
koltyakov authored Feb 3, 2020
2 parents 4a26a2d + 2941f4e commit 80a4d56
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 <andrew.koltyakov@gmail.com>",
"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 80a4d56

Please sign in to comment.