Skip to content

Commit db38bf4

Browse files
committed
adds cjs bundle back
1 parent 2f6a0d9 commit db38bf4

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ A simple, fun project for the sake of creating some cool-looking abstract shapes
1313
### Table of Contents
1414

1515
- [Coolshapes](#coolshapes)
16-
- [Table of Contents](#table-of-contents)
16+
- [Table of Contents](#table-of-contents)
1717
- [Installation](#installation)
1818
- [How to use](#how-to-use)
19-
- [Global component example](#global-component-example)
20-
- [Component with shape category example](#component-with-shape-category-example)
21-
- [Generating random shapes](#generating-random-shapes)
22-
- [Using random shape function](#using-random-shape-function)
23-
- [Other Methods](#other-methods)
24-
- [Renders the shapes from all catagories](#renders-the-shapes-from-all-catagories)
25-
- [syntax](#syntax)
19+
- [Global component example](#global-component-example)
20+
- [Component with shape category example](#component-with-shape-category-example)
21+
- [Generating random shapes](#generating-random-shapes)
22+
- [Using random shape function](#using-random-shape-function)
23+
- [Other Methods](#other-methods)
24+
- [Renders the shapes from all catagories](#renders-the-shapes-from-all-catagories)
25+
- [syntax](#syntax)
2626
- [Props](#props)
2727
- [Categories](#categories)
2828
- [Others](#others)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "coolshapes-react",
3-
"version": "0.0.8-alpha.1",
3+
"version": "0.0.8-alpha.2",
44
"description": "A react component library for coolshapes",
55
"keywords": [
66
"coolshapes",
77
"shapes",
88
"abstract"
99
],
10-
"main": "dist/umd/coolshapes.js",
10+
"main": "dist/cjs/coolshapes.js",
1111
"main:umd": "dist/umd/coolshapes.js",
1212
"module": "dist/esm/coolshapes.js",
1313
"unpkg": "dist/umd/coolshapes.js",

rollup.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export default [
1111
{
1212
input: inputFile,
1313
output: [
14+
{
15+
file: pkg.main,
16+
format: "cjs",
17+
sourcemap: true,
18+
},
1419
{
1520
file: pkg.module,
1621
format: "esm",

0 commit comments

Comments
 (0)