create-powerapps-project 1.7.3 → 1.7.5
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 +3 -14
- package/package.json +1 -1
package/lib/plopfile.js
CHANGED
|
@@ -96,6 +96,9 @@ export default async (plop) => {
|
|
|
96
96
|
name: 'name',
|
|
97
97
|
message: 'default C# namespace (Company.Crm.Plugins):',
|
|
98
98
|
validate: (answer) => {
|
|
99
|
+
if (answer === '') {
|
|
100
|
+
return 'namespace is required';
|
|
101
|
+
}
|
|
99
102
|
const validNamespace = answer.replace(/[^a-zA-Z.]+/g, '');
|
|
100
103
|
if (validNamespace !== answer) {
|
|
101
104
|
return 'namespace must contain only alpha characters and periods';
|
|
@@ -204,13 +207,6 @@ export default async (plop) => {
|
|
|
204
207
|
destination: process.cwd(),
|
|
205
208
|
force: true
|
|
206
209
|
},
|
|
207
|
-
{
|
|
208
|
-
type: 'addScript',
|
|
209
|
-
data: {
|
|
210
|
-
scriptKey: 'preinstall',
|
|
211
|
-
scriptValue: `npx only-allow ${data.package}`
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
210
|
{
|
|
215
211
|
type: 'addSolution'
|
|
216
212
|
},
|
|
@@ -547,13 +543,6 @@ export default async (plop) => {
|
|
|
547
543
|
return;
|
|
548
544
|
}
|
|
549
545
|
},
|
|
550
|
-
{
|
|
551
|
-
type: 'addScript',
|
|
552
|
-
data: {
|
|
553
|
-
scriptKey: 'preinstall',
|
|
554
|
-
scriptValue: `npx only-allow ${data.package}`
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
546
|
{
|
|
558
547
|
type: 'npmInstall',
|
|
559
548
|
data: {
|