@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Command line helper for building and publishing PCF controls to Dataverse.",
5
5
  "scripts": {
6
6
  "deploy": "node .\\deploy.js -p ."
@@ -1,7 +1,13 @@
1
- const { exec } = require('child_process');
1
+ const { spawnSync } = require('child_process');
2
2
 
3
3
  function run(path) {
4
- exec(`dotnet build --restore -c Release ${path}`);
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;
@@ -1,10 +1,16 @@
1
- const { exec } = require('child_process');
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
- exec(`pac solution import -env ${env} -p ${path} -pc`);
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;
@@ -1,7 +1,13 @@
1
- const { exec } = require('child_process');
1
+ const { spawnSync } = require('child_process');
2
2
 
3
3
  function run(path) {
4
- exec(`pac solution version -s Solution -sp ${path} && pac pcf version -s Manifest && npm version patch`);
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;