From 9c2ef575a51309735e9dc8c7c4d7b96017ad5acd Mon Sep 17 00:00:00 2001 From: Dave Lockhart Date: Tue, 29 Sep 2026 13:10:49 -0400 Subject: [PATCH] GAUD-9693: use exports --- README.md | 2 +- package.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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",