mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
On windows rimraf requires since v4 the glob flag to support wildcards in path. fixes #49806 PR Close #50493
10 lines
280 B
JavaScript
10 lines
280 B
JavaScript
const {rimrafSync} = require('rimraf');
|
|
module.exports = function cleanGeneratedFiles() {
|
|
return {
|
|
$runAfter: ['writing-files'],
|
|
$runBefore: ['writeFilesProcessor'],
|
|
$process: function() {
|
|
rimrafSync('src/generated/{docs,*.json}', {glob: true});
|
|
}
|
|
};
|
|
};
|