From b20e3424f7bed6aeab8923ce3442752147cdb3fe Mon Sep 17 00:00:00 2001 From: CoolElectronics Date: Sun, 3 Mar 2024 19:44:28 -0500 Subject: [PATCH] add static dir thingy --- lib/index.cjs | 7 +++++++ package.json | 20 +++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 lib/index.cjs 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" ],