@sentry/wizard 3.25.1 → 3.25.2

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/bin.ts +10 -2
  3. package/dist/bin.js +12 -3
  4. package/dist/bin.js.map +1 -1
  5. package/dist/lib/Helper/Env.js +1 -0
  6. package/dist/lib/Helper/Env.js.map +1 -1
  7. package/dist/lib/Setup.d.ts +6 -0
  8. package/dist/lib/Setup.js +6 -0
  9. package/dist/lib/Setup.js.map +1 -1
  10. package/dist/lib/Steps/ChooseIntegration.js +0 -29
  11. package/dist/lib/Steps/ChooseIntegration.js.map +1 -1
  12. package/dist/package.json +2 -1
  13. package/dist/src/run.d.ts +16 -0
  14. package/dist/src/run.js +195 -0
  15. package/dist/src/run.js.map +1 -0
  16. package/dist/src/utils/clack-utils.js +1 -1
  17. package/dist/src/utils/clack-utils.js.map +1 -1
  18. package/dist/src/utils/package-json.d.ts +1 -0
  19. package/dist/src/utils/package-json.js.map +1 -1
  20. package/lib/Helper/Env.ts +1 -0
  21. package/lib/Setup.ts +6 -0
  22. package/lib/Steps/ChooseIntegration.ts +0 -29
  23. package/package.json +2 -1
  24. package/src/run.ts +142 -0
  25. package/src/utils/clack-utils.ts +1 -1
  26. package/src/utils/package-json.ts +1 -0
  27. package/dist/lib/Steps/Integrations/Android.d.ts +0 -9
  28. package/dist/lib/Steps/Integrations/Android.js +0 -86
  29. package/dist/lib/Steps/Integrations/Android.js.map +0 -1
  30. package/dist/lib/Steps/Integrations/Apple.d.ts +0 -10
  31. package/dist/lib/Steps/Integrations/Apple.js +0 -92
  32. package/dist/lib/Steps/Integrations/Apple.js.map +0 -1
  33. package/dist/lib/Steps/Integrations/NextJsShim.d.ts +0 -13
  34. package/dist/lib/Steps/Integrations/NextJsShim.js +0 -99
  35. package/dist/lib/Steps/Integrations/NextJsShim.js.map +0 -1
  36. package/dist/lib/Steps/Integrations/ReactNative.d.ts +0 -10
  37. package/dist/lib/Steps/Integrations/ReactNative.js +0 -93
  38. package/dist/lib/Steps/Integrations/ReactNative.js.map +0 -1
  39. package/dist/lib/Steps/Integrations/Remix.d.ts +0 -12
  40. package/dist/lib/Steps/Integrations/Remix.js +0 -98
  41. package/dist/lib/Steps/Integrations/Remix.js.map +0 -1
  42. package/dist/lib/Steps/Integrations/SourceMapsShim.d.ts +0 -13
  43. package/dist/lib/Steps/Integrations/SourceMapsShim.js +0 -94
  44. package/dist/lib/Steps/Integrations/SourceMapsShim.js.map +0 -1
  45. package/dist/lib/Steps/Integrations/SvelteKitShim.d.ts +0 -13
  46. package/dist/lib/Steps/Integrations/SvelteKitShim.js +0 -99
  47. package/dist/lib/Steps/Integrations/SvelteKitShim.js.map +0 -1
  48. package/lib/Steps/Integrations/Android.ts +0 -23
  49. package/lib/Steps/Integrations/Apple.ts +0 -27
  50. package/lib/Steps/Integrations/NextJsShim.ts +0 -33
  51. package/lib/Steps/Integrations/ReactNative.ts +0 -28
  52. package/lib/Steps/Integrations/Remix.ts +0 -32
  53. package/lib/Steps/Integrations/SourceMapsShim.ts +0 -28
  54. package/lib/Steps/Integrations/SvelteKitShim.ts +0 -33
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.Android = void 0;
55
- var BaseIntegration_1 = require("./BaseIntegration");
56
- var android_wizard_1 = require("../../../src/android/android-wizard");
57
- var Android = /** @class */ (function (_super) {
58
- __extends(Android, _super);
59
- function Android(_argv) {
60
- var _this = _super.call(this, _argv) || this;
61
- _this._argv = _argv;
62
- return _this;
63
- }
64
- Android.prototype.emit = function (_answers) {
65
- return __awaiter(this, void 0, void 0, function () {
66
- return __generator(this, function (_a) {
67
- switch (_a.label) {
68
- case 0: return [4 /*yield*/, (0, android_wizard_1.runAndroidWizard)({
69
- promoCode: this._argv.promoCode,
70
- url: this._argv.url,
71
- telemetryEnabled: !this._argv.disableTelemetry,
72
- })];
73
- case 1:
74
- _a.sent();
75
- return [2 /*return*/, {}];
76
- }
77
- });
78
- });
79
- };
80
- Android.prototype.shouldConfigure = function (_answers) {
81
- return this._shouldConfigure;
82
- };
83
- return Android;
84
- }(BaseIntegration_1.BaseIntegration));
85
- exports.Android = Android;
86
- //# sourceMappingURL=Android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Android.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/Android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAoD;AAEpD,sEAAuE;AAEvE;IAA6B,2BAAe;IAC1C,iBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SACb;QAF4B,WAAK,GAAL,KAAK,CAAM;;IAExC,CAAC;IAEY,sBAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,iCAAgB,EAAC;4BACrB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;yBAC/C,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBACH,sBAAO,EAAE,EAAC;;;;KACX;IAEM,iCAAe,GAAtB,UAAuB,QAAiB;QACtC,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACH,cAAC;AAAD,CAAC,AAjBD,CAA6B,iCAAe,GAiB3C;AAjBY,0BAAO","sourcesContent":["import { Answers } from 'inquirer';\nimport { BaseIntegration } from './BaseIntegration';\nimport { Args } from '../../Constants';\nimport { runAndroidWizard } from '../../../src/android/android-wizard';\n\nexport class Android extends BaseIntegration {\n public constructor(protected _argv: Args) {\n super(_argv);\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runAndroidWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n });\n return {};\n }\n\n public shouldConfigure(_answers: Answers): Promise<Answers> {\n return this._shouldConfigure;\n }\n}\n"]}
@@ -1,10 +0,0 @@
1
- import { Answers } from 'inquirer';
2
- import type { Args } from '../../Constants';
3
- import { BaseIntegration } from './BaseIntegration';
4
- export declare class Apple extends BaseIntegration {
5
- protected _argv: Args;
6
- argv: Args;
7
- constructor(_argv: Args);
8
- emit(_answers: Answers): Promise<Answers>;
9
- shouldConfigure(_answers: Answers): Promise<Answers>;
10
- }
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.Apple = void 0;
55
- var BaseIntegration_1 = require("./BaseIntegration");
56
- var apple_wizard_1 = require("../../../src/apple/apple-wizard");
57
- var Apple = /** @class */ (function (_super) {
58
- __extends(Apple, _super);
59
- function Apple(_argv) {
60
- var _this = _super.call(this, _argv) || this;
61
- _this._argv = _argv;
62
- _this.argv = _argv;
63
- return _this;
64
- }
65
- Apple.prototype.emit = function (_answers) {
66
- return __awaiter(this, void 0, void 0, function () {
67
- return __generator(this, function (_a) {
68
- switch (_a.label) {
69
- case 0: return [4 /*yield*/, (0, apple_wizard_1.runAppleWizard)({
70
- promoCode: this._argv.promoCode,
71
- url: this._argv.url,
72
- telemetryEnabled: !this._argv.disableTelemetry,
73
- // eslint-disable-next-line no-console
74
- }).catch(console.error)];
75
- case 1:
76
- _a.sent();
77
- return [2 /*return*/, {}];
78
- }
79
- });
80
- });
81
- };
82
- Apple.prototype.shouldConfigure = function (_answers) {
83
- return __awaiter(this, void 0, void 0, function () {
84
- return __generator(this, function (_a) {
85
- return [2 /*return*/, this._shouldConfigure];
86
- });
87
- });
88
- };
89
- return Apple;
90
- }(BaseIntegration_1.BaseIntegration));
91
- exports.Apple = Apple;
92
- //# sourceMappingURL=Apple.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Apple.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/Apple.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAoD;AACpD,gEAAiE;AAEjE;IAA2B,yBAAe;IAExC,eAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SAEb;QAH4B,WAAK,GAAL,KAAK,CAAM;QAEtC,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;;IACpB,CAAC;IAEY,oBAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,6BAAc,EAAC;4BACnB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;4BAC9C,sCAAsC;yBACvC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAA;;wBALvB,SAKuB,CAAC;wBAExB,sBAAO,EAAE,EAAC;;;;KACX;IAEY,+BAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,sBAAO,IAAI,CAAC,gBAAgB,EAAC;;;KAC9B;IACH,YAAC;AAAD,CAAC,AArBD,CAA2B,iCAAe,GAqBzC;AArBY,sBAAK","sourcesContent":["import { Answers } from 'inquirer';\nimport type { Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\nimport { runAppleWizard } from '../../../src/apple/apple-wizard';\n\nexport class Apple extends BaseIntegration {\n argv: Args;\n public constructor(protected _argv: Args) {\n super(_argv);\n this.argv = _argv;\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runAppleWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n // eslint-disable-next-line no-console\n }).catch(console.error);\n\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n return this._shouldConfigure;\n }\n}\n"]}
@@ -1,13 +0,0 @@
1
- import type { Answers } from 'inquirer';
2
- import type { Args } from '../../Constants';
3
- import { BaseIntegration } from './BaseIntegration';
4
- /**
5
- * This class just redirects to the new `nextjs-wizard.ts` flow
6
- * for anyone calling the wizard without the '-i nextjs' flag.
7
- */
8
- export declare class NextJsShim extends BaseIntegration {
9
- protected _argv: Args;
10
- constructor(_argv: Args);
11
- emit(_answers: Answers): Promise<Answers>;
12
- shouldConfigure(_answers: Answers): Promise<Answers>;
13
- }
@@ -1,99 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.NextJsShim = void 0;
55
- var nextjs_wizard_1 = require("../../../src/nextjs/nextjs-wizard");
56
- var BaseIntegration_1 = require("./BaseIntegration");
57
- /**
58
- * This class just redirects to the new `nextjs-wizard.ts` flow
59
- * for anyone calling the wizard without the '-i nextjs' flag.
60
- */
61
- var NextJsShim = /** @class */ (function (_super) {
62
- __extends(NextJsShim, _super);
63
- function NextJsShim(_argv) {
64
- var _this = _super.call(this, _argv) || this;
65
- _this._argv = _argv;
66
- return _this;
67
- }
68
- NextJsShim.prototype.emit = function (_answers) {
69
- return __awaiter(this, void 0, void 0, function () {
70
- return __generator(this, function (_a) {
71
- switch (_a.label) {
72
- case 0: return [4 /*yield*/, (0, nextjs_wizard_1.runNextjsWizard)({
73
- promoCode: this._argv.promoCode,
74
- url: this._argv.url,
75
- telemetryEnabled: !this._argv.disableTelemetry,
76
- })];
77
- case 1:
78
- _a.sent();
79
- return [2 /*return*/, {}];
80
- }
81
- });
82
- });
83
- };
84
- NextJsShim.prototype.shouldConfigure = function (_answers) {
85
- return __awaiter(this, void 0, void 0, function () {
86
- return __generator(this, function (_a) {
87
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
88
- if (this._shouldConfigure) {
89
- return [2 /*return*/, this._shouldConfigure];
90
- }
91
- // eslint-disable-next-line @typescript-eslint/unbound-method
92
- return [2 /*return*/, this.shouldConfigure];
93
- });
94
- });
95
- };
96
- return NextJsShim;
97
- }(BaseIntegration_1.BaseIntegration));
98
- exports.NextJsShim = NextJsShim;
99
- //# sourceMappingURL=NextJsShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NextJsShim.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/NextJsShim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,mEAAoE;AAGpE,qDAAoD;AAEpD;;;GAGG;AACH;IAAgC,8BAAe;IAC7C,oBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SACb;QAF4B,WAAK,GAAL,KAAK,CAAM;;IAExC,CAAC;IAEY,yBAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,+BAAe,EAAC;4BACpB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;yBAC/C,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBACH,sBAAO,EAAE,EAAC;;;;KACX;IAEY,oCAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,kEAAkE;gBAClE,IAAI,IAAI,CAAC,gBAAgB,EAAE;oBACzB,sBAAO,IAAI,CAAC,gBAAgB,EAAC;iBAC9B;gBACD,6DAA6D;gBAC7D,sBAAO,IAAI,CAAC,eAAe,EAAC;;;KAC7B;IACH,iBAAC;AAAD,CAAC,AAtBD,CAAgC,iCAAe,GAsB9C;AAtBY,gCAAU","sourcesContent":["import type { Answers } from 'inquirer';\nimport { runNextjsWizard } from '../../../src/nextjs/nextjs-wizard';\n\nimport type { Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\n\n/**\n * This class just redirects to the new `nextjs-wizard.ts` flow\n * for anyone calling the wizard without the '-i nextjs' flag.\n */\nexport class NextJsShim extends BaseIntegration {\n public constructor(protected _argv: Args) {\n super(_argv);\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runNextjsWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n });\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n if (this._shouldConfigure) {\n return this._shouldConfigure;\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n return this.shouldConfigure;\n }\n}\n"]}
@@ -1,10 +0,0 @@
1
- import { Answers } from 'inquirer';
2
- import { type Args } from '../../Constants';
3
- import { BaseIntegration } from './BaseIntegration';
4
- export declare class ReactNative extends BaseIntegration {
5
- protected _argv: Args;
6
- argv: Args;
7
- constructor(_argv: Args);
8
- emit(_answers: Answers): Promise<Answers>;
9
- shouldConfigure(_answers: Answers): Promise<Answers>;
10
- }
@@ -1,93 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.ReactNative = void 0;
55
- var BaseIntegration_1 = require("./BaseIntegration");
56
- var react_native_wizard_1 = require("../../../src/react-native/react-native-wizard");
57
- var ReactNative = /** @class */ (function (_super) {
58
- __extends(ReactNative, _super);
59
- function ReactNative(_argv) {
60
- var _this = _super.call(this, _argv) || this;
61
- _this._argv = _argv;
62
- _this.argv = _argv;
63
- return _this;
64
- }
65
- ReactNative.prototype.emit = function (_answers) {
66
- return __awaiter(this, void 0, void 0, function () {
67
- return __generator(this, function (_a) {
68
- switch (_a.label) {
69
- case 0: return [4 /*yield*/, (0, react_native_wizard_1.runReactNativeWizard)({
70
- promoCode: this._argv.promoCode,
71
- url: this._argv.url,
72
- telemetryEnabled: !this._argv.disableTelemetry,
73
- uninstall: this._argv.uninstall,
74
- // eslint-disable-next-line no-console
75
- }).catch(console.error)];
76
- case 1:
77
- _a.sent();
78
- return [2 /*return*/, {}];
79
- }
80
- });
81
- });
82
- };
83
- ReactNative.prototype.shouldConfigure = function (_answers) {
84
- return __awaiter(this, void 0, void 0, function () {
85
- return __generator(this, function (_a) {
86
- return [2 /*return*/, this._shouldConfigure];
87
- });
88
- });
89
- };
90
- return ReactNative;
91
- }(BaseIntegration_1.BaseIntegration));
92
- exports.ReactNative = ReactNative;
93
- //# sourceMappingURL=ReactNative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactNative.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/ReactNative.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAoD;AACpD,qFAAqF;AAErF;IAAiC,+BAAe;IAE9C,qBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SAEb;QAH4B,WAAK,GAAL,KAAK,CAAM;QAEtC,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;;IACpB,CAAC;IAEY,0BAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,0CAAoB,EAAC;4BACzB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;4BAC9C,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,sCAAsC;yBACvC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAA;;wBANvB,SAMuB,CAAC;wBAExB,sBAAO,EAAE,EAAC;;;;KACX;IAEY,qCAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,sBAAO,IAAI,CAAC,gBAAgB,EAAC;;;KAC9B;IACH,kBAAC;AAAD,CAAC,AAtBD,CAAiC,iCAAe,GAsB/C;AAtBY,kCAAW","sourcesContent":["import { Answers } from 'inquirer';\nimport { type Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\nimport { runReactNativeWizard } from '../../../src/react-native/react-native-wizard';\n\nexport class ReactNative extends BaseIntegration {\n argv: Args;\n public constructor(protected _argv: Args) {\n super(_argv);\n this.argv = _argv;\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runReactNativeWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n uninstall: this._argv.uninstall,\n // eslint-disable-next-line no-console\n }).catch(console.error);\n\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n return this._shouldConfigure;\n }\n}\n"]}
@@ -1,12 +0,0 @@
1
- import type { Answers } from 'inquirer';
2
- import type { Args } from '../../Constants';
3
- import { BaseIntegration } from './BaseIntegration';
4
- /**
5
- * This class just redirects to the new `remix-wizard.ts` flow.
6
- */
7
- export declare class Remix extends BaseIntegration {
8
- protected _argv: Args;
9
- constructor(_argv: Args);
10
- emit(_answers: Answers): Promise<Answers>;
11
- shouldConfigure(_answers: Answers): Promise<Answers>;
12
- }
@@ -1,98 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.Remix = void 0;
55
- var BaseIntegration_1 = require("./BaseIntegration");
56
- var remix_wizard_1 = require("../../../src/remix/remix-wizard");
57
- /**
58
- * This class just redirects to the new `remix-wizard.ts` flow.
59
- */
60
- var Remix = /** @class */ (function (_super) {
61
- __extends(Remix, _super);
62
- function Remix(_argv) {
63
- var _this = _super.call(this, _argv) || this;
64
- _this._argv = _argv;
65
- return _this;
66
- }
67
- Remix.prototype.emit = function (_answers) {
68
- return __awaiter(this, void 0, void 0, function () {
69
- return __generator(this, function (_a) {
70
- switch (_a.label) {
71
- case 0: return [4 /*yield*/, (0, remix_wizard_1.runRemixWizard)({
72
- promoCode: this._argv.promoCode,
73
- url: this._argv.url,
74
- telemetryEnabled: !this._argv.disableTelemetry,
75
- })];
76
- case 1:
77
- _a.sent();
78
- return [2 /*return*/, {}];
79
- }
80
- });
81
- });
82
- };
83
- Remix.prototype.shouldConfigure = function (_answers) {
84
- return __awaiter(this, void 0, void 0, function () {
85
- return __generator(this, function (_a) {
86
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
87
- if (this._shouldConfigure) {
88
- return [2 /*return*/, this._shouldConfigure];
89
- }
90
- // eslint-disable-next-line @typescript-eslint/unbound-method
91
- return [2 /*return*/, this.shouldConfigure];
92
- });
93
- });
94
- };
95
- return Remix;
96
- }(BaseIntegration_1.BaseIntegration));
97
- exports.Remix = Remix;
98
- //# sourceMappingURL=Remix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Remix.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/Remix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qDAAoD;AACpD,gEAAiE;AAEjE;;GAEG;AACH;IAA2B,yBAAe;IACxC,eAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SACb;QAF4B,WAAK,GAAL,KAAK,CAAM;;IAExC,CAAC;IAEY,oBAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,6BAAc,EAAC;4BACnB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;yBAC/C,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBACH,sBAAO,EAAE,EAAC;;;;KACX;IAEY,+BAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,kEAAkE;gBAClE,IAAI,IAAI,CAAC,gBAAgB,EAAE;oBACzB,sBAAO,IAAI,CAAC,gBAAgB,EAAC;iBAC9B;gBACD,6DAA6D;gBAC7D,sBAAO,IAAI,CAAC,eAAe,EAAC;;;KAC7B;IACH,YAAC;AAAD,CAAC,AAtBD,CAA2B,iCAAe,GAsBzC;AAtBY,sBAAK","sourcesContent":["import type { Answers } from 'inquirer';\n\nimport type { Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\nimport { runRemixWizard } from '../../../src/remix/remix-wizard';\n\n/**\n * This class just redirects to the new `remix-wizard.ts` flow.\n */\nexport class Remix extends BaseIntegration {\n public constructor(protected _argv: Args) {\n super(_argv);\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runRemixWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n });\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n if (this._shouldConfigure) {\n return this._shouldConfigure;\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n return this.shouldConfigure;\n }\n}\n"]}
@@ -1,13 +0,0 @@
1
- import type { Answers } from 'inquirer';
2
- import type { Args } from '../../Constants';
3
- import { BaseIntegration } from './BaseIntegration';
4
- /**
5
- * This class just redirects to the `sourcemaps-wizard.ts` flow
6
- * for anyone calling the wizard without the '-i sourcemaps' flag.
7
- */
8
- export declare class SourceMapsShim extends BaseIntegration {
9
- protected _argv: Args;
10
- constructor(_argv: Args);
11
- emit(_answers: Answers): Promise<Answers>;
12
- shouldConfigure(_answers: Answers): Promise<Answers>;
13
- }