Added exports field

This commit is contained in:
Ben Ashton 2021-03-14 20:09:24 -07:00
parent 066bf2cb7f
commit 4293e380dd

View File

@ -3,6 +3,10 @@
"version": "1.0.0", "version": "1.0.0",
"description": "An SQLite interface with adapters for Cordova and WebSQL", "description": "An SQLite interface with adapters for Cordova and WebSQL",
"main": "./lib/pawsqlite.js", "main": "./lib/pawsqlite.js",
"exports": {
"import": "./src/pawsqlite.mjs",
"require": "./lib/pawsqlite.js"
},
"module": "./src/pawsqlite.mjs", "module": "./src/pawsqlite.mjs",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",