Skip to content

Commit

Permalink
Add a hebcal__core alias for hebcal for backwards compatibility (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Dec 27, 2020
1 parent 8173517 commit dd8b37b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/core",
"version": "2.11.0",
"version": "2.12.0",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"contributors": [
"Eyal Schachter (https://github.com/Scimonster)",
Expand Down
18 changes: 16 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,22 @@ export default [
{
input: 'src/index.js',
output: [
{file: pkg.browser, format: 'iife', name: 'hebcal', indent: false},
{file: 'dist/bundle.min.js', format: 'iife', name: 'hebcal', plugins: [terser()]},
{
file: pkg.browser,
format: 'iife',
name: 'hebcal',
indent: false,
banner: '/*! ' + pkg.name + ' v' + pkg.version + ' */',
footer: 'var hebcal__core = hebcal;',
},
{
file: 'dist/bundle.min.js',
format: 'iife',
name: 'hebcal',
plugins: [terser()],
banner: '/*! ' + pkg.name + ' v' + pkg.version + ' */',
footer: 'var hebcal__core = hebcal;',
},
],
plugins: [
json({compact: true}),
Expand Down

0 comments on commit dd8b37b

Please sign in to comment.