Set type: module in package.json for exporting functions using ESM syntax

This commit is contained in:
ICheered
2023-08-05 12:14:43 +02:00
parent e1368affb3
commit 9d03408513

View File

@@ -1,7 +1,8 @@
{ {
"name": "web-gphoto2", "name": "web-gphoto2",
"version": "0.1.0", "version": "1.0.0",
"description": "WebAssembly implementation of gphoto2 and libusb to control DSLR cameras over USB on the Web", "description": "WebAssembly implementation of gphoto2 and libusb to control DSLR cameras over USB on the Web",
"type": "module",
"main": "src/camera.js", "main": "src/camera.js",
"types": "src/libapi.mjs.d.ts", "types": "src/libapi.mjs.d.ts",
"scripts": { "scripts": {