add back node imports

This commit is contained in:
Percs 2024-07-07 17:21:29 -05:00
parent b4c7ac361b
commit 722827d6d7
3 changed files with 17 additions and 1 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;

3
lib/index.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
declare const baremuxPath: string;
export { baremuxPath };

View file

@ -9,12 +9,18 @@
},
"author": "",
"files": [
"dist"
"dist",
"lib"
],
"exports": {
".": {
"import": "./dist/client.js",
"types": "./dist/client.d.ts"
},
"./node": {
"import": "./lib/index.cjs",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
}
},
"devDependencies": {