-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to support possible ES modules and fix imports to work under…
… Node.js 19 properly, #220
- Loading branch information
1 parent
dd8d950
commit 30c4eb2
Showing
64 changed files
with
295 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"node-option": [ | ||
"experimental-specifier-resolution=node", | ||
"loader=ts-node/esm" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"type": "module", | ||
"main": "dist/cjs/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"module": "dist/esm/index.js", | ||
|
@@ -17,7 +18,7 @@ | |
"require": "./dist/cjs/index.js" | ||
}, | ||
"scripts": { | ||
"test": "mocha -r ts-node/register \\\"src/**/*.test.ts\\\" \\\"src/**/*.test.js\\\"", | ||
"test": "mocha -r ts-node/esm \\\"src/**/*.test.ts\\\" \\\"src/**/*.test.js\\\"", | ||
"build": "tsc -p tsconfig.json && tsc -p tsconfig_esm.json", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
|
@@ -32,13 +33,12 @@ | |
"@peter-murray/hue-bridge-model": "^2.0.1", | ||
"bottleneck": "^2.19.5", | ||
"node-dns-sd": "^1.0.1", | ||
"node-fetch": "^2.6.1" | ||
"node-fetch": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^18.15.11", | ||
"@types/node-fetch": "^2.5.12", | ||
"chai": "~4.3.4", | ||
"mocha": "^9.1.3", | ||
"ts-node": "^10.4.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.