diff --git a/index.js b/index.js new file mode 100644 index 0000000..b2f2a5d --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +module.exports = require("./src/Main.js"); \ No newline at end of file diff --git a/package.json b/package.json index cde89e5..2c28faa 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,13 @@ "description": "Manipulate UFW (Linux distribution only, works best on Ubuntu) via Node.", "license": "MIT", "typings": "./index.d.ts", + "main": "./index.js", + "exports": { + ".": [ + { "require": "./index.js" }, + "./index.js" + ] + }, "funding": [ { "type": "individual", @@ -15,12 +22,12 @@ } ], "repository": { - "type": "git", - "url": "https://github.com/ray-1337/node-ufw.git" - }, + "type": "git", + "url": "https://github.com/ray-1337/node-ufw.git" + }, "bugs": { - "url": "https://github.com/ray-1337/node-ufw/issues" - }, + "url": "https://github.com/ray-1337/node-ufw/issues" + }, "scripts": { "test": "ava test.js" },