Skip to content

Commit

Permalink
🦄 refactor: 统一名称
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuuuuyu committed Jul 26, 2024
1 parent a9fa39c commit 1c9abb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ora from "ora"
import { PluginOptions } from "./types"
import { deleteFolderRecursive, log } from "./utils"

export default function VitePluginClean(options: PluginOptions = {}): Plugin {
export default function VitePluginCleaned(options: PluginOptions = {}): Plugin {
const { folder = "dist", hooks = {} } = options
if (typeof folder !== "string" && !Array.isArray(folder)) {
throw new Error(
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineConfig } from "vite"
import path from "path"
import dts from "vite-plugin-dts"
import vitePluginClean from "./src/index"
import VitePluginCleaned from "./src/index"

import { nodePolyfills } from "vite-plugin-node-polyfills"

export default defineConfig({
plugins: [
vitePluginClean({
VitePluginCleaned({
folder: ["dist", "dist-types"],
}),
dts({
Expand Down

0 comments on commit 1c9abb7

Please sign in to comment.