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.
Files changed (2) hide show
  1. package/lib/plopfile.js +3 -14
  2. 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: {
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.3",
4
+ "version": "1.7.5",
5
5
  "license": "MIT",
6
6
  "exports": "./lib/index.js",
7
7
  "engines": {