From 3d82a8f4329ae1ac0b48ffbe02a7d7cab13fbe8d Mon Sep 17 00:00:00 2001 From: davidicus Date: Tue, 30 Jan 2024 17:08:15 -0500 Subject: [PATCH 1/4] fix: remove config changes that were unnecessary and remove datepicker from exported styles --- package.json | 6 +++--- src/styles.scss | 2 +- vite.config.ts | 18 +++++++----------- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index ef41ba3f..12f403b0 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,14 @@ "name": "@phillips/seldon", "version": "1.9.2", "type": "module", - "main": "./dist/index.mjs", - "module": "./dist/index.mjs", + "main": "./dist/index.js", + "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", - "default": "./dist/index.mjs" + "default": "./dist/index.js" } }, "./dist/": { diff --git a/src/styles.scss b/src/styles.scss index b5907ccb..6035d287 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -5,7 +5,7 @@ @import './typography'; // ⚛️ Components @import 'components/Button/button'; -@import 'components/DatePicker/datePicker'; +// @import 'components/DatePicker/datePicker'; @import 'components/Header/header'; @import 'components/HeroBanner/heroBanner'; @import 'components/Input/input'; diff --git a/vite.config.ts b/vite.config.ts index 00cb08b3..b473eee8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -47,15 +47,18 @@ export default defineConfig({ }, ], }, + + optimizeDeps: { + include: ["classnames"], + }, build: { minify: true, reportCompressedSize: true, lib: { // Could also be a dictionary or array of multiple entry points - entry: ['index.ts'], + entry: ['src/index.ts'], name: 'seldon', }, - rollupOptions: { input: 'src/index.ts', output: [ @@ -64,16 +67,9 @@ export default defineConfig({ format: 'es', preserveModules: true, preserveModulesRoot: 'src', - chunkFileNames: '[name].mjs', - entryFileNames: '[name].mjs', + chunkFileNames: '[name].js', + entryFileNames: '[name].js', }, - // { - // dir: 'dist', - // format: 'cjs', - // preserveModulesRoot: 'src', - // chunkFileNames: '[name].cjs', - // entryFileNames: '[name].cjs', - // }, ], // make sure to externalize deps that shouldn't be bundled // into your library From e54192f022982ef7430ff2cfc57d6738d27c933d Mon Sep 17 00:00:00 2001 From: davidicus Date: Tue, 30 Jan 2024 17:08:44 -0500 Subject: [PATCH 2/4] chore: formatting --- CHANGELOG.md | 6 ++---- vite.config.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b7bd7be..d9cf7589 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,14 @@ ## [1.9.2](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.1...v1.9.2) (2024-01-21) - ### Bug Fixes -* still troublshooting build ([486dfc7](https://github.com/PhillipsAuctionHouse/seldon/commit/486dfc7c6baa228dc56eb158c1e89459485fd57a)) +- still troublshooting build ([486dfc7](https://github.com/PhillipsAuctionHouse/seldon/commit/486dfc7c6baa228dc56eb158c1e89459485fd57a)) ## [1.9.1](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.0...v1.9.1) (2024-01-20) - ### Bug Fixes -* tweak build settings to stop bundling classnames ([c26106c](https://github.com/PhillipsAuctionHouse/seldon/commit/c26106cd74a3aab4e3e09bb72611f34fc84ed20f)) +- tweak build settings to stop bundling classnames ([c26106c](https://github.com/PhillipsAuctionHouse/seldon/commit/c26106cd74a3aab4e3e09bb72611f34fc84ed20f)) # [1.9.0](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.8.0...v1.9.0) (2024-01-19) diff --git a/vite.config.ts b/vite.config.ts index b473eee8..dda4f42b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -49,7 +49,7 @@ export default defineConfig({ }, optimizeDeps: { - include: ["classnames"], + include: ['classnames'], }, build: { minify: true, From e2c876fdd39413688251bb20bb676d6e368be2e1 Mon Sep 17 00:00:00 2001 From: davidicus Date: Tue, 30 Jan 2024 17:19:09 -0500 Subject: [PATCH 3/4] fix: remove unused config change --- vite.config.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index dda4f42b..f56afdac 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -48,9 +48,6 @@ export default defineConfig({ ], }, - optimizeDeps: { - include: ['classnames'], - }, build: { minify: true, reportCompressedSize: true, From 804d12b79e710b4cadee25396d8cecd00fdf09e7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 30 Jan 2024 22:22:04 +0000 Subject: [PATCH 4/4] chore(release): 1.9.3 [skip ci] ## [1.9.3](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.2...v1.9.3) (2024-01-30) ### Bug Fixes * remove config changes that were unnecessary and remove datepicker from exported styles ([3d82a8f](https://github.com/PhillipsAuctionHouse/seldon/commit/3d82a8f4329ae1ac0b48ffbe02a7d7cab13fbe8d)) * remove unused config change ([e2c876f](https://github.com/PhillipsAuctionHouse/seldon/commit/e2c876fdd39413688251bb20bb676d6e368be2e1)) --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9cf7589..7315966a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [1.9.3](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.2...v1.9.3) (2024-01-30) + + +### Bug Fixes + +* remove config changes that were unnecessary and remove datepicker from exported styles ([3d82a8f](https://github.com/PhillipsAuctionHouse/seldon/commit/3d82a8f4329ae1ac0b48ffbe02a7d7cab13fbe8d)) +* remove unused config change ([e2c876f](https://github.com/PhillipsAuctionHouse/seldon/commit/e2c876fdd39413688251bb20bb676d6e368be2e1)) + ## [1.9.2](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.1...v1.9.2) (2024-01-21) ### Bug Fixes diff --git a/package.json b/package.json index 12f403b0..d163e563 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@phillips/seldon", - "version": "1.9.2", + "version": "1.9.3", "type": "module", "main": "./dist/index.js", "module": "./dist/index.js",