3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

refactor: convert /shared to ESM

This commit is contained in:
Dragory 2024-04-09 16:52:29 +00:00
parent 805234acc1
commit 1f0a01f15f
No known key found for this signature in database
3 changed files with 7 additions and 4 deletions

View file

@ -3,8 +3,11 @@
"version": "0.0.1",
"description": "",
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": "./dist/index.js",
"./*": "./dist/*"
},
"scripts": {
"test": "ava"
},

View file

@ -1,5 +1,5 @@
import test from "ava";
import { ApiPermissions, hasPermission } from "./apiPermissions";
import { ApiPermissions, hasPermission } from "./apiPermissions.js";
test("Directly granted permissions match", (t) => {
t.is(hasPermission(new Set([ApiPermissions.ManageAccess]), ApiPermissions.ManageAccess), true);

View file

@ -1 +1 @@
export * from "./apiPermissions";
export * from "./apiPermissions.js";