From 32c3ee39fab8a99f19c51ad5df68a4f31f4e250d Mon Sep 17 00:00:00 2001 From: Michio Date: Thu, 30 Nov 2023 12:30:25 +0800 Subject: [PATCH 1/7] fix: add cjs build and enable terser on main export --- rollup.config.mjs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 168a6444bd..022820278a 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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.js', + format: 'esm', + }, + { + file: 'dist/index.cjs', + format: 'cjs', + }, + ], plugins: [ external(), resolve(), @@ -76,6 +82,7 @@ export default [ declarationDir: './dist/types', }, }), + terser(), ], }, { From f32e1dc56e5ef8a651c3befd3b3ce9baaa74a41a Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 30 Nov 2023 04:34:19 +0000 Subject: [PATCH 2/7] ci: release(version): Release 1.0.14-beta.1 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [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)) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ec8c9ad2d..0bd7c6915c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [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) diff --git a/package-lock.json b/package-lock.json index e78f5dabfa..4a5e6f7f5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@deriv/quill-icons", - "version": "1.0.13", + "version": "1.0.14-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@deriv/quill-icons", - "version": "1.0.13", + "version": "1.0.14-beta.1", "license": "ISC", "devDependencies": { "@babel/core": "^7.19.3", diff --git a/package.json b/package.json index a392df9e1e..d452d0ad65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deriv/quill-icons", - "version": "1.0.13", + "version": "1.0.14-beta.1", "description": "This is the central repository for quill icons, exported from figma design file", "files": [ "dist" From 43204b26762630efe407eb55e5463210c8c51a6a Mon Sep 17 00:00:00 2001 From: Michio Date: Thu, 30 Nov 2023 12:53:49 +0800 Subject: [PATCH 3/7] chore: replaced cjs with mjs as default module type --- rollup.config.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 022820278a..7c048c606b 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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', }, @@ -64,11 +64,11 @@ export default [ input: 'src/index.ts', output: [ { - file: 'dist/index.js', + file: 'dist/index.mjs', format: 'esm', }, { - file: 'dist/index.cjs', + file: 'dist/index.js', format: 'cjs', }, ], From c3aab036b921198ba9246bf98040edc424d520e3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 30 Nov 2023 05:01:06 +0000 Subject: [PATCH 4/7] ci: release(version): Release 1.0.14-beta.2 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [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)) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bd7c6915c..1365020fdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [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) diff --git a/package-lock.json b/package-lock.json index 4a5e6f7f5a..b5122cc817 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@deriv/quill-icons", - "version": "1.0.14-beta.1", + "version": "1.0.14-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@deriv/quill-icons", - "version": "1.0.14-beta.1", + "version": "1.0.14-beta.2", "license": "ISC", "devDependencies": { "@babel/core": "^7.19.3", diff --git a/package.json b/package.json index d452d0ad65..f58a01624b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deriv/quill-icons", - "version": "1.0.14-beta.1", + "version": "1.0.14-beta.2", "description": "This is the central repository for quill icons, exported from figma design file", "files": [ "dist" From 5e746a06c56547eb1073f7154e1c506eab03c6cf Mon Sep 17 00:00:00 2001 From: Michio Date: Thu, 30 Nov 2023 13:34:56 +0800 Subject: [PATCH 5/7] chore: added package.json to exports --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d452d0ad65..b9f33706e1 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,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", From 9aaca4a591145b518cb37c619e85a9c17f066a26 Mon Sep 17 00:00:00 2001 From: Michio Date: Thu, 30 Nov 2023 14:24:54 +0800 Subject: [PATCH 6/7] chore: updated main export field in package.json --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index b9f33706e1..88b691ecd9 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,8 @@ "files": [ "dist" ], + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", From 0473a9f19e7febf0948c0017df7153f136d3d037 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 30 Nov 2023 06:31:09 +0000 Subject: [PATCH 7/7] ci: release(version): Release 1.0.14-beta.3 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [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)) --- CHANGELOG.md | 8 ++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1365020fdd..137fcf9f4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [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) diff --git a/package-lock.json b/package-lock.json index b5122cc817..52d599783d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@deriv/quill-icons", - "version": "1.0.14-beta.2", + "version": "1.0.14-beta.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@deriv/quill-icons", - "version": "1.0.14-beta.2", + "version": "1.0.14-beta.3", "license": "ISC", "devDependencies": { "@babel/core": "^7.19.3", diff --git a/package.json b/package.json index 5981b3b716..f7d4f40a93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deriv/quill-icons", - "version": "1.0.14-beta.2", + "version": "1.0.14-beta.3", "description": "This is the central repository for quill icons, exported from figma design file", "files": [ "dist"