mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
simplify setup by emiting index.js in ESM style from napi
This commit is contained in:
@@ -6,17 +6,12 @@
|
||||
"url": "https://github.com/tursodatabase/turso"
|
||||
},
|
||||
"description": "The Turso database library",
|
||||
"module": "./promise.mjs",
|
||||
"main": "./promise.cjs",
|
||||
"module": "./dist/promise.js",
|
||||
"main": "./dist/promise.js",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./promise.cjs",
|
||||
"import": "./promise.mjs"
|
||||
},
|
||||
"./sync": {
|
||||
"require": "./sync.cjs",
|
||||
"import": "./sync.mjs"
|
||||
}
|
||||
".": "./dist/promise.js",
|
||||
"./sync": "./dist/sync.js"
|
||||
},
|
||||
"files": [
|
||||
"browser.js",
|
||||
@@ -53,8 +48,8 @@
|
||||
"node": ">= 10"
|
||||
},
|
||||
"scripts": {
|
||||
"artifacts": "napi artifacts && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
|
||||
"build": "napi build --platform --release",
|
||||
"artifacts": "napi artifacts && tsc -p tsconfig.json",
|
||||
"build": "napi build --platform --release --esm",
|
||||
"build:debug": "napi build --platform",
|
||||
"prepublishOnly": "napi prepublish -t npm",
|
||||
"test": "true",
|
||||
@@ -69,4 +64,4 @@
|
||||
"node": "./index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user