@sentry/wizard 3.25.0 → 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.
- package/CHANGELOG.md +8 -0
- package/bin.ts +10 -2
- package/dist/bin.js +12 -3
- package/dist/bin.js.map +1 -1
- package/dist/lib/Helper/Env.js +1 -0
- package/dist/lib/Helper/Env.js.map +1 -1
- package/dist/lib/Setup.d.ts +6 -0
- package/dist/lib/Setup.js +6 -0
- package/dist/lib/Setup.js.map +1 -1
- package/dist/lib/Steps/ChooseIntegration.js +0 -29
- package/dist/lib/Steps/ChooseIntegration.js.map +1 -1
- package/dist/package.json +2 -1
- package/dist/src/remix/codemods/handle-error.js +35 -33
- package/dist/src/remix/codemods/handle-error.js.map +1 -1
- package/dist/src/remix/templates.d.ts +1 -1
- package/dist/src/remix/templates.js +1 -1
- package/dist/src/remix/templates.js.map +1 -1
- package/dist/src/run.d.ts +16 -0
- package/dist/src/run.js +195 -0
- package/dist/src/run.js.map +1 -0
- package/dist/src/utils/clack-utils.js +1 -1
- package/dist/src/utils/clack-utils.js.map +1 -1
- package/dist/src/utils/package-json.d.ts +1 -0
- package/dist/src/utils/package-json.js.map +1 -1
- package/lib/Helper/Env.ts +1 -0
- package/lib/Setup.ts +6 -0
- package/lib/Steps/ChooseIntegration.ts +0 -29
- package/package.json +2 -1
- package/src/remix/codemods/handle-error.ts +57 -37
- package/src/remix/templates.ts +3 -3
- package/src/run.ts +142 -0
- package/src/utils/clack-utils.ts +1 -1
- package/src/utils/package-json.ts +1 -0
- package/dist/lib/Steps/Integrations/Android.d.ts +0 -9
- package/dist/lib/Steps/Integrations/Android.js +0 -86
- package/dist/lib/Steps/Integrations/Android.js.map +0 -1
- package/dist/lib/Steps/Integrations/Apple.d.ts +0 -10
- package/dist/lib/Steps/Integrations/Apple.js +0 -92
- package/dist/lib/Steps/Integrations/Apple.js.map +0 -1
- package/dist/lib/Steps/Integrations/NextJsShim.d.ts +0 -13
- package/dist/lib/Steps/Integrations/NextJsShim.js +0 -99
- package/dist/lib/Steps/Integrations/NextJsShim.js.map +0 -1
- package/dist/lib/Steps/Integrations/ReactNative.d.ts +0 -10
- package/dist/lib/Steps/Integrations/ReactNative.js +0 -93
- package/dist/lib/Steps/Integrations/ReactNative.js.map +0 -1
- package/dist/lib/Steps/Integrations/Remix.d.ts +0 -12
- package/dist/lib/Steps/Integrations/Remix.js +0 -98
- package/dist/lib/Steps/Integrations/Remix.js.map +0 -1
- package/dist/lib/Steps/Integrations/SourceMapsShim.d.ts +0 -13
- package/dist/lib/Steps/Integrations/SourceMapsShim.js +0 -94
- package/dist/lib/Steps/Integrations/SourceMapsShim.js.map +0 -1
- package/dist/lib/Steps/Integrations/SvelteKitShim.d.ts +0 -13
- package/dist/lib/Steps/Integrations/SvelteKitShim.js +0 -99
- package/dist/lib/Steps/Integrations/SvelteKitShim.js.map +0 -1
- package/lib/Steps/Integrations/Android.ts +0 -23
- package/lib/Steps/Integrations/Apple.ts +0 -27
- package/lib/Steps/Integrations/NextJsShim.ts +0 -33
- package/lib/Steps/Integrations/ReactNative.ts +0 -28
- package/lib/Steps/Integrations/Remix.ts +0 -32
- package/lib/Steps/Integrations/SourceMapsShim.ts +0 -28
- package/lib/Steps/Integrations/SvelteKitShim.ts +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
import { runSvelteKitWizard } from '../../../src/sveltekit/sveltekit-wizard';
|
|
3
|
-
|
|
4
|
-
import type { Args } from '../../Constants';
|
|
5
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This class just redirects to the new `sveltekit-wizard.ts` flow
|
|
9
|
-
* for anyone calling the wizard without the '-i sveltekit' flag.
|
|
10
|
-
*/
|
|
11
|
-
export class SvelteKitShim extends BaseIntegration {
|
|
12
|
-
public constructor(protected _argv: Args) {
|
|
13
|
-
super(_argv);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
17
|
-
await runSvelteKitWizard({
|
|
18
|
-
promoCode: this._argv.promoCode,
|
|
19
|
-
url: this._argv.url,
|
|
20
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
21
|
-
});
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public async shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
27
|
-
if (this._shouldConfigure) {
|
|
28
|
-
return this._shouldConfigure;
|
|
29
|
-
}
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
31
|
-
return this.shouldConfigure;
|
|
32
|
-
}
|
|
33
|
-
}
|