diff --git a/.github/workflows/mediasoup-client.yaml b/.github/workflows/mediasoup-client.yaml index e2a923a3..da4399c3 100644 --- a/.github/workflows/mediasoup-client.yaml +++ b/.github/workflows/mediasoup-client.yaml @@ -19,9 +19,11 @@ jobs: node: 20 - os: ubuntu-24.04 node: 22 - - os: macos-12 - node: 20 + - os: macos-13 + node: 18 - os: macos-14 + node: 20 + - os: macos-15 node: 22 - os: windows-2022 node: 22 diff --git a/package.json b/package.json index a833c6a1..481ab297 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,19 @@ "type": "opencollective", "url": "https://opencollective.com/mediasoup" }, - "main": "lib/index.js", - "types": "lib/index.d.ts", + "exports": { + ".": { + "import": "./lib/index.js", + "types": "./lib/index.d.ts" + }, + "./types": { + "import": "./lib/types.js", + "types": "./lib/types.d.ts" + } + }, "files": [ - "npm-scripts.mjs", - "lib" + "./npm-scripts.mjs", + "./lib" ], "engines": { "node": ">=18"