@algolia/wizard 0.57.0-rc.151.376 → 0.57.0

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 (2) hide show
  1. package/dist/main.js +9 -10
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -3811,7 +3811,7 @@ async function runAnalysis(mode, extraInstructions = []) {
3811
3811
  // package.json
3812
3812
  var package_default = {
3813
3813
  name: "@algolia/wizard",
3814
- version: "0.57.0-rc.151.376",
3814
+ version: "0.57.0",
3815
3815
  description: "Magically implement Algolia functionality in your codebase",
3816
3816
  type: "module",
3817
3817
  engines: {
@@ -6643,7 +6643,7 @@ function delay(ms) {
6643
6643
  // package.json with { type: 'json' }
6644
6644
  var package_default2 = {
6645
6645
  name: "@algolia/wizard",
6646
- version: "0.57.0-rc.151.376",
6646
+ version: "0.57.0",
6647
6647
  description: "Magically implement Algolia functionality in your codebase",
6648
6648
  type: "module",
6649
6649
  engines: {
@@ -6751,6 +6751,7 @@ async function checkVersion() {
6751
6751
 
6752
6752
  // src/main.tsx
6753
6753
  import { jsx as jsx20 } from "react/jsx-runtime";
6754
+ var FAILURE_EXIT_CODE = 1;
6754
6755
  async function exitProcessWithError(store, instance, message) {
6755
6756
  store.setError(message);
6756
6757
  await instance.waitUntilExit();
@@ -6784,6 +6785,12 @@ ${USAGE}`);
6784
6785
  console.error(`Unknown workflow "${requestedId}". Available: ${available}`);
6785
6786
  return 1;
6786
6787
  }
6788
+ if (await checkVersion()) {
6789
+ console.error(
6790
+ "You have loaded an old version of the Wizard. Please use @algolia/wizard@latest"
6791
+ );
6792
+ return FAILURE_EXIT_CODE;
6793
+ }
6787
6794
  if (args.resetOnRun) {
6788
6795
  const { dir, removed } = await resetProjectState();
6789
6796
  console.log(
@@ -6808,14 +6815,6 @@ async function run(opts) {
6808
6815
  const store = useWizard.getState();
6809
6816
  const instance = render(/* @__PURE__ */ jsx20(App, {}), { incrementalRendering: true });
6810
6817
  await store.waitForStart();
6811
- const wizardOutdated = await checkVersion();
6812
- if (wizardOutdated) {
6813
- await exitProcessWithError(
6814
- store,
6815
- instance,
6816
- "You have loaded an old version of the Wizard. Please use @algolia/wizard@latest"
6817
- );
6818
- }
6819
6818
  store.syncSteps(
6820
6819
  workflow.steps.map((s) => ({
6821
6820
  id: s.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/wizard",
3
- "version": "0.57.0-rc.151.376",
3
+ "version": "0.57.0",
4
4
  "description": "Magically implement Algolia functionality in your codebase",
5
5
  "type": "module",
6
6
  "engines": {