From 72fc302a5524dfb6b3e9394b31329c9df7fcc832 Mon Sep 17 00:00:00 2001 From: Jannis Morgenstern Date: Tue, 27 Feb 2024 13:06:11 +0100 Subject: [PATCH] fix: use entry instead of kind --- packages/css2tailwind/src/build.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/css2tailwind/src/build.ts b/packages/css2tailwind/src/build.ts index 4fe6c54..d275c8b 100644 --- a/packages/css2tailwind/src/build.ts +++ b/packages/css2tailwind/src/build.ts @@ -4,7 +4,6 @@ import * as path from 'node:path'; import type { CssInJs } from 'postcss-js'; import { compileStyleSheet } from './compiler'; -import type { Kind } from './util'; export async function readStyles(dir: string): Promise { const entries = await fsp.readdir(dir); @@ -21,7 +20,7 @@ export async function parseStyles(dir: string): Promise { }, {}); } -export async function writeStyles(dir: string, kind: Kind, style: CssInJs) { +export async function writeStyles(dir: string, entry: string, style: CssInJs) { await fsp.mkdir(dir, { recursive: true }); - return fsp.writeFile(path.join(dir, `${kind}.json`), JSON.stringify(style)); + return fsp.writeFile(path.join(dir, `${entry}.json`), JSON.stringify(style)); }