@tywalk/pcf-helper-run 1.1.27 → 1.1.28

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/dist/index.js CHANGED
@@ -119,17 +119,23 @@ function executeTasks() {
119
119
  if (initResult === 1)
120
120
  return 1;
121
121
  }
122
+ if (commandArgument === 'session') {
123
+ const config = tasks.loadConfig();
124
+ tasks.runSession(config.remoteEnvironmentUrl, config.remoteScriptToIntercept, config.remoteStylesheetToIntercept, config.localBundlePath, config.localCssPath);
125
+ }
122
126
  return 0;
123
127
  }
124
128
  var result = 0;
125
129
  try {
126
130
  logger.log('[PCF Helper Run] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' ' + commandArgument + ' started.\n');
127
131
  result = executeTasks();
128
- if (result === 0) {
129
- logger.log('[PCF Helper Run] ' + commandArgument + ' completed successfully!');
130
- }
131
- else {
132
- logger.log('[PCF Helper Run] ' + commandArgument + ' completed with errors.');
132
+ if (commandArgument !== 'session') {
133
+ if (result === 0) {
134
+ logger.log('[PCF Helper Run] ' + commandArgument + ' completed successfully!');
135
+ }
136
+ else {
137
+ logger.log('[PCF Helper Run] ' + commandArgument + ' completed with errors.');
138
+ }
133
139
  }
134
140
  }
135
141
  catch (e) {
@@ -137,7 +143,11 @@ catch (e) {
137
143
  result = 1;
138
144
  }
139
145
  finally {
140
- const tock = performance.now();
141
- logger.log((0, performanceUtil_1.formatMsToSec)('[PCF Helper Run] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' ' + commandArgument + ' finished in %is.', tock - tick));
146
+ if (commandArgument !== 'session' || result === 1) {
147
+ const tock = performance.now();
148
+ logger.log((0, performanceUtil_1.formatMsToSec)('[PCF Helper Run] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' ' + commandArgument + ' finished in %is.', tock - tick));
149
+ }
150
+ }
151
+ if (commandArgument !== 'session' || result === 1) {
152
+ process.exit(result);
142
153
  }
143
- process.exit(result);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
5
5
  "types": "./types/",
6
6
  "files": [
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@tywalk/color-logger": "^1.0.3",
28
- "@tywalk/pcf-helper": "^1.4.24"
28
+ "@tywalk/pcf-helper": "^1.4.26"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/jest": "^29.5.14",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
5
5
  "types": "./types/",
6
6
  "files": [
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@tywalk/color-logger": "^1.0.3",
28
- "@tywalk/pcf-helper": "^1.4.24"
28
+ "@tywalk/pcf-helper": "^1.4.26"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/jest": "^29.5.14",