create-powerapps-project 1.3.3 → 1.3.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.
@@ -5,7 +5,7 @@ export const install = async (packageManager, packages) => {
5
5
  }
6
6
  if (packages) {
7
7
  if (packages.devDependencies) {
8
- spawnSync(packageManager, ['add', ...packages.devDependencies], { stdio: 'inherit', shell: true });
8
+ spawnSync(packageManager, ['add', ...packages.devDependencies, '-D'], { stdio: 'inherit', shell: true });
9
9
  }
10
10
  if (packages.dependencies) {
11
11
  spawnSync(packageManager, ['add', ...packages.dependencies], { stdio: 'inherit', shell: true });
package/lib/plopfile.js CHANGED
@@ -311,7 +311,7 @@ export default async (plop) => {
311
311
  },
312
312
  {
313
313
  type: 'add',
314
- templateFile: '../plop-templates/pcf/App.tsx.hbs',
314
+ templateFile: '../plop-templates/pcf/App.tsx',
315
315
  path: path.resolve(process.cwd(), '{{name}}', 'App.tsx'),
316
316
  skip: (answers) => {
317
317
  if (!answers.react) {
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.3.3",
4
+ "version": "1.3.4",
5
5
  "license": "MIT",
6
6
  "exports": "./lib/index.js",
7
7
  "engines": {
@@ -1,16 +1,19 @@
1
- import React from 'react';
2
- import { IInputs } from './generated/ManifestTypes';
3
- import { AppContext } from './contexts/AppContext';
4
-
5
- export const App = (props: { context: ComponentFramework.Context<IInputs>; }) => {
6
- const {
7
- context
8
- } = props;
9
-
10
- return (
11
- <AppContext.Provider value={{ context }}>
12
- </AppContext.Provider>
13
- );
14
- };
15
-
16
- App.displayName = 'App';
1
+ import React from 'react';
2
+ import { IInputs } from './generated/ManifestTypes';
3
+ import { AppContext } from './contexts/AppContext';
4
+ import { initializeIcons } from '@fluentui/react/lib/Icons';
5
+
6
+ initializeIcons();
7
+
8
+ export const App = (props: { context: ComponentFramework.Context<IInputs>; }) => {
9
+ const {
10
+ context
11
+ } = props;
12
+
13
+ return (
14
+ <AppContext.Provider value={{ context: context }}>
15
+ </AppContext.Provider>
16
+ );
17
+ };
18
+
19
+ App.displayName = 'App';
@@ -3,6 +3,8 @@
3
3
  "compilerOptions": {
4
4
  "typeRoots": ["node_modules/@types"],
5
5
  "esModuleInterop": true,
6
- "target": "ES6"
6
+ "target": "ES6",
7
+ "module": "es2015",
8
+ "moduleResolution": "node"
7
9
  }
8
10
  }