From cf14956f8639e5270b8eadc290c74bfeb47a4be2 Mon Sep 17 00:00:00 2001 From: Nathan Sollenberger Date: Thu, 22 Sep 2022 12:08:44 -0600 Subject: [PATCH] chore: adds entrypoint (#398) 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" }