@tywalk/pcf-helper-run 1.2.12 → 1.2.13
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 +7 -7
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -264,20 +264,20 @@ addCommonOptions(commander_1.program.command('session'))
|
|
|
264
264
|
.option('-b, --local-bundle <path>', 'local bundle path')
|
|
265
265
|
.option('-c, --local-css <path>', 'local CSS path')
|
|
266
266
|
.option('-f, --config <path>', 'config file path', 'session.config.json')
|
|
267
|
+
.option('-w, --watch', 'start pcf-scripts watch process')
|
|
267
268
|
.action((options) => {
|
|
269
|
+
var _a, _b, _c, _d, _e, _f;
|
|
268
270
|
const { logger, tick } = setupExecutionContext(options);
|
|
269
271
|
let result = 0;
|
|
270
272
|
try {
|
|
271
273
|
logger.log('[PCF Helper Run] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' session started.\n');
|
|
272
|
-
if (!options.url) {
|
|
274
|
+
if (!options.url || options.config) {
|
|
273
275
|
const config = tasks.loadConfig(options.config || 'session.config.json');
|
|
274
|
-
options.url = config.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
options.bundle
|
|
278
|
-
options.css = config.localCssPath;
|
|
276
|
+
tasks.runSession((_a = config.remoteEnvironmentUrl) !== null && _a !== void 0 ? _a : options.url, (_b = config.remoteScriptToIntercept) !== null && _b !== void 0 ? _b : options.script, (_c = config.remoteStylesheetToIntercept) !== null && _c !== void 0 ? _c : options.stylesheet, (_d = config.localBundlePath) !== null && _d !== void 0 ? _d : options.bundle, (_e = config.localCssPath) !== null && _e !== void 0 ? _e : options.css, (_f = config.startWatch) !== null && _f !== void 0 ? _f : options.watch);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
tasks.runSession(options.url, options.script, options.stylesheet, options.bundle, options.css, options.watch);
|
|
279
280
|
}
|
|
280
|
-
tasks.runSession(options.url, options.script, options.stylesheet, options.bundle, options.css);
|
|
281
281
|
}
|
|
282
282
|
catch (e) {
|
|
283
283
|
logger.error('[PCF Helper Run] One or more tasks failed during session: ', (e && e.message) || 'unknown error');
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tywalk/pcf-helper-run",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
|
|
5
5
|
"types": "./types/",
|
|
6
6
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@tywalk/color-logger": "^1.0.3",
|
|
33
|
-
"@tywalk/pcf-helper": "^1.
|
|
33
|
+
"@tywalk/pcf-helper": "^1.6.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@semantic-release/git": "^10.0.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tywalk/pcf-helper-run",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
|
|
5
5
|
"types": "./types/",
|
|
6
6
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@tywalk/color-logger": "^1.0.3",
|
|
33
|
-
"@tywalk/pcf-helper": "^1.
|
|
33
|
+
"@tywalk/pcf-helper": "^1.6.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@semantic-release/git": "^10.0.1",
|