convert lib to CommonJS with default export

This commit is contained in:
David Reed 2022-10-01 18:25:01 -04:00
parent 0765bcc2f3
commit 5dd0a60cc7
3 changed files with 7 additions and 3 deletions

4
lib/index.d.ts vendored
View file

@ -1 +1,3 @@
export const uvPath: string;
declare const uvPath: string;
export default uvPath;

View file

@ -1,3 +1,5 @@
import { fileURLToPath } from 'url';
export const uvPath = fileURLToPath(new URL('../dist/', import.meta.url));
const uvPath = fileURLToPath(new URL('../dist/', import.meta.url));
module.exports = uvPath;

View file

@ -10,7 +10,7 @@
},
"author": "",
"license": "ISC",
"type": "module",
"type": "commonjs",
"dependencies": {
"bowser": "^2.11.0",
"css-tree": "^2.0.4",