๐Ÿ“ฆ vuetifyjs / nuxt-module

๐Ÿ“„ .stackblitz.js ยท 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15import { promises as fsPromises } from 'node:fs'

removeParcel('./playground/nuxt.config.ts')

async function removeParcel(filename) {
  try {
    const contents = await fsPromises.readFile(filename, 'utf-8')
    const updatedContent = contents.replace('watcher: \'parcel\'', 'watcher: \'chokidar-granular\'')
    await fsPromises.writeFile(filename, updatedContent)
  }
  catch (err) {
    console.error(err)
  }
}