mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-13 22:30:03 -04:00
add back node imports
This commit is contained in:
parent
b4c7ac361b
commit
722827d6d7
3 changed files with 17 additions and 1 deletions
7
lib/index.cjs
Normal file
7
lib/index.cjs
Normal 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
3
lib/index.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
declare const baremuxPath: string;
|
||||
|
||||
export { baremuxPath };
|
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue