@tywalk/pcf-helper 1.4.18 → 1.4.20
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/bin/build.js +1 -1
- package/dist/bin/deploy.js +3 -3
- package/dist/bin/import.js +1 -1
- package/dist/bin/init.js +1 -1
- package/dist/bin/upgrade.js +1 -1
- package/dist/package.json +1 -1
- package/dist/tasks/build-pcf.js +2 -2
- package/dist/tasks/import-pcf.js +2 -2
- package/dist/tasks/index.js +4 -1
- package/dist/tasks/init-pcf.js +2 -2
- package/dist/tasks/upgrade-pcf.js +2 -2
- package/package.json +1 -1
- package/types/tasks/build-pcf.d.ts +2 -2
- package/types/tasks/import-pcf.d.ts +2 -2
- package/types/tasks/index.d.ts +4 -1
- package/types/tasks/init-pcf.d.ts +2 -2
- package/types/tasks/upgrade-pcf.d.ts +2 -2
package/dist/bin/build.js
CHANGED
|
@@ -63,4 +63,4 @@ if (typeof path === 'undefined') {
|
|
|
63
63
|
color_logger_1.default.error('Path argument is required. Use --path to specify the path to solution folder.');
|
|
64
64
|
process.exit(1);
|
|
65
65
|
}
|
|
66
|
-
task.
|
|
66
|
+
task.runBuild(path, verboseArgument !== undefined);
|
package/dist/bin/deploy.js
CHANGED
|
@@ -74,13 +74,13 @@ if (envIndex > 0) {
|
|
|
74
74
|
env = (_d = args.at(envIndex)) !== null && _d !== void 0 ? _d : '';
|
|
75
75
|
}
|
|
76
76
|
function executeTasks() {
|
|
77
|
-
const upgradeResult = upgradeTask.
|
|
77
|
+
const upgradeResult = upgradeTask.runUpgrade(path, typeof verboseArgument !== 'undefined');
|
|
78
78
|
if (upgradeResult === 1)
|
|
79
79
|
return 1;
|
|
80
|
-
const buildResult = buildTask.
|
|
80
|
+
const buildResult = buildTask.runBuild(path, typeof verboseArgument !== 'undefined');
|
|
81
81
|
if (buildResult === 1)
|
|
82
82
|
return 1;
|
|
83
|
-
const importResult = importTask.
|
|
83
|
+
const importResult = importTask.runImport(path, env, typeof verboseArgument !== 'undefined');
|
|
84
84
|
if (importResult === 1)
|
|
85
85
|
return 1;
|
|
86
86
|
return 0;
|
package/dist/bin/import.js
CHANGED
package/dist/bin/init.js
CHANGED
|
@@ -81,4 +81,4 @@ if (typeof pathArgument !== 'undefined') {
|
|
|
81
81
|
const pathIndex = args.indexOf(pathArgument) + 1;
|
|
82
82
|
path = (_e = args.at(pathIndex)) !== null && _e !== void 0 ? _e : '';
|
|
83
83
|
}
|
|
84
|
-
task.
|
|
84
|
+
task.runInit(path, name, publisherName, publisherPrefix, verboseArgument !== undefined);
|
package/dist/bin/upgrade.js
CHANGED
|
@@ -63,4 +63,4 @@ if (typeof path === 'undefined') {
|
|
|
63
63
|
color_logger_1.default.error('Path argument is required. Use --path to specify the path to solution folder.');
|
|
64
64
|
process.exit(1);
|
|
65
65
|
}
|
|
66
|
-
task.
|
|
66
|
+
task.runUpgrade(path, verboseArgument !== undefined);
|
package/dist/package.json
CHANGED
package/dist/tasks/build-pcf.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.runBuild = runBuild;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const performanceUtil_1 = require("../util/performanceUtil");
|
|
9
9
|
const color_logger_1 = __importDefault(require("@tywalk/color-logger"));
|
|
@@ -15,7 +15,7 @@ const color_logger_1 = __importDefault(require("@tywalk/color-logger"));
|
|
|
15
15
|
*
|
|
16
16
|
* @returns {number} The exit code of the spawned process.
|
|
17
17
|
*/
|
|
18
|
-
function
|
|
18
|
+
function runBuild(path, verbose) {
|
|
19
19
|
color_logger_1.default.log('[PCF Helper] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' Starting build...\n');
|
|
20
20
|
const tick = performance.now();
|
|
21
21
|
const task = (0, child_process_1.spawnSync)('dotnet build', ['--restore', '-c', 'Release', path], {
|
package/dist/tasks/import-pcf.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.runImport = runImport;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -18,7 +18,7 @@ const performanceUtil_1 = require("../util/performanceUtil");
|
|
|
18
18
|
*
|
|
19
19
|
* @returns {number} The exit status of the import process.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function runImport(path, env, verbose) {
|
|
22
22
|
var _a;
|
|
23
23
|
color_logger_1.default.log('[PCF Helper] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' Starting import...\n');
|
|
24
24
|
const tick = performance.now();
|
package/dist/tasks/index.js
CHANGED
|
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("./build-pcf"), exports);
|
|
18
|
+
__exportStar(require("./import-pcf"), exports);
|
|
19
|
+
__exportStar(require("./init-pcf"), exports);
|
|
20
|
+
__exportStar(require("./upgrade-pcf"), exports);
|
package/dist/tasks/init-pcf.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.runInit = runInit;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -22,7 +22,7 @@ function pcfExistsInParent(path) {
|
|
|
22
22
|
}
|
|
23
23
|
throw new Error('PCF project not found.');
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function runInit(path, name, publisherName, publisherPrefix, verbose) {
|
|
26
26
|
color_logger_1.default.log('[PCF Helper] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' Starting init...\n');
|
|
27
27
|
const tick = performance.now();
|
|
28
28
|
path = path !== null && path !== void 0 ? path : process.cwd();
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.runUpgrade = runUpgrade;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const performanceUtil_1 = require("../util/performanceUtil");
|
|
9
9
|
const color_logger_1 = __importDefault(require("@tywalk/color-logger"));
|
|
@@ -15,7 +15,7 @@ const color_logger_1 = __importDefault(require("@tywalk/color-logger"));
|
|
|
15
15
|
*
|
|
16
16
|
* @returns {number} The exit code of the spawned process.
|
|
17
17
|
*/
|
|
18
|
-
function
|
|
18
|
+
function runUpgrade(path, verbose) {
|
|
19
19
|
color_logger_1.default.log('[PCF Helper] ' + (0, performanceUtil_1.formatTime)(new Date()) + ' Starting upgrade...\n');
|
|
20
20
|
const tick = performance.now();
|
|
21
21
|
const task = (0, child_process_1.spawnSync)(`pac solution version -s Solution -sp ${path} && pac pcf version -s Manifest && npm version patch --no-git-tag-version`, {
|
package/package.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @returns {number} The exit status of the import process.
|
|
9
9
|
*/
|
|
10
|
-
declare function
|
|
11
|
-
export {
|
|
10
|
+
declare function runImport(path: string, env: string, verbose?: boolean): number;
|
|
11
|
+
export { runImport };
|
package/types/tasks/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
export {
|
|
1
|
+
declare function runInit(path: string, name: string, publisherName: string, publisherPrefix: string, verbose: boolean): number;
|
|
2
|
+
export { runInit };
|