This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-node-casbin.git


The following commit(s) were added to refs/heads/master by this push:
     new b9a5fc6  feat: add exports field to package.json for ESM-only 
environments
b9a5fc6 is described below

commit b9a5fc60d39c4c058b9fe8dc1989d7206db4db2f
Author: Yang Luo <[email protected]>
AuthorDate: Mon Jun 22 21:18:51 2026 +0800

    feat: add exports field to package.json for ESM-only environments
---
 package.json | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package.json b/package.json
index cc402b4..ab50c8a 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,14 @@
   "main": "lib/cjs/index.js",
   "typings": "lib/cjs/index.d.ts",
   "module": "lib/esm/index.js",
+  "exports": {
+    ".": {
+      "types": "./lib/cjs/index.d.ts",
+      "import": "./lib/esm/index.js",
+      "require": "./lib/cjs/index.js"
+    },
+    "./package.json": "./package.json"
+  },
   "scripts": {
     "prepack": "run-s lint test build",
     "postpack": "run-s clean",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to