angular/aio/tools/transforms/angular.io-package/processors/cleanGeneratedFiles.js
Matthieu Riegler 1ca6362c06 docs(docs-infra): rimraf requires the globflag. (#50493)
On windows rimraf requires since v4 the glob flag to support wildcards in path.

fixes #49806

PR Close #50493
2023-05-30 12:58:52 -07:00

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});
}
};
};