Skip to content

Commit ea35cdf

Browse files
committed
Update package and test script
1 parent ccc2355 commit ea35cdf

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@
77
"url": "https://github.com/JovannMC/haritorax-interpreter/issues",
88
"email": "[email protected]"
99
},
10-
"type": "module",
1110
"description": "Communicate with the HaritoraX trackers",
12-
"main": "./src/index.js",
13-
"exports": {
14-
"import": "./src/index.js",
15-
"require": "./src/index.cjs"
16-
},
11+
"main": "./dist/index.js",
1712
"scripts": {
1813
"start": "node ./test/test.js",
1914
"build": "tsc"

test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HaritoraXWireless } from "../src/index.js";
1+
const { HaritoraXWireless } = require("../dist/index.js");
22

33
let mode = process.argv[2] || "gx";
44
let device = new HaritoraXWireless(2);

0 commit comments

Comments
 (0)