From 2872319626488ebefacedb5119f400aedac28c4e Mon Sep 17 00:00:00 2001 From: Pal Kerecsenyi Date: Sat, 23 Dec 2023 12:55:51 +0000 Subject: [PATCH] Update to support ES6 --- package.json | 3 ++- src/index.ts | 2 +- tsconfig.json | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9acf06a..716d177 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paltiverse-public/palauth-iam-node", - "version": "1.0.0", + "version": "1.0.1", "repository": "https://gitlab.palk.me/paltiverse-public/palauth-iam-node.git", "publishConfig": { "registry": "https://gitlab.palk.me/api/v4/projects/57/packages/npm/" @@ -22,6 +22,7 @@ "build": "tsc", "prepublishOnly": "yarn run build" }, + "type": "module", "main": "build/index.js", "types": "build/index.d.ts", "packageManager": "yarn@4.0.2", diff --git a/src/index.ts b/src/index.ts index 924ff6c..b586cde 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import type { Optional } from "utility-types" import type { Wretch } from "wretch" import wretch from "wretch" -import { CheckPermissionRequest, CheckPermissionResponse } from "./types/check" +import { CheckPermissionRequest, CheckPermissionResponse } from "./types/check.js" export interface PalAuthIAMConfig { clientID: string diff --git a/tsconfig.json b/tsconfig.json index f657875..962c62b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "module": "commonjs", + "module": "NodeNext", + "moduleResolution": "NodeNext", "noImplicitAny": true, "removeComments": true, "inlineSourceMap": true,