@tywalk/pcf-helper-run 1.1.20 → 1.1.21

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
@@ -1,14 +1,44 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
6
36
  var _a, _b, _c, _d;
7
37
  Object.defineProperty(exports, "__esModule", { value: true });
8
- const upgrade_pcf_1 = __importDefault(require("@tywalk/pcf-helper/dist/tasks/upgrade-pcf"));
9
- const build_pcf_1 = __importDefault(require("@tywalk/pcf-helper/dist/tasks/build-pcf"));
10
- const import_pcf_1 = __importDefault(require("@tywalk/pcf-helper/dist/tasks/import-pcf"));
11
- const init_pcf_1 = __importDefault(require("@tywalk/pcf-helper/dist/tasks/init-pcf"));
38
+ const upgradeTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/upgrade-pcf"));
39
+ const buildTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/build-pcf"));
40
+ const importTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/import-pcf"));
41
+ const initTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/init-pcf"));
12
42
  const color_logger_1 = require("@tywalk/color-logger");
13
43
  const package_json_1 = require("./package.json");
14
44
  const performanceUtil_1 = require("./util/performanceUtil");
@@ -49,22 +79,22 @@ if (envIndex > 0) {
49
79
  }
50
80
  function executeTasks() {
51
81
  if (commandArgument === 'upgrade' || runAll) {
52
- const upgradeResult = upgrade_pcf_1.default.run(path);
82
+ const upgradeResult = upgradeTask.run(path);
53
83
  if (upgradeResult === 1)
54
84
  return 1;
55
85
  }
56
86
  if (commandArgument === 'build' || runAll) {
57
- const buildResult = build_pcf_1.default.run(path);
87
+ const buildResult = buildTask.run(path);
58
88
  if (buildResult === 1)
59
89
  return 1;
60
90
  }
61
91
  if (commandArgument === 'import' || runAll) {
62
- const importResult = import_pcf_1.default.run(path, env);
92
+ const importResult = importTask.run(path, env);
63
93
  if (importResult === 1)
64
94
  return 1;
65
95
  }
66
96
  if (commandArgument === 'init') {
67
- const importResult = init_pcf_1.default.run(path, env);
97
+ const importResult = initTask.run(path, env);
68
98
  if (importResult === 1)
69
99
  return 1;
70
100
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
5
5
  "types": "./types/",
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tywalk/pcf-helper-run",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "A simple command-line utility for building and publishing PCF controls to Dataverse.",
5
5
  "types": "./types/",
6
6
  "files": [