mirror of https://github.com/buster-so/buster.git
update some of the build command
This commit is contained in:
parent
1a13266898
commit
e828b230f1
|
@ -6,13 +6,14 @@
|
|||
"scripts": {
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck",
|
||||
"build:staging": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck --env staging",
|
||||
"build:production": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck --env production",
|
||||
"build:local": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck --local",
|
||||
"build:no-typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
||||
"build-storybook": "storybook build",
|
||||
"build:visualize": "npx vite-bundle-visualizer",
|
||||
"deploy:dev": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env dev --assets .output/public",
|
||||
"deploy:production": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env production --assets .output/public",
|
||||
"deploy:staging": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env staging --assets .output/public",
|
||||
"deploy:production": "pnpm run build:production && npx wrangler deploy .output/server/index.mjs --env production --assets .output/public",
|
||||
"deploy:staging": "pnpm run build:staging && npx wrangler deploy .output/server/index.mjs --env staging --assets .output/public",
|
||||
"dev": "vite dev --port 3000",
|
||||
"dev:fast": "pnpm run build:local && pnpm run start:bun",
|
||||
"generate-routes": "tsr generate",
|
||||
|
|
|
@ -48,7 +48,6 @@ export const BlockDiscussion: RenderNodeWrapper<AnyPluginConfig> = (props) => {
|
|||
return;
|
||||
}
|
||||
|
||||
// biome-ignore lint/correctness/noNestedComponentDefinitions: meh
|
||||
const Component = (props: PlateElementProps) => (
|
||||
<BlockCommentContent
|
||||
blockPath={blockPath}
|
||||
|
|
|
@ -65,7 +65,6 @@ export const BlockDraggable: RenderNodeWrapper = (props) => {
|
|||
|
||||
if (!enabled) return;
|
||||
|
||||
// biome-ignore lint/correctness/noNestedComponentDefinitions: meh
|
||||
const Component = (props: PlateElementProps) => <Draggable {...props} />;
|
||||
Component.displayName = 'BlockDraggable';
|
||||
return Component;
|
||||
|
|
|
@ -23,7 +23,6 @@ const config: Record<
|
|||
export const BlockList: RenderNodeWrapper = (props) => {
|
||||
if (!props.element.listStyleType) return;
|
||||
|
||||
// biome-ignore lint/correctness/noNestedComponentDefinitions: meh
|
||||
const Component = (props: PlateElementProps) => <List {...props} />;
|
||||
Component.displayName = 'BlockList';
|
||||
|
||||
|
|
|
@ -280,7 +280,6 @@ const InlineComboboxItem = ({
|
|||
const store = useComboboxContext()!;
|
||||
|
||||
// Optimization: Do not subscribe to value if filter is false
|
||||
// biome-ignore lint/correctness/useHookAtTopLevel: it's cool
|
||||
const search = filter && store.useState('value');
|
||||
|
||||
const visible = React.useMemo(
|
||||
|
|
Loading…
Reference in New Issue