diff --git a/lib/index.cjs b/lib/index.cjs new file mode 100644 index 0000000..19292e7 --- /dev/null +++ b/lib/index.cjs @@ -0,0 +1,7 @@ +'use strict'; + +const { resolve } = require('node:path'); + +const baremuxPath = resolve(__dirname, '..', 'dist'); + +exports.baremuxPath = baremuxPath; diff --git a/package.json b/package.json index 629b68c..e122b11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercuryworkshop/bare-mux", - "version": "1.0.0", + "version": "1.0.3", "description": "", "type": "module", "scripts": { @@ -8,14 +8,20 @@ }, "author": "", "license": "MIT", - "exports": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "browser": "dist/index.cjs", "main": "dist/index.cjs", - "module": "dist/index.js", "types": "dist/index.d.ts", + "exports": { + ".": { + "node": { + "require": "./lib/index.cjs", + "import": "./lib/index.cjs" + }, + "browser": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + } + }, "files": [ "dist" ],