diff --git a/CMakeLists.txt b/CMakeLists.txt index 54540479..48a41713 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15) cmake_policy(SET CMP0091 NEW) cmake_policy(SET CMP0042 NEW) -project(node_datachannel VERSION 0.7.0) +project(node_datachannel VERSION 0.8.0) # -Dnapi_build_version=8 add_definitions(-DNAPI_VERSION=8) diff --git a/package-lock.json b/package-lock.json index 75eb6b61..6063954d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "node-datachannel", - "version": "0.7.1", + "version": "0.8.0-dev", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "node-datachannel", - "version": "0.7.1", + "version": "0.8.0-dev", "hasInstallScript": true, "license": "MPL 2.0", "dependencies": { diff --git a/package.json b/package.json index 15476d22..4efb2ea6 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,30 @@ { "name": "node-datachannel", - "version": "0.7.1", + "version": "0.8.0-dev", "description": "libdatachannel node bindings", "type": "module", "exports": { ".": { - "import": "./lib/index.js", - "require": "./lib/index.cjs" + "import": { + "default": "./lib/index.js", + "types": "./lib/index.d.ts" + }, + "require": { + "default": "./lib/index.cjs", + "types": "./lib/index.d.cts" + } }, "./polyfill": { - "import": "./polyfill/index.js", - "require": "./polyfill/polyfill.cjs" + "import": { + "default": "./polyfill/index.js", + "types": "./polyfill/index.d.ts" + }, + "require": { + "default": "./polyfill/index.cjs", + "types": "./polyfill/index.d.cts" + } } }, - "typings": "lib/index.d.ts", "engines": { "node": ">=16.0.0" }, @@ -34,7 +45,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest", "wpt-test": "node test/wpt.js", "test-types": "tsc", - "prepublishOnly": "rollup lib/index.js --file lib/index.cjs --format cjs && rollup polyfill/index.js --file polyfill/polyfill.cjs --format cjs" + "prepublishOnly": "cp lib/index.d.ts lib/index.d.cts && cp polyfill/index.d.ts polyfill/index.d.cts && rollup lib/index.js --file lib/index.cjs --format cjs && rollup polyfill/index.js --file polyfill/index.cjs --format cjs" }, "binary": { "napi_versions": [