fix(40590): bundle the readme files of datasources inside app plugins (#44068)

This commit is contained in:
Timur Olzhabayev 2022-01-20 15:13:31 +01:00 committed by GitHub
parent f4a0f21b3c
commit ebbb283d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,8 +97,9 @@ const getCommonPlugins = (options: WebpackConfigurationOptions) => {
new CopyWebpackPlugin(
[
// If src/README.md exists use it; otherwise the root README
{ from: hasREADME ? 'README.md' : '../README.md', to: '.', force: true },
{ from: hasREADME ? 'README.md' : '../README.md', to: '.', force: true, prority: 1 },
{ from: 'plugin.json', to: '.' },
{ from: '**/README.md', to: '[path]README.md', priority: 0 },
{ from: '../LICENSE', to: '.' },
{ from: '../CHANGELOG.md', to: '.', force: true },
{ from: '**/*.json', to: '.' },