@tywalk/pcf-helper-run 1.1.23 → 1.1.24
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 +2 -1
- package/dist/package.json +3 -3
- package/dist/util/argumentUtil.js +3 -2
- package/package.json +3 -3
- package/types/util/argumentUtil.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -94,6 +94,7 @@ function executeTasks() {
|
|
|
94
94
|
const name = (0, argumentUtil_1.getArgValue)(args, ['-n', '--name']);
|
|
95
95
|
const publisherName = (0, argumentUtil_1.getArgValue)(args, ['-pn', '--publisher-name']);
|
|
96
96
|
const publisherPrefix = (0, argumentUtil_1.getArgValue)(args, ['-pp', '--publisher-prefix']);
|
|
97
|
+
const npm = (0, argumentUtil_1.getArgValue)(args, ['-npm', '--run-npm-install'], 'true');
|
|
97
98
|
if (typeof name === 'undefined') {
|
|
98
99
|
logger.error('Name argument is required. Use --name to specify the name of the control.');
|
|
99
100
|
process.exit(1);
|
|
@@ -106,7 +107,7 @@ function executeTasks() {
|
|
|
106
107
|
logger.error('Publisher Prefix argument is required. Use --publisher-prefix to specify the name of the control.');
|
|
107
108
|
process.exit(1);
|
|
108
109
|
}
|
|
109
|
-
const initResult = tasks.runInit(path, name, publisherName, publisherPrefix, isVerbose);
|
|
110
|
+
const initResult = tasks.runInit(path, name, publisherName, publisherPrefix, npm === 'true', isVerbose);
|
|
110
111
|
if (initResult === 1)
|
|
111
112
|
return 1;
|
|
112
113
|
}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tywalk/pcf-helper-run",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
|
|
5
5
|
"types": "./types/",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest",
|
|
15
15
|
"build": "tsc",
|
|
16
16
|
"upgrade": "npm version patch --no-git-tag-version",
|
|
17
|
-
"ready": "npm run upgrade
|
|
17
|
+
"ready": "npm run upgrade"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"pcf"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@tywalk/color-logger": "^1.0.3",
|
|
28
|
-
"@tywalk/pcf-helper": "^1.4.
|
|
28
|
+
"@tywalk/pcf-helper": "^1.4.21"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/jest": "^29.5.14",
|
|
@@ -9,11 +9,12 @@ function getArg(args, arg) {
|
|
|
9
9
|
}
|
|
10
10
|
return undefined;
|
|
11
11
|
}
|
|
12
|
-
function getArgValue(args, argOpts) {
|
|
12
|
+
function getArgValue(args, argOpts, defaultIfExists) {
|
|
13
|
+
var _a;
|
|
13
14
|
const arg = args.find(a => argOpts.includes(a));
|
|
14
15
|
if (typeof arg === 'undefined') {
|
|
15
16
|
return undefined;
|
|
16
17
|
}
|
|
17
18
|
const argIndex = args.indexOf(arg) + 1;
|
|
18
|
-
return args.at(argIndex);
|
|
19
|
+
return (_a = args.at(argIndex)) !== null && _a !== void 0 ? _a : defaultIfExists;
|
|
19
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tywalk/pcf-helper-run",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
|
|
5
5
|
"types": "./types/",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest",
|
|
15
15
|
"build": "tsc",
|
|
16
16
|
"upgrade": "npm version patch --no-git-tag-version",
|
|
17
|
-
"ready": "npm run upgrade
|
|
17
|
+
"ready": "npm run upgrade"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"pcf"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@tywalk/color-logger": "^1.0.3",
|
|
28
|
-
"@tywalk/pcf-helper": "^1.4.
|
|
28
|
+
"@tywalk/pcf-helper": "^1.4.21"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/jest": "^29.5.14",
|
|
@@ -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[]): string | undefined;
|
|
2
|
+
export declare function getArgValue(args: string[], argOpts: string[], defaultIfExists?: any): string | undefined;
|