From 2ffb0da2c71f121f1fb434b1931cbeea99bd98c2 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Sun, 30 Jun 2024 00:34:17 +0200 Subject: [PATCH] fix: Restore CJS (#438) --- index.js | 2 +- package.json | 4 ++-- tsconfig.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 11aece6..a2cea41 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -export * from './lib/index'; +module.exports = require('./build/lib'); diff --git a/package.json b/package.json index d7ec87e..69a9d88 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ }, "license": "Apache-2.0", "author": "Appium Contributors", - "main": "./build/index.js", - "types": "./build/index.d.ts", + "main": "index.js", + "types": "./build/lib/index.d.ts", "bin": {}, "directories": { "lib": "lib" diff --git a/tsconfig.json b/tsconfig.json index 56319f2..81b29b7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,6 @@ "checkJs": true }, "include": [ - "index.js", "lib" ] }