@tywalk/pcf-helper 1.1.0 → 1.2.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.
- package/package.json +1 -1
- package/tasks/build-pcf.js +8 -2
- package/tasks/import-pcf.js +8 -2
- package/tasks/upgrade-pcf.js +8 -2
package/package.json
CHANGED
package/tasks/build-pcf.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { spawnSync } = require('child_process');
|
|
2
2
|
|
|
3
3
|
function run(path) {
|
|
4
|
-
|
|
4
|
+
const task = spawnSync('dotnet build', ['--restore', '-c', 'Release', path], {
|
|
5
|
+
cwd: process.cwd,
|
|
6
|
+
detached: true,
|
|
7
|
+
stdio: 'inherit',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
console.log('Build complete!: ', task.status);
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
exports.run = run;
|
package/tasks/import-pcf.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { spawnSync } = require('child_process');
|
|
2
2
|
|
|
3
3
|
function run(path, env) {
|
|
4
4
|
if (!env) {
|
|
5
5
|
console.warn('Path argument not provided. Assuming active auth profile organization.');
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
const task = spawnSync('pac solution import', ['-env', env, '-p', path, '-pc'], {
|
|
8
|
+
cwd: process.cwd,
|
|
9
|
+
detached: true,
|
|
10
|
+
stdio: 'inherit',
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
console.log('Import complete!: ', task.status);
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
exports.run = run;
|
package/tasks/upgrade-pcf.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { spawnSync } = require('child_process');
|
|
2
2
|
|
|
3
3
|
function run(path) {
|
|
4
|
-
|
|
4
|
+
const task = spawnSync(`pac solution version -s Solution -sp ${path} && pac pcf version -s Manifest && npm version patch`, {
|
|
5
|
+
cwd: process.cwd,
|
|
6
|
+
detached: true,
|
|
7
|
+
stdio: 'inherit',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
console.log('Upgrade complete!: ', task.status);
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
exports.run = run;
|