mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
fix output names
This commit is contained in:
parent
7128dd7bf3
commit
d0fc404139
@ -41,7 +41,7 @@ function genConfig(opts) {
|
|||||||
file: opts.file,
|
file: opts.file,
|
||||||
format: opts.format,
|
format: opts.format,
|
||||||
banner,
|
banner,
|
||||||
name: 'tiptap',
|
name: opts.outputName,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,23 +57,28 @@ function genConfig(opts) {
|
|||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
package: 'tiptap',
|
package: 'tiptap',
|
||||||
|
outputName: 'tiptap',
|
||||||
outputFileName: 'tiptap',
|
outputFileName: 'tiptap',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
package: 'tiptap-commands',
|
package: 'tiptap-commands',
|
||||||
|
outputName: 'tiptapCommands',
|
||||||
outputFileName: 'commands',
|
outputFileName: 'commands',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
package: 'tiptap-utils',
|
package: 'tiptap-utils',
|
||||||
|
outputName: 'tiptapUtils',
|
||||||
outputFileName: 'utils',
|
outputFileName: 'utils',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
package: 'tiptap-extensions',
|
package: 'tiptap-extensions',
|
||||||
|
outputName: 'tiptapExtensions',
|
||||||
outputFileName: 'extensions',
|
outputFileName: 'extensions',
|
||||||
},
|
},
|
||||||
].map(item => [
|
].map(item => [
|
||||||
{
|
{
|
||||||
name: item.package,
|
name: item.package,
|
||||||
|
outputName: item.outputName,
|
||||||
package: resolve(`packages/${item.package}/package.json`),
|
package: resolve(`packages/${item.package}/package.json`),
|
||||||
input: resolve(`packages/${item.package}/src/index.js`),
|
input: resolve(`packages/${item.package}/src/index.js`),
|
||||||
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.js`),
|
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.js`),
|
||||||
@ -82,6 +87,7 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: item.package,
|
name: item.package,
|
||||||
|
outputName: item.outputName,
|
||||||
package: resolve(`packages/${item.package}/package.json`),
|
package: resolve(`packages/${item.package}/package.json`),
|
||||||
input: resolve(`packages/${item.package}/src/index.js`),
|
input: resolve(`packages/${item.package}/src/index.js`),
|
||||||
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.min.js`),
|
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.min.js`),
|
||||||
@ -90,6 +96,7 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: item.package,
|
name: item.package,
|
||||||
|
outputName: item.outputName,
|
||||||
package: resolve(`packages/${item.package}/package.json`),
|
package: resolve(`packages/${item.package}/package.json`),
|
||||||
input: resolve(`packages/${item.package}/src/index.js`),
|
input: resolve(`packages/${item.package}/src/index.js`),
|
||||||
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.common.js`),
|
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.common.js`),
|
||||||
@ -97,6 +104,7 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: item.package,
|
name: item.package,
|
||||||
|
outputName: item.outputName,
|
||||||
package: resolve(`packages/${item.package}/package.json`),
|
package: resolve(`packages/${item.package}/package.json`),
|
||||||
input: resolve(`packages/${item.package}/src/index.js`),
|
input: resolve(`packages/${item.package}/src/index.js`),
|
||||||
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.esm.js`),
|
file: resolve(`packages/${item.package}/dist/${item.outputFileName}.esm.js`),
|
||||||
|
Loading…
Reference in New Issue
Block a user