create-powerapps-project 0.27.2 → 0.28.1
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/index.js +27 -27
- package/lib/nuget.js +41 -41
- package/lib/packageManager.js +22 -22
- package/lib/plopActions.js +102 -102
- package/lib/plopfile.js +448 -436
- package/package.json +4 -1
- package/plop-templates/assembly/{.editorconfig → .editorconfig.hbs} +131 -131
- package/plop-templates/assembly/.gitignore.hbs +362 -0
- package/plop-templates/assembly/builderSettings.json +17 -17
- package/plop-templates/webresource/{.eslintignore → .eslintignore.hbs} +11 -11
- package/plop-templates/webresource/.gitignore.hbs +43 -0
- package/plop-templates/webresource/.prettierrc.json +4 -4
- /package/plop-templates/assembly/{.gitattributes → .gitattributes.hbs} +0 -0
- /package/plop-templates/pcf/{.gitattributes → .gitattributes.hbs} +0 -0
- /package/plop-templates/webresource/{.gitattributes → .gitattributes.hbs} +0 -0
- /package/plop-templates/webresource/{.prettierignore → .prettierignore.hbs} +0 -0
package/lib/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
-
const plop_1 = require("plop");
|
|
9
|
-
const minimist_1 = __importDefault(require("minimist"));
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
11
|
-
const packageJson = require('../package.json');
|
|
12
|
-
const argv = (0, minimist_1.default)(process.argv.slice(2));
|
|
13
|
-
if (argv.version || argv.v) {
|
|
14
|
-
console.log(`${packageJson.version}`);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
plop_1.Plop.launch({
|
|
18
|
-
cwd: process.cwd(),
|
|
19
|
-
configPath: node_path_1.default.join(__dirname, 'plopfile.js')
|
|
20
|
-
}, env => {
|
|
21
|
-
const options = {
|
|
22
|
-
...env,
|
|
23
|
-
dest: process.cwd()
|
|
24
|
-
};
|
|
25
|
-
return (0, plop_1.run)(options, undefined, true);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const plop_1 = require("plop");
|
|
9
|
+
const minimist_1 = __importDefault(require("minimist"));
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
11
|
+
const packageJson = require('../package.json');
|
|
12
|
+
const argv = (0, minimist_1.default)(process.argv.slice(2));
|
|
13
|
+
if (argv.version || argv.v) {
|
|
14
|
+
console.log(`${packageJson.version}`);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
plop_1.Plop.launch({
|
|
18
|
+
cwd: process.cwd(),
|
|
19
|
+
configPath: node_path_1.default.join(__dirname, 'plopfile.js')
|
|
20
|
+
}, env => {
|
|
21
|
+
const options = {
|
|
22
|
+
...env,
|
|
23
|
+
dest: process.cwd()
|
|
24
|
+
};
|
|
25
|
+
return (0, plop_1.run)(options, undefined, true);
|
|
26
|
+
});
|
|
27
|
+
}
|
package/lib/nuget.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.nugetRestore = exports.getNugetPackageVersions = void 0;
|
|
7
|
-
const https_1 = __importDefault(require("https"));
|
|
8
|
-
const child_process_1 = require("child_process");
|
|
9
|
-
const getNugetPackageVersions = (name) => {
|
|
10
|
-
return new Promise((resolve, reject) => {
|
|
11
|
-
https_1.default.get(`https://azuresearch-usnc.nuget.org/query?q=packageid:${name}`, (response) => {
|
|
12
|
-
let body = '';
|
|
13
|
-
response.on('data', (d) => {
|
|
14
|
-
body += d;
|
|
15
|
-
});
|
|
16
|
-
response.on('end', () => {
|
|
17
|
-
const result = JSON.parse(body);
|
|
18
|
-
if (result.data.length > 0) {
|
|
19
|
-
const versions = result.data[0].versions.map((v) => {
|
|
20
|
-
return v.version;
|
|
21
|
-
}).reverse();
|
|
22
|
-
resolve(versions);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
reject(`package ${name} not found`);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}).on('error', (e) => {
|
|
29
|
-
reject(e);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
exports.getNugetPackageVersions = getNugetPackageVersions;
|
|
34
|
-
const nugetRestore = async () => {
|
|
35
|
-
// Install nuget packages
|
|
36
|
-
if (process.env.JEST_WORKER_ID !== undefined) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
(0, child_process_1.spawnSync)('dotnet', ['restore'], { cwd: process.cwd(), stdio: 'inherit' });
|
|
40
|
-
};
|
|
41
|
-
exports.nugetRestore = nugetRestore;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.nugetRestore = exports.getNugetPackageVersions = void 0;
|
|
7
|
+
const https_1 = __importDefault(require("https"));
|
|
8
|
+
const child_process_1 = require("child_process");
|
|
9
|
+
const getNugetPackageVersions = (name) => {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
https_1.default.get(`https://azuresearch-usnc.nuget.org/query?q=packageid:${name}`, (response) => {
|
|
12
|
+
let body = '';
|
|
13
|
+
response.on('data', (d) => {
|
|
14
|
+
body += d;
|
|
15
|
+
});
|
|
16
|
+
response.on('end', () => {
|
|
17
|
+
const result = JSON.parse(body);
|
|
18
|
+
if (result.data.length > 0) {
|
|
19
|
+
const versions = result.data[0].versions.map((v) => {
|
|
20
|
+
return v.version;
|
|
21
|
+
}).reverse();
|
|
22
|
+
resolve(versions);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
reject(`package ${name} not found`);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}).on('error', (e) => {
|
|
29
|
+
reject(e);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
exports.getNugetPackageVersions = getNugetPackageVersions;
|
|
34
|
+
const nugetRestore = async () => {
|
|
35
|
+
// Install nuget packages
|
|
36
|
+
if (process.env.JEST_WORKER_ID !== undefined) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
(0, child_process_1.spawnSync)('dotnet', ['restore'], { cwd: process.cwd(), stdio: 'inherit' });
|
|
40
|
+
};
|
|
41
|
+
exports.nugetRestore = nugetRestore;
|
package/lib/packageManager.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.install = void 0;
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
|
-
const install = async (packageManager, packages) => {
|
|
7
|
-
if (process.env.JEST_WORKER_ID != undefined) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (packages) {
|
|
11
|
-
if (packages.devDependencies) {
|
|
12
|
-
(0, child_process_1.spawnSync)(packageManager, ['add', ...packages.devDependencies], { stdio: 'inherit', shell: true });
|
|
13
|
-
}
|
|
14
|
-
if (packages.dependencies) {
|
|
15
|
-
(0, child_process_1.spawnSync)(packageManager, ['add', ...packages.dependencies], { stdio: 'inherit', shell: true });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
(0, child_process_1.spawnSync)(packageManager, ['install'], { stdio: 'inherit', shell: true });
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.install = install;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.install = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
const child_process_1 = require("child_process");
|
|
6
|
+
const install = async (packageManager, packages) => {
|
|
7
|
+
if (process.env.JEST_WORKER_ID != undefined) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (packages) {
|
|
11
|
+
if (packages.devDependencies) {
|
|
12
|
+
(0, child_process_1.spawnSync)(packageManager, ['add', ...packages.devDependencies], { stdio: 'inherit', shell: true });
|
|
13
|
+
}
|
|
14
|
+
if (packages.dependencies) {
|
|
15
|
+
(0, child_process_1.spawnSync)(packageManager, ['add', ...packages.dependencies], { stdio: 'inherit', shell: true });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
(0, child_process_1.spawnSync)(packageManager, ['install'], { stdio: 'inherit', shell: true });
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.install = install;
|
package/lib/plopActions.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const path_1 = __importDefault(require("path"));
|
|
30
|
-
const child_process_1 = require("child_process");
|
|
31
|
-
const fs_1 = __importDefault(require("fs"));
|
|
32
|
-
const nuget = __importStar(require("./nuget"));
|
|
33
|
-
const pkg = __importStar(require("./packageManager"));
|
|
34
|
-
const didSucceed = (code) => `${code}` === '0';
|
|
35
|
-
exports.default = (plop) => {
|
|
36
|
-
plop.setDefaultInclude({ actionTypes: true });
|
|
37
|
-
plop.setActionType('addSolution', async (answers) => {
|
|
38
|
-
// Add solution
|
|
39
|
-
(0, child_process_1.spawnSync)('dotnet', ['new', 'sln', '-n', answers.name], { cwd: process.cwd(), stdio: 'inherit' });
|
|
40
|
-
(0, child_process_1.spawnSync)('dotnet', ['sln', 'add', `${answers.name}.csproj`], { cwd: process.cwd(), stdio: 'inherit' });
|
|
41
|
-
return 'added dotnet solution';
|
|
42
|
-
});
|
|
43
|
-
plop.setActionType('addScript', async (answers) => {
|
|
44
|
-
const packagePath = path_1.default.resolve(process.cwd(), 'package.json');
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
46
|
-
const packageJson = require(packagePath);
|
|
47
|
-
packageJson.scripts[answers.scriptKey] = answers.scriptValue;
|
|
48
|
-
await fs_1.default.promises.writeFile(packagePath, JSON.stringify(packageJson, null, 4), 'utf8');
|
|
49
|
-
return `added ${answers.scriptKey} script to package.json`;
|
|
50
|
-
});
|
|
51
|
-
plop.setActionType('npmInstall', async (answers) => {
|
|
52
|
-
await pkg.install(answers.package, answers.packages);
|
|
53
|
-
return 'installed npm packages';
|
|
54
|
-
});
|
|
55
|
-
plop.setActionType('nugetRestore', async () => {
|
|
56
|
-
await nuget.nugetRestore();
|
|
57
|
-
return 'restored nuget packages';
|
|
58
|
-
});
|
|
59
|
-
plop.setActionType('signAssembly', async (answers) => {
|
|
60
|
-
const keyPath = path_1.default.resolve(process.cwd(), `${answers.name}.snk`);
|
|
61
|
-
return new Promise((resolve, reject) => {
|
|
62
|
-
if (process.env.JEST_WORKER_ID !== undefined) {
|
|
63
|
-
resolve('Testing so no need to sign');
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
const sign = (0, child_process_1.spawn)(path_1.default.resolve(__dirname, '..', 'bin', 'sn.exe'), ['-q', '-k', keyPath], { stdio: 'inherit' });
|
|
67
|
-
sign.on('close', (code) => {
|
|
68
|
-
if (didSucceed(code)) {
|
|
69
|
-
resolve('signed assembly');
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
reject('failed to sign assembly');
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
sign.on('error', () => {
|
|
76
|
-
reject('failed to sign assembly');
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
plop.setActionType('runPcf', async (answers) => {
|
|
82
|
-
const args = ['pcf', 'init', '-ns', answers.namespace, '-n', answers.name, '-t', answers.template, '-npm', 'false'];
|
|
83
|
-
// Set framework to React if selected
|
|
84
|
-
if (answers.react) {
|
|
85
|
-
args.push('-fw', 'react');
|
|
86
|
-
}
|
|
87
|
-
return new Promise((resolve, reject) => {
|
|
88
|
-
const pac = (0, child_process_1.spawn)('pac', args, { stdio: 'inherit' });
|
|
89
|
-
pac.on('close', (code) => {
|
|
90
|
-
if (didSucceed(code)) {
|
|
91
|
-
resolve('pcf project created');
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
reject('Ensure the Power Platform CLI is installed. Command must be run from within Visual Studio Code if using the Power Platform Extension');
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
pac.on('error', () => {
|
|
98
|
-
reject('Ensure the Power Platform CLI is installed. Command must be run from within Visual Studio Code if using the Power Platform Extension');
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const path_1 = __importDefault(require("path"));
|
|
30
|
+
const child_process_1 = require("child_process");
|
|
31
|
+
const fs_1 = __importDefault(require("fs"));
|
|
32
|
+
const nuget = __importStar(require("./nuget"));
|
|
33
|
+
const pkg = __importStar(require("./packageManager"));
|
|
34
|
+
const didSucceed = (code) => `${code}` === '0';
|
|
35
|
+
exports.default = (plop) => {
|
|
36
|
+
plop.setDefaultInclude({ actionTypes: true });
|
|
37
|
+
plop.setActionType('addSolution', async (answers) => {
|
|
38
|
+
// Add solution
|
|
39
|
+
(0, child_process_1.spawnSync)('dotnet', ['new', 'sln', '-n', answers.name], { cwd: process.cwd(), stdio: 'inherit' });
|
|
40
|
+
(0, child_process_1.spawnSync)('dotnet', ['sln', 'add', `${answers.name}.csproj`], { cwd: process.cwd(), stdio: 'inherit' });
|
|
41
|
+
return 'added dotnet solution';
|
|
42
|
+
});
|
|
43
|
+
plop.setActionType('addScript', async (answers) => {
|
|
44
|
+
const packagePath = path_1.default.resolve(process.cwd(), 'package.json');
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
46
|
+
const packageJson = require(packagePath);
|
|
47
|
+
packageJson.scripts[answers.scriptKey] = answers.scriptValue;
|
|
48
|
+
await fs_1.default.promises.writeFile(packagePath, JSON.stringify(packageJson, null, 4), 'utf8');
|
|
49
|
+
return `added ${answers.scriptKey} script to package.json`;
|
|
50
|
+
});
|
|
51
|
+
plop.setActionType('npmInstall', async (answers) => {
|
|
52
|
+
await pkg.install(answers.package, answers.packages);
|
|
53
|
+
return 'installed npm packages';
|
|
54
|
+
});
|
|
55
|
+
plop.setActionType('nugetRestore', async () => {
|
|
56
|
+
await nuget.nugetRestore();
|
|
57
|
+
return 'restored nuget packages';
|
|
58
|
+
});
|
|
59
|
+
plop.setActionType('signAssembly', async (answers) => {
|
|
60
|
+
const keyPath = path_1.default.resolve(process.cwd(), `${answers.name}.snk`);
|
|
61
|
+
return new Promise((resolve, reject) => {
|
|
62
|
+
if (process.env.JEST_WORKER_ID !== undefined) {
|
|
63
|
+
resolve('Testing so no need to sign');
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const sign = (0, child_process_1.spawn)(path_1.default.resolve(__dirname, '..', 'bin', 'sn.exe'), ['-q', '-k', keyPath], { stdio: 'inherit' });
|
|
67
|
+
sign.on('close', (code) => {
|
|
68
|
+
if (didSucceed(code)) {
|
|
69
|
+
resolve('signed assembly');
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
reject('failed to sign assembly');
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
sign.on('error', () => {
|
|
76
|
+
reject('failed to sign assembly');
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
plop.setActionType('runPcf', async (answers) => {
|
|
82
|
+
const args = ['pcf', 'init', '-ns', answers.namespace, '-n', answers.name, '-t', answers.template, '-npm', 'false'];
|
|
83
|
+
// Set framework to React if selected
|
|
84
|
+
if (answers.react) {
|
|
85
|
+
args.push('-fw', 'react');
|
|
86
|
+
}
|
|
87
|
+
return new Promise((resolve, reject) => {
|
|
88
|
+
const pac = (0, child_process_1.spawn)('pac', args, { stdio: 'inherit' });
|
|
89
|
+
pac.on('close', (code) => {
|
|
90
|
+
if (didSucceed(code)) {
|
|
91
|
+
resolve('pcf project created');
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
reject('Ensure the Power Platform CLI is installed. Command must be run from within Visual Studio Code if using the Power Platform Extension');
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
pac.on('error', () => {
|
|
98
|
+
reject('Ensure the Power Platform CLI is installed. Command must be run from within Visual Studio Code if using the Power Platform Extension');
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|