Skip to content

Commit 0c486ae

Browse files
committed
Build v6.0.0
1 parent f4ae534 commit 0c486ae

File tree

9 files changed

+16
-18
lines changed

9 files changed

+16
-18
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
{
3434
"devDependencies": [
3535
"stories/**/*",
36-
"**/*.spec.js"
36+
"**/*.spec.js",
37+
"rollup.config.js"
3738
]
3839
}
3940
]

build/banner.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/esm/pushin.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/pushin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/pushin.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/pushin.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/pushin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"cross-env": "cross-env",
2424
"lint-staged": "lint-staged",
2525
"lint": "eslint --cache src/*.ts",
26-
"build": "rollup -c",
27-
"start": "rollup -cw",
26+
"build": "rollup -c --bundleConfigAsCjs",
27+
"start": "rollup -cw --bundleConfigAsCjs",
2828
"test:watch": "jest --watch",
2929
"coverage": "jest --coverage && open coverage/lcov-report/index.html -a 'Google Chrome'",
3030
"test": "jest --run-in-band",

rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import getBabelOutputPlugin from '@rollup/plugin-babel';
55
import CleanCSS from 'clean-css';
66

77
// eslint-disable-next-line @typescript-eslint/no-var-requires
8-
const banner = require('./build/banner');
8+
const { version, author, license } = require('./package.json');
9+
10+
const banner = `Pushin.js - v${version}\nAuthor: ${author}\nLicense: ${license}`;
911

1012
function createConfig(format) {
1113
return {

0 commit comments

Comments
 (0)