Skip to content

Commit cf14956

Browse files
authored
chore: adds entrypoint (googleworkspace#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.
1 parent 611c176 commit cf14956

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@
3737
"doc": "jsdoc -c jsdoc.json src/*.js README.md",
3838
"push": "cd src; clasp push",
3939
"test": "mocha"
40-
}
40+
},
41+
"exports": "./dist/OAuth2.gs"
4142
}

0 commit comments

Comments
 (0)