create-powerapps-project 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/plopfile.js +10 -3
  2. package/package.json +1 -1
package/lib/plopfile.js CHANGED
@@ -403,21 +403,28 @@ export default async (plop) => {
403
403
  type: 'addScript',
404
404
  data: {
405
405
  scriptKey: 'authenticate',
406
- scriptValue: `pac auth create -env ${data.server} -n ${data.org} -dc`
406
+ scriptValue: `pac auth create -n ${data.org} -dc`
407
+ }
408
+ },
409
+ {
410
+ type: 'addScript',
411
+ data: {
412
+ scriptKey: 'select-auth',
413
+ scriptValue: `pac auth select -n ${data.org}`
407
414
  }
408
415
  },
409
416
  {
410
417
  type: 'addScript',
411
418
  data: {
412
419
  scriptKey: 'push',
413
- scriptValue: `pac auth select -n ${data.org} && pac pcf version -s manifest && pac pcf push -pp ${data.prefix} -env ${data.server}`
420
+ scriptValue: `npm run select-auth && pac pcf version -s manifest && pac pcf push -pp ${data.prefix} -env ${data.server}`
414
421
  }
415
422
  },
416
423
  {
417
424
  type: 'addScript',
418
425
  data: {
419
426
  scriptKey: 'push-inc',
420
- scriptValue: `pac auth select -n ${data.org} && pac pcf version -s manifest && pac pcf push -pp ${data.prefix} -inc -env ${data.server}`
427
+ scriptValue: `npm run build && npm run select-auth && pac pcf version -s manifest && pac pcf push -pp ${data.prefix} -inc -env ${data.server}`
421
428
  }
422
429
  },
423
430
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "license": "MIT",
6
6
  "exports": "./lib/index.js",
7
7
  "engines": {