Skip to content

Commit

Permalink
remove cjs build uses umd everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
0xgreenapple committed Mar 31, 2024
1 parent 0e503ef commit 2f6a0d9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@ A simple, fun project for the sake of creating some cool-looking abstract shapes

### Table of Contents

- [Installation](#installation)
- [How to use](#how-to-use)
- [Global Component](#how-to-use)
- [Using Shape Category](#component-with-shape-category-example)
- [Random functions](#using-random-shape-function)
- [Other Methods](#other-method)
- [Props](#props)
- [Categories](#categories)
- [Figma File](#figma-file)
- [Contributing](#contributing)
- [License](https://github.com/realvjy/coolshapes-react?tab=MIT-1-ov-file)
- [Credits](#credits)
- [Coolshapes](#coolshapes)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [How to use](#how-to-use)
- [Global component example](#global-component-example)
- [Component with shape category example](#component-with-shape-category-example)
- [Generating random shapes](#generating-random-shapes)
- [Using random shape function](#using-random-shape-function)
- [Other Methods](#other-methods)
- [Renders the shapes from all catagories](#renders-the-shapes-from-all-catagories)
- [syntax](#syntax)
- [Props](#props)
- [Categories](#categories)
- [Others](#others)
- [cjs](#cjs)
- [Figma File](#figma-file)
- [Contributing](#contributing)
- [Support \& Donation](#support--donation)

## Installation

Expand Down Expand Up @@ -182,7 +188,7 @@ There are a total of **115** shapes available in Coolshapes under the following

### Others

There are `cjs`, `umd` and `es` included in bundled version of the module,
There are `umd` and `es` included in bundled version of the module,

#### cjs

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "coolshapes-react",
"version": "0.0.8-alpha.0",
"version": "0.0.8-alpha.1",
"description": "A react component library for coolshapes",
"keywords": [
"coolshapes",
"shapes",
"abstract"
],
"main": "dist/cjs/coolshapes.js",
"main": "dist/umd/coolshapes.js",
"main:umd": "dist/umd/coolshapes.js",
"module": "dist/esm/coolshapes.js",
"unpkg": "dist/umd/coolshapes.js",
Expand Down
5 changes: 0 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ export default [
{
input: inputFile,
output: [
{
file: pkg.main,
format: "cjs",
sourcemap: true,
},
{
file: pkg.module,
format: "esm",
Expand Down

0 comments on commit 2f6a0d9

Please sign in to comment.