diff --git a/README.md b/README.md index 0a24342..3fcd53c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ var parsedEntity = SirenParse('{"class":["foo","bar"]}'); ```js import sirenParser from 'siren-parser'; -import sirenChai from 'siren-parser/src/chaiPlugin.js'; +import sirenChai from 'siren-parser/chai'; const sirenJson = { title: 'My title', class: ['outer'], diff --git a/package.json b/package.json index ca92e70..9762d7c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "siren-parser", "version": "9.2.5", - "main": "src/index.js", "type": "module", "scripts": { "lint": "eslint src test --ext .js", @@ -11,6 +10,10 @@ "files": [ "/src" ], + "exports": { + ".": "./src/index.js", + "./chai": "./src/chaiPlugin.js" + }, "author": "D2L Corporation", "license": "Apache-2.0", "homepage": "https://github.com/Brightspace/node-siren-parser",