From 49812f0ee0f12e11e08351954f26c757f27c92c3 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Mon, 17 Feb 2025 22:22:28 +0800 Subject: [PATCH] =?UTF-8?q?Ful=E4=BD=AC=E8=AF=B4=E7=9A=84=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + build.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8d3961b..6994e6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +dist node_modules deno.lock \ No newline at end of file diff --git a/build.ts b/build.ts index 3d204e3..4ca388d 100755 --- a/build.ts +++ b/build.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env -S deno run -A --allow-scripts +#!/usr/bin/env -S deno run -A --allow-scripts -q import * as sass from "npm:sass"; import * as yaml from "npm:js-yaml"; @@ -25,6 +25,7 @@ async function buildTheme(themePath: string) { const outputFile = "dist/theme-github.css"; const result = await sass.compileAsync(inputFile, { sourceMap: false, style: "compressed" }); + await Deno.mkdir("dist", { recursive: true }); await Deno.writeTextFile(outputFile, result.css); const fileContent = await Deno.readTextFile(themePath);