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:
parent
805234acc1
commit
1f0a01f15f
3 changed files with 7 additions and 4 deletions
|
@ -3,8 +3,11 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "dist/index.js",
|
"type": "module",
|
||||||
"types": "dist/index.d.ts",
|
"exports": {
|
||||||
|
".": "./dist/index.js",
|
||||||
|
"./*": "./dist/*"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "ava"
|
"test": "ava"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import test from "ava";
|
import test from "ava";
|
||||||
import { ApiPermissions, hasPermission } from "./apiPermissions";
|
import { ApiPermissions, hasPermission } from "./apiPermissions.js";
|
||||||
|
|
||||||
test("Directly granted permissions match", (t) => {
|
test("Directly granted permissions match", (t) => {
|
||||||
t.is(hasPermission(new Set([ApiPermissions.ManageAccess]), ApiPermissions.ManageAccess), true);
|
t.is(hasPermission(new Set([ApiPermissions.ManageAccess]), ApiPermissions.ManageAccess), true);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export * from "./apiPermissions";
|
export * from "./apiPermissions.js";
|
||||||
|
|
Loading…
Add table
Reference in a new issue