Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"dev": "vite",
"build": "vite build && pwsh post-build.ps1 && publint",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json --noEmit",
"test": "vitest",
"test:ci": "npx playwright install chromium && vitest"
},
Expand All @@ -75,7 +75,7 @@
"@collagejs/importmap": "^0.2.0",
"@collagejs/svelte": "0.x || 1.x",
"@collagejs/vite-css": "0.x || 1.x",
"lucide-svelte": "^0.562.0",
"@lucide/svelte": "^1.24.0",
"p-retry": "^8.0.0",
"svelte-persisted-state": "^1.2.0",
"svelte-toggle": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Dialog.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { type Snippet } from "svelte";
import type { HTMLDialogAttributes } from "svelte/elements";
import { X } from "lucide-svelte";
import { X } from "@lucide/svelte";
import Button from "./Button.svelte";
import logo64 from "@collagejs/core/logo/64";
import { effectiveTheme } from "./state/effectiveTheme.svelte.js";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/IconButton.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Button from './Button.svelte';
import type { ComponentProps } from 'svelte';
import type { Icon as LucideIcon } from 'lucide-svelte';
import type { Icon as LucideIcon } from '@lucide/svelte';

type Props = ComponentProps<typeof Button> & {
icon: typeof LucideIcon;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Imo/CurrentImportMap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Delete,
Pencil,
X,
} from "lucide-svelte";
} from "@lucide/svelte";
import IconButton from "../IconButton.svelte";
import Table from "../Table.svelte";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Imo/DevServers.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Delete } from 'lucide-svelte';
import { Delete } from '@lucide/svelte';
import type { ViteServerInfo } from '../../private-types.js';
import Table from '../Table.svelte';
import { viteDevServers } from '../state/videDevServers.js';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Imo/ImoDialog.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Bookmark, BookOpenText, BookOpenTextIcon, PcCase, RefreshCcw } from 'lucide-svelte';
import { Bookmark, BookOpenText, PcCase, RefreshCcw } from '@lucide/svelte';
import Dialog from '../Dialog.svelte';
import Tabs from '../Tabs/Tabs.svelte';
import TabPanel from '../Tabs/TabPanel.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Options/OptionsButton.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { ComponentProps } from 'svelte';
import IconButton from '../IconButton.svelte';
import { Settings } from 'lucide-svelte';
import { Settings } from '@lucide/svelte';
import OptionsDialog from './OptionsDialog.svelte';

let {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Options/OptionsDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
MoveUpRight,
Settings,
SunIcon,
} from 'lucide-svelte';
} from '@lucide/svelte';
import Dialog from '../Dialog.svelte';
import { imoUiOptions } from '../state/imoUiOptions';
import Button from '../Button.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Positioner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ArrowUpRight,
ArrowDownLeft,
ArrowDownRight,
} from 'lucide-svelte';
} from '@lucide/svelte';
import type { Position } from '../types.js';
import { imoUiOptions } from './state/imoUiOptions';
import type { HTMLAttributes } from 'svelte/elements';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/logs/LogButton.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { ComponentProps } from 'svelte';
import IconButton from '../IconButton.svelte';
import { Newspaper } from 'lucide-svelte';
import { Newspaper } from '@lucide/svelte';
import LogDialog from './LogDialog.svelte';

let { ...restProps }: Omit<ComponentProps<typeof IconButton>, 'icon'> = $props();
Expand Down
4 changes: 2 additions & 2 deletions src/lib/logs/LogDialog.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Newspaper, ChevronLeft, ChevronRight, RefreshCcw } from 'lucide-svelte';
import { Newspaper, ChevronLeft, ChevronRight } from '@lucide/svelte';
import Button from '../Button.svelte';
import Dialog from '../Dialog.svelte';
import type { ImoLogEntry } from '../../private-types.js';
Expand Down Expand Up @@ -65,7 +65,7 @@
</div>
{#if imoLogs.current.length}
<p class="log-summary">
Excecution Start: <span>
Execution Start: <span>
{new Date(logSet[0].timestamp).toLocaleString()}
</span>
({logSet.length} log entr{logSet.length === 1 ? 'y' : 'ies'})
Expand Down
9 changes: 4 additions & 5 deletions vite-iife.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { build, createLogger, type ConfigEnv, type LogLevel, type Plugin } from "vite";
import type { RollupOutput } from "rollup";
import type { RolldownOutput } from "rolldown";

export type ViteIifeOptions = {
entryPoints: string | string[];
Expand All @@ -15,7 +15,6 @@ function log(level: LogLevel, message: string) {
}

let result: Awaited<ReturnType<typeof build>>;
// let avoidIifeEmission = false;
let viteEnv: ConfigEnv;

export function viteIife(options: ViteIifeOptions): Plugin {
Expand Down Expand Up @@ -43,7 +42,7 @@ export function viteIife(options: ViteIifeOptions): Plugin {
write: false,
},
});
const emitChunks = (output: RollupOutput) => {
const emitChunks = (output: RolldownOutput) => {
for (const chunkOrAsset of Object.values(output.output)) {
if (chunkOrAsset.type === 'asset') {
this.emitFile({
Expand All @@ -69,8 +68,8 @@ export function viteIife(options: ViteIifeOptions): Plugin {
}
}
else if ((result as any).output) {
emitChunks(result as RollupOutput);
emitChunks(result as RolldownOutput);
}
},
};
}
}
Loading