* Cleans the build output assets from the packages folders
()
| 7 | * Cleans the build output assets from the packages folders |
| 8 | */ |
| 9 | function cleanOutput() { |
| 10 | return src( |
| 11 | [ |
| 12 | `${source}/**/*.js`, |
| 13 | `${source}/**/*.d.ts`, |
| 14 | `${source}/**/*.js.map`, |
| 15 | `${source}/**/*.d.ts.map`, |
| 16 | ], |
| 17 | { |
| 18 | read: false, |
| 19 | }, |
| 20 | ).pipe(clean()); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Cleans empty dirs |