diff --git a/CHANGELOG.md b/CHANGELOG.md index efa80bdd..702a2616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 1ba561ca..2a57fa2c 100644 --- a/README.md +++ b/README.md @@ -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 { diff --git a/package.json b/package.json index a7d628af..cc713a68 100644 --- a/package.json +++ b/package.json @@ -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" ],