Skip to content

Commit

Permalink
[DPCP-65] Oneiros: CJS/ESM (#16)
Browse files Browse the repository at this point in the history
* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep

* ar(fix) [cherry-pick] date range colors

* ar(fix) [cherry-pick] date range colors

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep

* ar(fix) [DPCP-65]: Adding Oneiros to Morpheus: let's house keep
  • Loading branch information
angeloreale authored Aug 21, 2024
1 parent ca30564 commit 1f12480
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 16 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@
"version": "0.0.1",
"description": "DreamPip's Design System Component Library.",
"type": "module",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.es.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.es.js",
"require": "./dist/cjs/index.server.cjs"
},
"./styles": "./dist/esm/style.css",
"./dist/tailwind.config.js": {
"import": "./dist/esm/tailwind.config.js",
"require": "./dist/cjs/tailwind.config.js"
}
},
"types": "dist/esm/index.d.ts",
"repository": "https://github.com/dreampipcom/oneiros",
"files": [
"/dist/**/*"
Expand Down Expand Up @@ -40,13 +49,9 @@
"license": "HPL3-ECO-AND-ANC",
"devDependencies": {
"@chromatic-com/storybook": "1.3.3",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@fullcalendar/daygrid": "^6.1.15",
"@fullcalendar/react": "^6.1.15",
"@fullcalendar/timegrid": "^6.1.15",
"@mui/material": "5.15.15",
"@mui/x-date-pickers-pro": "^7.8.0",
"@snyk/protect": "latest",
"@storybook/addon-a11y": "8.0.10",
"@storybook/addon-essentials": "8.0.10",
Expand Down Expand Up @@ -93,6 +98,10 @@
"vitest": "1.5.0"
},
"peerDependencies": {
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@mui/material": "5.15.15",
"@mui/x-date-pickers-pro": "^7.8.0",
"clsx": "2.1.0",
"lazysizes": "^5.3.2",
"moment": "^2.30.1",
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default defineConfig((env) => {
: {
build: {
// cjs
ssr: 'index.server.cjs',
outDir: './dist/cjs',
lib: {
entry: './src/index.ts',
Expand All @@ -67,6 +68,10 @@ export default defineConfig((env) => {
}
defaultHandler(warning);
},
output: {
format: 'cjs',
entryFileNames: 'index.server.cjs',
},
},
sourcemap: true,
emptyOutDir: false,
Expand Down

0 comments on commit 1f12480

Please sign in to comment.