Skip to content

Commit

Permalink
Merge pull request #11 from deriv-com/beta
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-deriv authored Nov 30, 2023
2 parents 1a911ea + 0473a9f commit 55ad0e6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## [1.0.14-beta.3](https://github.com/deriv-com/quill-icons/compare/v1.0.14-beta.2...v1.0.14-beta.3) (2023-11-30)


### ♻️ Chores

* added package.json to exports ([5e746a0](https://github.com/deriv-com/quill-icons/commit/5e746a06c56547eb1073f7154e1c506eab03c6cf))
* updated main export field in package.json ([9aaca4a](https://github.com/deriv-com/quill-icons/commit/9aaca4a591145b518cb37c619e85a9c17f066a26))

## [1.0.14-beta.2](https://github.com/deriv-com/quill-icons/compare/v1.0.14-beta.1...v1.0.14-beta.2) (2023-11-30)


### ♻️ Chores

* replaced cjs with mjs as default module type ([43204b2](https://github.com/deriv-com/quill-icons/commit/43204b26762630efe407eb55e5463210c8c51a6a))

## [1.0.14-beta.1](https://github.com/deriv-com/quill-icons/compare/v1.0.13...v1.0.14-beta.1) (2023-11-30)


### 🐛 Bug Fixes

* add cjs build and enable terser on main export ([32c3ee3](https://github.com/deriv-com/quill-icons/commit/32c3ee39fab8a99f19c51ad5df68a4f31f4e250d))

## [1.0.13](https://github.com/deriv-com/quill-icons/compare/v1.0.12...v1.0.13) (2023-11-30)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "@deriv/quill-icons",
"version": "1.0.13",
"version": "1.0.14-beta.3",
"description": "This is the central repository for quill icons, exported from figma design file",
"files": [
"dist"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
Expand Down Expand Up @@ -55,7 +57,8 @@
"import": "./dist/Illustration/index.js",
"require": "./dist/Illustration/index.cjs",
"types": "./dist/Illustration/index.d.ts"
}
},
"./package.json": "./package.json"
},
"scripts": {
"clean": "rimraf stories src/es6 src/react src/index.ts svg storybook-static sprite",
Expand Down
19 changes: 13 additions & 6 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ function component(commonPlugins, folder) {
input: `src/react/${folder}/index.ts`,
output: [
{
file: `dist/${folder}/index.js`,
file: `dist/${folder}/index.mjs`,
exports: 'named',
format: 'esm',
},
{
file: `dist/${folder}/index.cjs`,
file: `dist/${folder}/index.js`,
exports: 'named',
format: 'cjs',
},
Expand Down Expand Up @@ -62,10 +62,16 @@ const componentsFolders = getComponentsFolders('./src/react');
export default [
{
input: 'src/index.ts',
output: {
file: 'dist/index.js',
format: 'esm',
},
output: [
{
file: 'dist/index.mjs',
format: 'esm',
},
{
file: 'dist/index.js',
format: 'cjs',
},
],
plugins: [
external(),
resolve(),
Expand All @@ -76,6 +82,7 @@ export default [
declarationDir: './dist/types',
},
}),
terser(),
],
},
{
Expand Down

0 comments on commit 55ad0e6

Please sign in to comment.