diff --git a/build/packages/config.js b/build/packages/config.js index 49ed49e7a..c3100f263 100644 --- a/build/packages/config.js +++ b/build/packages/config.js @@ -41,7 +41,7 @@ function genConfig(opts) { file: opts.file, format: opts.format, banner, - name: 'tiptap', + name: opts.outputName, }, } @@ -57,23 +57,28 @@ function genConfig(opts) { export default [ { package: 'tiptap', + outputName: 'tiptap', outputFileName: 'tiptap', }, { package: 'tiptap-commands', + outputName: 'tiptapCommands', outputFileName: 'commands', }, { package: 'tiptap-utils', + outputName: 'tiptapUtils', outputFileName: 'utils', }, { package: 'tiptap-extensions', + outputName: 'tiptapExtensions', outputFileName: 'extensions', }, ].map(item => [ { name: item.package, + outputName: item.outputName, package: resolve(`packages/${item.package}/package.json`), input: resolve(`packages/${item.package}/src/index.js`), file: resolve(`packages/${item.package}/dist/${item.outputFileName}.js`), @@ -82,6 +87,7 @@ export default [ }, { name: item.package, + outputName: item.outputName, package: resolve(`packages/${item.package}/package.json`), input: resolve(`packages/${item.package}/src/index.js`), file: resolve(`packages/${item.package}/dist/${item.outputFileName}.min.js`), @@ -90,6 +96,7 @@ export default [ }, { name: item.package, + outputName: item.outputName, package: resolve(`packages/${item.package}/package.json`), input: resolve(`packages/${item.package}/src/index.js`), file: resolve(`packages/${item.package}/dist/${item.outputFileName}.common.js`), @@ -97,6 +104,7 @@ export default [ }, { name: item.package, + outputName: item.outputName, package: resolve(`packages/${item.package}/package.json`), input: resolve(`packages/${item.package}/src/index.js`), file: resolve(`packages/${item.package}/dist/${item.outputFileName}.esm.js`),