Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 4829661

Browse files
committed
feat: apply node settings to make this package a module
See: mochajs/mocha#4652
1 parent 3965e27 commit 4829661

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A GitHub deployer robot",
55
"main": "dist/index.js",
66
"private": false,
7+
"type": "module",
78
"nyc": {
89
"extension": [
910
".ts",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"noImplicitAny": true,
1010
"strictNullChecks": true,
1111
"lib": ["es2017"],
12-
"module": "commonjs",
12+
"module": "es2020",
13+
"moduleResolution": "node",
1314
"skipLibCheck": true,
1415
"target": "es2017",
1516
"baseUrl": "./",

0 commit comments

Comments
 (0)