1
0
mirror of synced 2025-12-22 11:26:57 -05:00

Reorg LICENSE files to be more discoverable (#204)

* Reorg LICENSE files to be more discoverable

* add missing )
This commit is contained in:
Jeff McAffer
2020-10-07 15:11:49 -07:00
committed by GitHub
parent be3a96561b
commit 6da14f22d5
6 changed files with 407 additions and 407 deletions

View File

@@ -10,7 +10,7 @@ const dirsToProcess = ['content', 'translations']
const allFiles = flatten(dirsToProcess.map(dir => {
return walk(path.join(process.cwd(), dir), { includeBasePath: true, directories: false })
.filter(file => !file.endsWith('README.md'))
.filter(file => !file.endsWith('LICENSE'))
.filter(file => !(file.endsWith('LICENSE') || file.endsWith('LICENSE-CODE')))
// we only want to process frontmatter in content files in translations, so skip data files
// this is very brittle but works well enough for this script
// (note data files are updated in script/new-versioning/update-content.js)