Skip to content

Commit

Permalink
Automated linting update and features.json sync
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 30, 2023
1 parent bbc69c3 commit 79084fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/studio/bin/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ cli
const YEXT_STUDIO_ARGS = JSON.stringify({
"--": options["--"],
port: options.port,
root: options.root
})
root: options.root,
});

spawnSync(
"npx",
Expand All @@ -39,7 +39,7 @@ cli
env: {
...process.env,
YEXT_STUDIO_ARGS,
VITE_STUDIO_STRICT: String(options.strict)
VITE_STUDIO_STRICT: String(options.strict),
},
shell: true,
}
Expand Down
9 changes: 6 additions & 3 deletions packages/studio/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ if (import.meta.hot) {
void hotReloadGitData(hmrPayload);
});
}
const WrappedApp = import.meta.env.VITE_STUDIO_STRICT === "true"
? <React.StrictMode>
const WrappedApp =
import.meta.env.VITE_STUDIO_STRICT === "true" ? (
<React.StrictMode>
<AppWithLazyLoading />
</React.StrictMode>
: <AppWithLazyLoading />
) : (
<AppWithLazyLoading />
);

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
WrappedApp
Expand Down

0 comments on commit 79084fc

Please sign in to comment.