Skip to content

Commit

Permalink
fix: make sure to patch both js and ts files in auspice
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Nov 20, 2024
1 parent 1294e1b commit 0b7468b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextclade-web/tools/monkeyPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function replace(filename: string, searchValue: string | RegExp, re
export async function removeAuspiceTimers() {
await fs.rm('node_modules/auspice/src/util/perf.js', { force: true })

const files = await promisify(glob)('node_modules/auspice/src/**/*.js')
const files = await promisify(glob)('node_modules/auspice/src/**/*.{js,ts}')

await serial.forEach(async (file) => {
await replace(file, /.*(timerStart|timerEnd)\(".+"\);.*\n/g, '')
Expand Down

0 comments on commit 0b7468b

Please sign in to comment.