fix output names

This commit is contained in:
Philipp Kühn 2019-04-30 18:35:33 +02:00
parent 7128dd7bf3
commit d0fc404139

View File

@ -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`),