From 189cbd73f5fb6361bbc0def112727e8ab11f158f Mon Sep 17 00:00:00 2001 From: Nathan Sollenberger Date: Thu, 11 Aug 2022 12:13:01 -0600 Subject: [PATCH] chore: adds entrypoint Fixes `Module not found: Error: Can't resolve 'OAuth2' in '/Users/.../src' [...] Field 'browser' doesn't contain a valid alias configuration` when trying to import this package as an ES module. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d9891035..51ab56a1 100644 --- a/package.json +++ b/package.json @@ -37,5 +37,6 @@ "doc": "jsdoc -c jsdoc.json src/*.js README.md", "push": "cd src; clasp push", "test": "mocha" - } + }, + "exports": "./dist/OAuth2.gs" }