File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import path from "node:path";
3
3
import postcss from "postcss" ;
4
4
import prettier from "prettier" ;
5
5
import { describe , it , expect } from "vitest" ;
6
- import { plugin , type ConfigItem } from "./index.js" ;
6
+ import { plugin , type PluginOptions } from "./index.js" ;
7
7
8
8
// We don't care about formatting differences, so normalize with prettier
9
9
function format ( css : string ) {
@@ -13,7 +13,7 @@ function format(css: string) {
13
13
async function run (
14
14
input : string ,
15
15
output : string ,
16
- opts ?: ConfigItem [ ] ,
16
+ opts ?: PluginOptions ,
17
17
postcssOpts = { }
18
18
) {
19
19
const result = await postcss ( [ plugin ( opts ) ] ) . process ( input , postcssOpts ) ;
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import type { PluginCreator } from "postcss";
4
4
const DEFAULT_INCLUDE = "**/*.module.css" ;
5
5
const DEFAULT_LAYERNAME = "components" ;
6
6
7
- export type ConfigItem = {
7
+ type ConfigItem = {
8
8
include ?: string ;
9
9
layerName ?: string ;
10
10
} ;
11
- type PluginOptions = ConfigItem [ ] ;
11
+ export type PluginOptions = ConfigItem [ ] ;
12
12
13
13
export const plugin : PluginCreator < PluginOptions > = (
14
14
configItems = [
You can’t perform that action at this time.
0 commit comments