mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-15 23:20:02 -04:00
add static dir thingy
This commit is contained in:
parent
1cc513560e
commit
b20e3424f7
2 changed files with 20 additions and 7 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;
|
20
package.json
20
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"
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue