Skip to content

Commit

Permalink
type: modify ICompileOtion => ICompileOption.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 29, 2023
1 parent 2c949d3 commit f1ceaa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compile.ts
Expand Up @@ -3,7 +3,7 @@ import fs from 'fs-extra';
import { getLessFiles } from './getLessFiles';
import { executeLess, IOutputFile } from './executeLess';

export interface ICompileOtion {
export interface ICompileOption {
out: string;
combine?: string;
rmGlobal?: boolean;
Expand All @@ -20,7 +20,7 @@ export async function getProjectName() {
return projectName
}

export default async function compile(dir: string, option: ICompileOtion) {
export default async function compile(dir: string, option: ICompileOption) {
const { excludeCss, rmGlobal, combine, out, ...otherOpts } = option || {};
const inputDir = path.join(process.cwd(), dir);
try {
Expand Down

0 comments on commit f1ceaa7

Please sign in to comment.