mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 10:39:18 +08:00
fix output names
This commit is contained in:
parent
7128dd7bf3
commit
d0fc404139
@ -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`),
|
||||
|
Loading…
Reference in New Issue
Block a user