Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"generateTypes": "tsc -p tsconfig.base.json --emitDeclarationOnly",
"transpileES": "cross-env TS_NODE_PROJECT=tsconfig.es.json BABEL_ENV=es babel src --out-dir es --extensions .ts,.tsx,.js,.jsx --ignore 'src/test'",
"processCSS": "postcss src/viewport/index.css --output es/style/style.css",
"copy-build": "copyfiles 'es/**/*' style/* 'type-declarations/**/*' package.json README.md dev-build",
"copy-build": "copyfiles 'es/**/*' 'type-declarations/**/*' package.json README.md dev-build",
"gh-build": "npm run processCSS && cd examples && npm run build-example",
"lint": "eslint src/**",
"test": "vitest run",
Expand All @@ -28,7 +28,6 @@
},
"files": [
"es",
"style",
"type-declarations",
"README.md",
"package.json"
Expand All @@ -41,6 +40,10 @@
"type": "git",
"url": "https://github.com/simularium/simularium-viewer.git"
},
"exports": {
".": "./es/index.js",
"./style/style.css": "./es/style/style.css"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing this makes me wonder if you could have the same effect if you just had one single export alias from "." to "./es"

Copy link
Contributor Author

@interim17 interim17 Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible, and I could test that if you like, but I think that would allow importing from everything in /es rather than just the stuff we choose to expose in index.js?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, then in that case I think I like your fix as is, assuming it works in all the cases we care about! Or if @meganrm has any better ideas

},
"author": "",
"license": "MIT",
"devDependencies": {
Expand Down
Loading