generate a NodeJS dist, bump to 0.1.2
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d65b6f66dc
commit
a4073c6c85
|
@ -1,7 +1,7 @@
|
|||
|
||||
/**
|
||||
* Name: js-status-chat-name
|
||||
* Version: 0.1.1
|
||||
* Version: 0.1.2
|
||||
* Author: Jakub Sokołowski <jakub@status.im>
|
||||
* Source: https://github.com/status-im/js-status-chat-name
|
||||
* License: MIT
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "js-status-chat-name",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "JS Library for generating Status chat names from keys.",
|
||||
"main": "index.js",
|
||||
"main": "dist/status-chat-name.node.js",
|
||||
"repository": "https://github.com/status-im/js-status-chat-name",
|
||||
"author": "Jakub Sokołowski <jakub@status.im>",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -16,20 +16,24 @@ const banner = `
|
|||
export default {
|
||||
input: 'src/main.js',
|
||||
output: [
|
||||
{
|
||||
{ /* NodeJS */
|
||||
name: name,
|
||||
banner: banner,
|
||||
file: 'dist/status-chat-name.node.js',
|
||||
format: 'cjs',
|
||||
},
|
||||
{ /* Browser */
|
||||
name: name,
|
||||
banner: banner,
|
||||
file: 'dist/status-chat-name.js',
|
||||
format: 'iife',
|
||||
},
|
||||
{
|
||||
{ /* Browser Minified */
|
||||
name: name,
|
||||
banner: `/* Meta: ${pkg.name} ${pkg.version} */`,
|
||||
file: 'dist/status-chat-name.min.js',
|
||||
format: 'iife',
|
||||
plugins: [
|
||||
terser({output: {comments: /Meta:/}})
|
||||
]
|
||||
plugins: [ terser({output: {comments: /Meta:/}}) ]
|
||||
}
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue