@tywalk/pcf-helper 1.2.0 → 1.3.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,9 +1,9 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Command line helper for building and publishing PCF controls to Dataverse.",
5
5
  "scripts": {
6
- "deploy": "node .\\deploy.js -p ."
6
+ "test": "node test.js"
7
7
  },
8
8
  "keywords": [
9
9
  "pcf"
@@ -2,9 +2,9 @@ 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,
5
+ cwd: process.cwd(),
7
6
  stdio: 'inherit',
7
+ shell: true
8
8
  });
9
9
 
10
10
  console.log('Build complete!: ', task.status);
@@ -5,9 +5,9 @@ function run(path, 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,
8
+ cwd: process.cwd(),
10
9
  stdio: 'inherit',
10
+ shell: true
11
11
  });
12
12
 
13
13
  console.log('Import complete!: ', task.status);
@@ -2,9 +2,9 @@ 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,
5
+ cwd: process.cwd(),
7
6
  stdio: 'inherit',
7
+ shell: true
8
8
  });
9
9
 
10
10
  console.log('Upgrade complete!: ', task.status);
package/test.js ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require('child_process');
3
+ console.log(process.cwd());
4
+ const task = spawnSync('ls bin', {
5
+ cwd: process.cwd(),
6
+ shell: true
7
+ });
8
+
9
+ console.log('Test complete!: ', task.status);