chore: format packages/scripts folder (#19611)

Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2025-05-12 17:12:17 -07:00
committed by GitHub
parent efdeac0a85
commit 3f360b0682
71 changed files with 350 additions and 294 deletions

View File

@@ -1,4 +1,4 @@
import { describe, it, expect } from "bun:test";
import { describe, expect, it } from "bun:test";
import { SveltePlugin } from "./index";
describe("SveltePlugin", () => {

View File

@@ -1,12 +1,12 @@
import type { BunPlugin, BuildConfig, OnLoadResult } from "bun";
import type { BuildConfig, BunPlugin, OnLoadResult } from "bun";
import { basename } from "node:path";
import { compile, compileModule } from "svelte/compiler";
import {
getBaseCompileOptions,
getBaseModuleCompileOptions,
hash,
validateOptions,
type SvelteOptions,
hash,
getBaseModuleCompileOptions,
} from "./options";
const kEmptyObject = Object.create(null);

View File

@@ -1,5 +1,5 @@
import { describe, beforeAll, it, expect } from "bun:test";
import type { BuildConfig } from "bun";
import { beforeAll, describe, expect, it } from "bun:test";
import type { CompileOptions } from "svelte/compiler";
import { getBaseCompileOptions, validateOptions, type SvelteOptions } from "./options";

View File

@@ -1,5 +1,5 @@
import { strict as assert } from "node:assert";
import { type BuildConfig } from "bun";
import { strict as assert } from "node:assert";
import type { CompileOptions, ModuleCompileOptions } from "svelte/compiler";
type OverrideCompileOptions = Pick<CompileOptions, "customElement" | "runes" | "modernAst" | "namespace">;

View File

@@ -1,10 +1,10 @@
import { describe, beforeAll, it, expect, afterEach, afterAll } from "bun:test";
import path from "node:path";
import type { BuildOutput } from "bun";
import { afterAll, afterEach, beforeAll, describe, expect, it } from "bun:test";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { render } from "svelte/server";
import { SveltePlugin } from "../src";
import type { BuildOutput } from "bun";
const fixturePath = (...segs: string[]) => path.join(import.meta.dirname, "fixtures", ...segs);