Skip to content

Commit e9b6da4

Browse files
author
Léo Guillaume
committed
fix: commonJs build
1 parent 19e03a8 commit e9b6da4

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

package-lock.json

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"typescript": "^5.0.2"
3131
},
3232
"dependencies": {
33-
"node-nlp-typescript": "^0.1.20"
33+
"node-nlp-typescript": "^0.1.29"
3434
}
3535
}

src/test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import nlp from 'node-nlp-typescript'
2+
3+
const point = new nlp.Point()
4+
console.log({
5+
x: point.x,
6+
y: point.y
7+
})
8+
9+
point.move(5, 10)
10+
11+
console.log({
12+
x: point.x,
13+
y: point.y
14+
})

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"compilerOptions": {
3+
"module": "CommonJS",
34
"target": "ESNext",
5+
"moduleResolution": "node",
6+
"esModuleInterop": true,
47
"noEmitOnError": false,
58
"declaration": true,
69
"strict": true,

0 commit comments

Comments
 (0)