Skip to content

Commit

Permalink
📦 Added "exports" to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 committed Jul 17, 2024
1 parent 514461c commit 71788f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_NAME="Amplify SAM"
VITE_NAME=Amplify SAM
VITE_ENVIRONMENT_NAME=localhost
2 changes: 2 additions & 0 deletions .idea/amplify-sam.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@equinor/subsurface-app-management",
"version": "1.0.9",
"description": "React Typescript components/hooks to communicate with equinor/sam",
"main": "dist/subsurface-app-management.cjs",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"type": "module",
"exports": "./dist/index.js",
"author": "Amplify Team",
"license": "ISC",
"homepage": "https://github.com/equinor/subsurface-app-management#readme",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default [
preserveModulesRoot: 'src',
format: 'es',
},
{ file: './dist/subsurface-app-management.cjs', format: 'cjs', interop: 'auto' },
],
},
];
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"types": ["node", "vite/client", "vitest/globals"],
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 71788f8

Please sign in to comment.