Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
fix: write new config file always
Browse files Browse the repository at this point in the history
  • Loading branch information
talamcol committed Feb 1, 2022
1 parent 556a12c commit a16e0dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ export default function check(args) {
})
const configFile = path.join(buildDir, "next-page-bundlesize.config.json")
fs.writeFileSync(configFile, JSON.stringify(config, null, 2))
writeNewConfigFile(config, delta, maxSize, buildDir)

execSync(`npx bundlesize --config=${configFile}`, { stdio: "inherit" })

writeNewConfigFile(config, delta, maxSize, buildDir)
} catch (err) {
// eslint-disable-next-line no-console
console.log(err)
Expand Down

0 comments on commit a16e0dc

Please sign in to comment.