@tywalk/pcf-helper-run 1.2.15 → 1.2.16

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/README.md CHANGED
@@ -250,6 +250,7 @@ pcf-helper-run session [options]
250
250
  - `-b, --bundle <path>` - Local bundle path
251
251
  - `-c, --css <path>` - Local CSS path
252
252
  - `-f, --config <path>` - Config file path (default: `session.config.json`)
253
+ - `-w, --watch` - Start pcf-scripts watch process to automatically rebuild on changes
253
254
 
254
255
  #### Examples
255
256
 
@@ -259,6 +260,9 @@ pcf-helper-run session
259
260
 
260
261
  # Session with custom configuration
261
262
  pcf-helper-run session -u "https://contoso.crm.dynamics.com" -s ./bundle.js
263
+
264
+ # Session with watch mode for automatic rebuilds
265
+ pcf-helper-run session --watch
262
266
  ```
263
267
 
264
268
  ## ⚙️ Global Options
@@ -390,8 +394,8 @@ pcf-helper-run deploy --help
390
394
 
391
395
  ### Documentation Links
392
396
 
393
- - [Power Platform Component Framework Documentation](https://docs.microsoft.com/en-us/powerapps/developer/component-framework/)
394
- - [Power Platform CLI Documentation](https://docs.microsoft.com/en-us/powerapps/developer/data-platform/powerapps-cli)
397
+ - [Power Platform Component Framework Documentation](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/overview)
398
+ - [Power Platform CLI Documentation](https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction)
395
399
  - [PCF Community Gallery](https://pcf.gallery/)
396
400
 
397
401
  ## 🔗 Related Packages
package/dist/index.js CHANGED
@@ -152,7 +152,7 @@ addPathOptions(commander_1.program.command('upgrade'))
152
152
  result = tasks.runUpgrade(options.path, options.verbose || false);
153
153
  }
154
154
  catch (e) {
155
- logger.error('[PCF Helper Run] One or more tasks failed while upgrading: ', (e && e.message) || 'unknown error');
155
+ logger.error('[PCF Helper Run] One or more tasks failed while upgrading: ', e instanceof Error ? e.message : 'unknown error');
156
156
  result = 1;
157
157
  }
158
158
  handleResults('upgrade', logger, tick, result);
@@ -172,7 +172,7 @@ addPathOptions(commander_1.program.command('build'))
172
172
  result = tasks.runBuild(options.path, options.verbose || false, options.timeout ? Number(options.timeout) : undefined);
173
173
  }
174
174
  catch (e) {
175
- logger.error('[PCF Helper Run] One or more tasks failed while building: ', (e && e.message) || 'unknown error');
175
+ logger.error('[PCF Helper Run] One or more tasks failed while building: ', e instanceof Error ? e.message : 'unknown error');
176
176
  result = 1;
177
177
  }
178
178
  handleResults('build', logger, tick, result);
@@ -196,7 +196,7 @@ addPathOptions(commander_1.program.command('import'))
196
196
  result = tasks.runImport(options.path, env, options.verbose || false, options.timeout ? Number(options.timeout) : undefined);
197
197
  }
198
198
  catch (e) {
199
- logger.error('[PCF Helper Run] One or more tasks failed while importing: ', (e && e.message) || 'unknown error');
199
+ logger.error('[PCF Helper Run] One or more tasks failed while importing: ', e instanceof Error ? e.message : 'unknown error');
200
200
  result = 1;
201
201
  }
202
202
  handleResults('import', logger, tick, result);
@@ -238,7 +238,7 @@ addPathOptions(commander_1.program.command('deploy'))
238
238
  }
239
239
  }
240
240
  catch (e) {
241
- logger.error('[PCF Helper Run] One or more tasks failed while deploying: ', (e && e.message) || 'unknown error');
241
+ logger.error('[PCF Helper Run] One or more tasks failed while deploying: ', e instanceof Error ? e.message : 'unknown error');
242
242
  result = 1;
243
243
  }
244
244
  handleResults('deploy', logger, tick, result);
@@ -259,7 +259,7 @@ addCommonOptions(commander_1.program.command('init'))
259
259
  result = tasks.runInit(options.path, options.name, options.publisherName, options.publisherPrefix, options.runNpmInstall !== false, options.verbose || false);
260
260
  }
261
261
  catch (e) {
262
- logger.error('[PCF Helper Run] One or more tasks failed while initializing: ', (e && e.message) || 'unknown error');
262
+ logger.error('[PCF Helper Run] One or more tasks failed while initializing: ', e instanceof Error ? e.message : 'unknown error');
263
263
  result = 1;
264
264
  }
265
265
  handleResults('init', logger, tick, result);
@@ -290,7 +290,7 @@ addCommonOptions(commander_1.program.command('session'))
290
290
  logger.log((0, performanceUtil_1.formatMsToSec)('Session started successfully in %is.', tock - tick));
291
291
  }
292
292
  catch (e) {
293
- logger.error('[PCF Helper Run] One or more tasks failed during session or session startup: ', (e && e.message) || 'unknown error');
293
+ logger.error('[PCF Helper Run] One or more tasks failed during session or session startup: ', e instanceof Error ? e.message : 'unknown error');
294
294
  }
295
295
  }));
296
296
  // Parse the command line arguments
package/dist/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.2.14",
4
- "description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
3
+ "version": "1.2.15",
4
+ "description": "Unified CLI interface for Power Platform Component Framework (PCF) development — init, build, import, deploy, and manage PCF controls in Dataverse.",
5
+ "main": "dist/index.js",
5
6
  "types": "./types/",
6
7
  "files": [
7
8
  "dist",
@@ -22,9 +23,30 @@
22
23
  "update": "npm run ready && npm publish --access public"
23
24
  },
24
25
  "keywords": [
25
- "pcf"
26
+ "pcf",
27
+ "pcf-control",
28
+ "pcf-component",
29
+ "power-platform",
30
+ "powerapps",
31
+ "power-apps",
32
+ "dataverse",
33
+ "dynamics-365",
34
+ "microsoft",
35
+ "cli",
36
+ "command-line",
37
+ "developer-tools",
38
+ "build-tool",
39
+ "deployment",
40
+ "automation",
41
+ "typescript",
42
+ "pac"
26
43
  ],
44
+ "license": "MIT",
27
45
  "author": "tywalk",
46
+ "homepage": "https://github.com/tywalk/pcf-helper#readme",
47
+ "engines": {
48
+ "node": ">=16.0.0"
49
+ },
28
50
  "bin": {
29
51
  "pcf-helper-run": "dist/index.js"
30
52
  },
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.formatMsToSec = formatMsToSec;
7
7
  exports.formatTime = formatTime;
8
8
  const util_1 = __importDefault(require("util"));
9
- var formatter = new Intl.DateTimeFormat('en-US', {
9
+ const formatter = new Intl.DateTimeFormat('en-US', {
10
10
  hour: '2-digit',
11
11
  minute: '2-digit',
12
12
  second: '2-digit',
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.2.15",
4
- "description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
3
+ "version": "1.2.16",
4
+ "description": "Unified CLI interface for Power Platform Component Framework (PCF) development — init, build, import, deploy, and manage PCF controls in Dataverse.",
5
+ "main": "dist/index.js",
5
6
  "types": "./types/",
6
7
  "files": [
7
8
  "dist",
@@ -22,9 +23,30 @@
22
23
  "update": "npm run ready && npm publish --access public"
23
24
  },
24
25
  "keywords": [
25
- "pcf"
26
+ "pcf",
27
+ "pcf-control",
28
+ "pcf-component",
29
+ "power-platform",
30
+ "powerapps",
31
+ "power-apps",
32
+ "dataverse",
33
+ "dynamics-365",
34
+ "microsoft",
35
+ "cli",
36
+ "command-line",
37
+ "developer-tools",
38
+ "build-tool",
39
+ "deployment",
40
+ "automation",
41
+ "typescript",
42
+ "pac"
26
43
  ],
44
+ "license": "MIT",
27
45
  "author": "tywalk",
46
+ "homepage": "https://github.com/tywalk/pcf-helper#readme",
47
+ "engines": {
48
+ "node": ">=16.0.0"
49
+ },
28
50
  "bin": {
29
51
  "pcf-helper-run": "dist/index.js"
30
52
  },
@@ -1,2 +1,2 @@
1
1
  export declare function getArg(args: string[], arg: string): string | undefined;
2
- export declare function getArgValue(args: string[], argOpts: string[], defaultIfExists?: any): string | undefined;
2
+ export declare function getArgValue(args: string[], argOpts: string[], defaultIfExists?: string): string | undefined;