feat(desktop): add preMake hook to clean temporary files before build
- Implement preMake hook to remove temporary files in the output directory - Enhance build process by ensuring a clean state prior to execution
This commit is contained in:
parent
943ef31085
commit
d05fb12cc6
|
|
@ -245,6 +245,9 @@ const config: ForgeConfig = {
|
|||
},
|
||||
],
|
||||
hooks: {
|
||||
preMake: async () => {
|
||||
await rimraf("out/**/*.tmp")
|
||||
},
|
||||
postMake: async (_config, makeResults) => {
|
||||
const yml: {
|
||||
version?: string
|
||||
|
|
|
|||
Loading…
Reference in New Issue