add static dir thingy

This commit is contained in:
CoolElectronics 2024-03-03 19:44:28 -05:00
parent 1cc513560e
commit b20e3424f7
No known key found for this signature in database
GPG key ID: F63593D168636C50
2 changed files with 20 additions and 7 deletions

7
lib/index.cjs Normal file
View file

@ -0,0 +1,7 @@
'use strict';
const { resolve } = require('node:path');
const baremuxPath = resolve(__dirname, '..', 'dist');
exports.baremuxPath = baremuxPath;

View file

@ -1,6 +1,6 @@
{ {
"name": "@mercuryworkshop/bare-mux", "name": "@mercuryworkshop/bare-mux",
"version": "1.0.0", "version": "1.0.3",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {
@ -8,14 +8,20 @@
}, },
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"browser": "dist/index.cjs",
"main": "dist/index.cjs", "main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts", "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": [ "files": [
"dist" "dist"
], ],