Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Set file extensions for package entry files #513

Merged
merged 1 commit into from Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -2,12 +2,13 @@
"name": "@nextcloud/initial-state",
"version": "2.0.0",
"description": "Access data from the nextcloud server-side initial state API within apps.",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
"import": "./dist/index.es.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"files": [
"dist/"
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Expand Up @@ -11,7 +11,7 @@ export default [
],
output: [
{
dir: 'dist',
file: 'dist/index.cjs',
format: 'cjs',
sourcemap: true,
},
Expand All @@ -22,7 +22,7 @@ export default [
plugins: [typescript()],
output: [
{
file: 'dist/index.esm.js',
file: 'dist/index.es.mjs',
format: 'esm',
sourcemap: true,
},
Expand Down