Skip to content

Commit

Permalink
⬆️ Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Dec 17, 2019
1 parent b24b5c1 commit 2aa7fa2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
9 changes: 9 additions & 0 deletions examples/qrcode.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* @module QRCode
* @license MIT
* @version 1.0.3
* @author nuintun
* @description A pure JavaScript QRCode encode and decode library.
* @see https://github.com/nuintun/qrcode#readme
*/

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('qrcode', ['exports'], factory) :
Expand Down
12 changes: 12 additions & 0 deletions examples/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@
*/

import del from 'del';
const pkg = require('../package.json');
import resolve from '@rollup/plugin-node-resolve';

const banner = `/**
* @module QRCode
* @license ${pkg.license}
* @version ${pkg.version}
* @author ${pkg.author.name}
* @description ${pkg.description}
* @see ${pkg.homepage}
*/
`;

del.sync(['examples/qrcode.js'], { force: true });

export default {
input: 'esnext/index.js',
output: {
banner,
format: 'umd',
name: 'QRCode',
esModule: false,
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuintun/qrcode",
"version": "1.0.2",
"version": "1.0.3",
"description": "A pure JavaScript QRCode encode and decode library.",
"main": "es5/index.js",
"module": "esnext/index.js",
Expand All @@ -14,7 +14,10 @@
"zxing"
],
"sideEffects": false,
"author": "nuintun",
"author": {
"name": "nuintun",
"email": "nuintun@qq.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/nuintun/qrcode/issues"
Expand Down

0 comments on commit 2aa7fa2

Please sign in to comment.