Skip to content

Commit

Permalink
fix module not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
Naaikho committed Mar 3, 2024
1 parent 7664286 commit dad9813
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
23 changes: 23 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Package: VivaWallet API SDK
* Autor: Naikho
* Description: Non-Official VivaWallet API SDK
* License: ISC
*/

import VivaAuth from './src/vivawallet/VivaAuth.class';
import VivaEndpoints from './src/vivawallet/VivaEndpoints.class';
import VivaSkull from './src/vivawallet/VivaSkull.class';
import Vivawallet, {
getSmartCheckout,
} from './src/vivawallet/Vivawallet.class';

module.exports = {
Vivawallet,
getSmartCheckout,
ClassBase: {
VivaEndpoints,
VivaSkull,
VivaAuth,
},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@nkhind/vivawallet-sdk",
"version": "1.0.1",
"description": "Non-Official VivaWallet API SDK",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build",
"start": "node dist/main.js",
"start": "node dist/index.js",
"dev": "tsc && npm run start",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
23 changes: 0 additions & 23 deletions src/main.ts

This file was deleted.

0 comments on commit dad9813

Please sign in to comment.