Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
imanmalekian31 committed Oct 5, 2022
1 parent 5b10779 commit 9059648
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dist
node_modules
1 change: 1 addition & 0 deletions dist/bundle.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/bundle.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"scripts": {
"build": "rollup -c"
},
"main": "src/index.js",
"main": "./dist/bundle.js",
"files": [
"src"
"dist/*"
],
"devDependencies": {
"@babel/core": "^7.19.3",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
<toy-face size="180" rounded="20" toy-number="18" group="1"></toy-face>
<toy-face size="180" rounded="20" toy-number="15" group="1"></toy-face>
</body>
<script src="../dist/bundle.cjs.js"></script>
<script src="../dist/bundle.js"></script>
</html>
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
terser(),
],
output: [
{ file: "dist/bundle.js" },
{ file: "dist/bundle.cjs.js", format: "cjs" },
{ file: "dist/bundle.esm.js", format: "esm" },
],
Expand Down

0 comments on commit 9059648

Please sign in to comment.