create-powerapps-project 0.23.1 → 0.24.0

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 +21 -0
  2. package/package.json +1 -1
package/lib/plopfile.js CHANGED
@@ -208,6 +208,13 @@ exports.default = (plop) => {
208
208
  destination: process.cwd(),
209
209
  force: true
210
210
  },
211
+ {
212
+ type: 'addScript',
213
+ data: {
214
+ scriptKey: 'preinstall',
215
+ scriptValue: 'npx only-allow {{ package }}'
216
+ }
217
+ },
211
218
  {
212
219
  type: 'signAssembly'
213
220
  },
@@ -306,6 +313,13 @@ exports.default = (plop) => {
306
313
  scriptValue: 'pcf-scripts build --buildMode production'
307
314
  }
308
315
  },
316
+ {
317
+ type: 'addScript',
318
+ data: {
319
+ scriptKey: 'preinstall',
320
+ scriptValue: 'npx only-allow {{ package }}'
321
+ }
322
+ },
309
323
  async (answers) => {
310
324
  await fs_1.default.promises.rm(path_1.default.resolve(process.cwd(), answers.name, 'HelloWorld.tsx'));
311
325
  return 'removed HelloWorld component';
@@ -345,6 +359,13 @@ exports.default = (plop) => {
345
359
  destination: process.cwd(),
346
360
  force: true
347
361
  },
362
+ {
363
+ type: 'addScript',
364
+ data: {
365
+ scriptKey: 'preinstall',
366
+ scriptValue: 'npx only-allow {{ package }}'
367
+ }
368
+ },
348
369
  {
349
370
  type: 'npmInstall',
350
371
  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": "0.23.1",
4
+ "version": "0.24.0",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "bin": {