Skip to content

Commit a7a58b9

Browse files
authored
Merge pull request #7 from softnetics/hotfix
Fix library entrypoint
2 parents 29261f5 + 0a9a5e4 commit a7a58b9

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.changeset/big-birds-read.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@softnetics/rbac": patch
3+
---
4+
5+
Fix library entrypoint

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- v1
78

89
permissions:
910
actions: read

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
"version": "1.1.0",
44
"description": "O(1) type safe role based access control",
55
"packageManager": "yarn@1.22.19",
6-
"main": "./dist/index.cjs",
6+
"main": "./dist/index.js",
77
"module": "./dist/index.js",
88
"types": "./dist/index.d.ts",
99
"type": "module",
10+
"exports": {
11+
".": {
12+
"import": "./dist/index.js",
13+
"require": "./dist/index.cjs"
14+
}
15+
},
1016
"homepage": "https://github.com/softnetics/rbac",
1117
"bugs": {
1218
"url": "https://github.com/softnetics/rbac/issues",

0 commit comments

Comments
 (0)