Skip to content

Commit

Permalink
fix(rollup): use lowercase for file name
Browse files Browse the repository at this point in the history
use "uselazy" for main, unpkg and module properties on package.json
  • Loading branch information
aneurysmjs committed Oct 28, 2019
1 parent 733735f commit 07764c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"lazy hook",
"react lazy hook"
],
"main": "dist/useLazy.js",
"unpkg": "dist/useLazy.js",
"module": "es/useLazy.js",
"main": "dist/uselazy.js",
"unpkg": "dist/uselazy.js",
"module": "es/uselazy.js",
"files": [
"dist",
"lib",
Expand Down
12 changes: 8 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export default [
// ES
{
input: 'src/index.tsx',
output: { file: 'es/useLazy.js', format: 'es', indent: false },
output: {
file: 'es/uselazy.js',
format: 'es',
indent: false
},
external,
plugins: [
commonjs({
Expand All @@ -31,7 +35,7 @@ export default [
// ES for Browsers
{
input: 'src/index.tsx',
output: { file: 'es/useLazy.mjs', format: 'es', indent: false },
output: { file: 'es/uselazy.mjs', format: 'es', indent: false },
external,
plugins: [
commonjs({
Expand Down Expand Up @@ -60,7 +64,7 @@ export default [
{
input: 'src/index.tsx',
output: {
file: 'dist/useLazy.js',
file: 'dist/uselazy.js',
format: 'umd',
name: 'useLazy',
indent: false,
Expand Down Expand Up @@ -89,7 +93,7 @@ export default [
{
input: 'src/index.tsx',
output: {
file: 'dist/useLazy.min.js',
file: 'dist/uselazy.min.js',
format: 'umd',
name: 'useLazy',
indent: false,
Expand Down

0 comments on commit 07764c4

Please sign in to comment.