Skip to content

Commit

Permalink
chore: migration for glob v9
Browse files Browse the repository at this point in the history
  • Loading branch information
mkobayashime committed Nov 3, 2023
1 parent a9781b6 commit 63506f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import chalk from "chalk"
import chokidar from "chokidar"
import clipboard from "clipboardy"
import { writeFile, mkdir } from "fs/promises"
import glob from "glob"
import { globSync } from "glob"
import path from "path"

import { compile } from "./compile"
Expand Down Expand Up @@ -51,7 +51,7 @@ const dev = ({ inputsGlob, distDir }: BuildProps) => {

const build = async ({ inputsGlob, distDir }: BuildProps) => {
try {
const files = glob.sync(inputsGlob)
const files = globSync(inputsGlob)
for (const filepath of files) {
try {
const { prod } = await compile(filepath)
Expand Down

0 comments on commit 63506f4

Please sign in to comment.