From 3634022fb36bce0a320b317a158fca43129ab430 Mon Sep 17 00:00:00 2001 From: Jo Colina Date: Fri, 4 Mar 2022 10:27:22 +0100 Subject: [PATCH] Exports: add index to export Router & App --- index.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..3d0cf91 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +const Router = require('./lib/router'); +const App = require('./lib/app'); diff --git a/package.json b/package.json index 072753c..aa5bd11 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@control/cloudflare-workers-router", "version": "0.0.0", "description": "A simple & lightweight router designed for cloudflare workers", - "main": "lib/router.js", + "main": "index.js", "scripts": { "test": "mocha --recursive --exit ./test" },