Skip to content

Commit db01bac

Browse files
authored
Ensure compatibility with ESM and CommonJS (#29)
1 parent 2f45e99 commit db01bac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.npmignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
node_modules/
2-
storybook-static/
3-
.storybook/
42
temp/
53
coverage/
64

5+
storybook-static/
6+
.storybook/
77
src/storybook/
88

99
.idea/
1010
.vscode/
1111

12+
.github/
1213
.gitignore
1314

1415
rollup.config.mjs

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "@diamondlightsource/sci-react-ui",
3-
"version": "0.0.1",
4-
"type": "module",
3+
"version": "0.0.2",
54
"description": "A theme and component library to make websites at scientific institutions simple to create.",
65
"author": "Diamond Light Source",
76
"license": "ISC",
87
"repository": {
98
"type": "git",
109
"url": "https://github.com/DiamondLightSource/sci-react-ui.git"
1110
},
11+
"main": "dist/index.cjs.js",
12+
"module": "dist/index.esm.js",
13+
"types": "dist/index.d.ts",
1214
"scripts": {
1315
"build": "tsc -b && rollup --config rollup.config.mjs",
1416
"lint": "eslint .",
@@ -21,9 +23,6 @@
2123
"storybook:build": "storybook build -o storybook-static",
2224
"storybook:publish": "gh-pages -b storybook/publish -d storybook-static"
2325
},
24-
"main": "dist/index.cjs.js",
25-
"module": "dist/index.esm.js",
26-
"types": "dist/index.d.ts",
2726
"dependencies": {
2827
"@eslint/eslintrc": "^3.2.0",
2928
"@mui/icons-material": "^6.1.7",

0 commit comments

Comments
 (0)