From d0fc40413943cc70c19a4d27964a93d3fc3ba6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 30 Apr 2019 18:35:33 +0200 Subject: [PATCH] fix output names --- build/packages/config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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`),