@open-slide/core 0.0.1 → 0.0.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.
@@ -1,4 +1,4 @@
1
- import { createViteConfig } from "./config-Dk8ASJ8X.js";
1
+ import { createViteConfig } from "./config-Opp2R1Jf.js";
2
2
  import { build as build$1 } from "vite";
3
3
 
4
4
  //#region src/cli/build.ts
package/dist/cli/bin.js CHANGED
@@ -30,17 +30,17 @@ async function run(argv) {
30
30
  return;
31
31
  }
32
32
  if (cmd === "dev") {
33
- const { dev } = await import("../dev-BN2k5C-N.js");
33
+ const { dev } = await import("../dev-0SG0ArzD.js");
34
34
  await dev();
35
35
  return;
36
36
  }
37
37
  if (cmd === "build") {
38
- const { build } = await import("../build-0xQdMJb7.js");
38
+ const { build } = await import("../build-DJGuOT6x.js");
39
39
  await build();
40
40
  return;
41
41
  }
42
42
  if (cmd === "preview") {
43
- const { preview } = await import("../preview-B-xUqFKf.js");
43
+ const { preview } = await import("../preview-61Aawrlg.js");
44
44
  await preview();
45
45
  return;
46
46
  }
@@ -305,6 +305,17 @@ async function createViteConfig(opts) {
305
305
  })
306
306
  ],
307
307
  resolve: { alias: { "@": APP_ROOT } },
308
+ optimizeDeps: {
309
+ entries: [path.join(APP_ROOT, "main.tsx")],
310
+ include: [
311
+ "react-router-dom",
312
+ "radix-ui",
313
+ "lucide-react",
314
+ "clsx",
315
+ "tailwind-merge",
316
+ "class-variance-authority"
317
+ ]
318
+ },
308
319
  server: {
309
320
  port: config.port ?? 5173,
310
321
  fs: { allow: [
@@ -1,4 +1,4 @@
1
- import { createViteConfig } from "./config-Dk8ASJ8X.js";
1
+ import { createViteConfig } from "./config-Opp2R1Jf.js";
2
2
  import { createServer } from "vite";
3
3
 
4
4
  //#region src/cli/dev.ts
@@ -1,4 +1,4 @@
1
- import { createViteConfig } from "./config-Dk8ASJ8X.js";
1
+ import { createViteConfig } from "./config-Opp2R1Jf.js";
2
2
  import { preview as preview$1 } from "vite";
3
3
 
4
4
  //#region src/cli/preview.ts
@@ -1,3 +1,3 @@
1
- import { createViteConfig } from "../config-Dk8ASJ8X.js";
1
+ import { createViteConfig } from "../config-Opp2R1Jf.js";
2
2
 
3
3
  export { createViteConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-slide/core",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Runtime and CLI for open-slide — write decks in slides/, we handle the rest.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -143,7 +143,7 @@ export function Deck() {
143
143
  </header>
144
144
 
145
145
  <div className="flex min-h-0 flex-1">
146
- <div className="w-60 shrink-0">
146
+ <div className="w-[17rem] shrink-0">
147
147
  <ThumbnailRail pages={pages} current={index} onSelect={goTo} />
148
148
  </div>
149
149
  <main className="relative min-h-0 min-w-0 flex-1 bg-background p-8">