Skip to content

Commit 99be845

Browse files
authored
Merge pull request #393 from nextcloud/fix/remove-unsupported-exports-field
Remove exports field to fix eslint and build errors
2 parents 08a21e5 + e6d2417 commit 99be845

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
## Unreleased
66

7+
### Breaking
8+
9+
- Dialog styles must be imported with `import '@nextcloud/password-confirmation/dist/style.css'`
10+
11+
### Fixed
12+
13+
- Remove exports field to fix eslint and build errors in dependent environments
14+
715
## 3.0.1 - 2022-09-12
816

917
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm add @nextcloud/password-confirmation
1515
## Usage
1616
```js
1717
import { confirmPassword } from '@nextcloud/password-confirmation'
18-
import '@nextcloud/password-confirmation/style.css' // Required for dialog styles
18+
import '@nextcloud/password-confirmation/dist/style.css' // Required for dialog styles
1919

2020
const foo = async () => {
2121
try {

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"main": "./dist/main.js",
66
"browser": "./dist/main.js",
77
"types": "./dist/main.d.ts",
8-
"exports": {
9-
".": "./dist/main.js",
10-
"./style.css": "./dist/style.css"
11-
},
128
"files": [
139
"dist"
1410
],

0 commit comments

Comments
 (0)