diff --git a/package.json b/package.json index 64db716..709e469 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,16 @@ { "name": "reflect-client", - "version": "1.0.0", + "version": "1.1.0-beta.0", "main": "build/Reflect.js", + "type": "module", + "exports": { + ".": { + "import": { + "types": "./src/Reflect.ts", + "default": "./build/Reflect.js" + } + } + }, "devDependencies": { "typescript": "^5.2.2" } diff --git a/src/Reflect.ts b/src/Reflect.ts index 1b6a865..be45ac2 100644 --- a/src/Reflect.ts +++ b/src/Reflect.ts @@ -1,4 +1,4 @@ -import { Method } from "./Method"; +import { Method } from "./Method.js"; // Connect to a Reflect API instance over HTTP export default class Client { diff --git a/tsconfig.json b/tsconfig.json index f74e32a..cb59621 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,7 @@ "compilerOptions": { "emitDecoratorMetadata": true, "experimentalDecorators": true, - "module": "amd", - "target": "ES6", - "rootDir": "./src", - "outFile": "./build/Reflect.js" + "module": "NodeNext", + "outDir": "./build" } } \ No newline at end of file