Skip to content

Commit

Permalink
Merge pull request #393 from nextcloud/fix/remove-unsupported-exports…
Browse files Browse the repository at this point in the history
…-field

Remove exports field to fix eslint and build errors
  • Loading branch information
PVince81 authored Sep 13, 2022
2 parents 08a21e5 + e6d2417 commit 99be845
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

## Unreleased

### Breaking

- Dialog styles must be imported with `import '@nextcloud/password-confirmation/dist/style.css'`

### Fixed

- Remove exports field to fix eslint and build errors in dependent environments

## 3.0.1 - 2022-09-12

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm add @nextcloud/password-confirmation
## Usage
```js
import { confirmPassword } from '@nextcloud/password-confirmation'
import '@nextcloud/password-confirmation/style.css' // Required for dialog styles
import '@nextcloud/password-confirmation/dist/style.css' // Required for dialog styles

const foo = async () => {
try {
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
"main": "./dist/main.js",
"browser": "./dist/main.js",
"types": "./dist/main.d.ts",
"exports": {
".": "./dist/main.js",
"./style.css": "./dist/style.css"
},
"files": [
"dist"
],
Expand Down

0 comments on commit 99be845

Please sign in to comment.