Skip to content

Commit

Permalink
Merge pull request #513 from nextcloud/fix/es-modul
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Mar 16, 2023
2 parents 8c5d2ba + ecb7495 commit 85fc2a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
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

0 comments on commit 85fc2a3

Please sign in to comment.