mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
1ca6362c06
On windows rimraf requires since v4 the glob flag to support wildcards in path. fixes #49806 PR Close #50493
11 lines
280 B
JavaScript
11 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});
|
|
}
|
|
};
|
|
};
|