create-powerapps-project 1.2.2 → 1.2.4
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.
package/lib/plopfile.js
CHANGED
|
@@ -354,8 +354,14 @@ export default async (plop) => {
|
|
|
354
354
|
type: 'npmInstall',
|
|
355
355
|
data: {
|
|
356
356
|
packages: {
|
|
357
|
-
devDependencies: ['powerapps-project-pcf', '@types/react@16', '@types/react-dom@16']
|
|
357
|
+
devDependencies: ['powerapps-project-pcf', '@types/react@16', '@types/react-dom@16', 'eslint-plugin-react-hooks']
|
|
358
358
|
}
|
|
359
|
+
},
|
|
360
|
+
skip: (answers) => {
|
|
361
|
+
if (!answers.react) {
|
|
362
|
+
return 'react not included';
|
|
363
|
+
}
|
|
364
|
+
return;
|
|
359
365
|
}
|
|
360
366
|
}
|
|
361
367
|
];
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"gen": "plop",
|
|
8
8
|
"deploy": "dataverse-utils deploy assembly",
|
|
9
9
|
"modelbuilder": "pac auth select --name {{org}} && pac modelbuilder build -stf builderSettings.json -o Model",
|
|
10
|
-
"authenticate": "pac auth create --url {{server}} --name {{org}}",
|
|
10
|
+
"authenticate": "pac auth create --url {{server}} --name {{org}} --deviceCode",
|
|
11
11
|
"prt": "pac tool prt"
|
|
12
12
|
}
|
|
13
13
|
}
|