Skip to content

Commit a56504b

Browse files
committed
Include readmes and licenses in vendored deps
1 parent 65d3d68 commit a56504b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.config/rollup.dist.config.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,14 @@ async function copyExternalPackages() {
115115
`${blessedContribPath}/${LICENSE_MD}`,
116116
),
117117
])
118+
119+
const alwaysIgnoredPatterns = ['LICENSE*', 'README*']
120+
118121
// Cleanup package files.
119122
await Promise.all(
120123
[
121-
[blessedPath, ['lib/**/*.js', 'usr/**/**', 'vendor/**/*.js', 'LICENSE*']],
122-
[blessedContribPath, ['lib/**/*.js', 'index.js', 'LICENSE*']],
124+
[blessedPath, ['lib/**/*.js', 'usr/**/**', 'vendor/**/*.js']],
125+
[blessedContribPath, ['lib/**/*.js', 'index.js']],
123126
[coanaPath, ['**/*.mjs', 'repos/**/*']],
124127
[
125128
socketRegistryPath,
@@ -129,11 +132,12 @@ async function copyExternalPackages() {
129132
'index.js',
130133
'extensions.json',
131134
'manifest.json',
132-
'LICENSE*',
133135
],
134136
],
135137
].map(async ({ 0: thePath, 1: ignorePatterns }) => {
136-
await removeFiles(thePath, { exclude: ignorePatterns })
138+
await removeFiles(thePath, {
139+
exclude: [...alwaysIgnoredPatterns, ...ignorePatterns],
140+
})
137141
await removeEmptyDirs(thePath)
138142
}),
139143
)

0 commit comments

Comments
 (0)