Skip to content

Commit

Permalink
Convert to CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
robbertkl committed Mar 2, 2023
1 parent a28dc9a commit a1ae4d4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 161 deletions.
196 changes: 39 additions & 157 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"node": ">=14.18.1",
"homebridge": ">=1.3.5"
},
"type": "module",
"exports": "./dist/index.js",
"main": "dist/index.js",
"scripts": {
"clean": "rimraf dist homebridge-ui/public",
"build": "npm run build:plugin && npm run build:ui",
Expand All @@ -38,7 +37,7 @@
"dependencies": {
"@abandonware/noble": "^1.9.2-20",
"@homebridge/plugin-ui-utils": "^0.0.19",
"node-fetch": "^3.3.0"
"node-fetch": "^2.6.9"
},
"devDependencies": {
"@types/node": "^16.10.9",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2018", // ~node10
"module": "ES2020",
"module": "commonjs",
"moduleResolution": "node",
"lib": ["dom", "es2015", "es2016", "es2017", "es2018"],
"declaration": true,
Expand Down

0 comments on commit a1ae4d4

Please sign in to comment.