refactor: add cjs support

This commit is contained in:
Derrick Hammer 2023-07-07 09:14:12 -04:00
parent ba35a9c743
commit b4f6015e02
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 19 additions and 6 deletions

View File

@ -1,5 +1,6 @@
{ {
"preset": [ "preset": [
"@lumeweb/node-library-preset" "presetter-preset-hybrid",
] "@lumeweb/node-library-preset"
]
} }

3
npm-shrinkwrap.json generated
View File

@ -15,7 +15,8 @@
}, },
"devDependencies": { "devDependencies": {
"@lumeweb/node-library-preset": "^0.2.7", "@lumeweb/node-library-preset": "^0.2.7",
"presetter": "*" "presetter": "*",
"presetter-preset-hybrid": "^4.0.1"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {

View File

@ -3,6 +3,16 @@
"version": "0.1.8", "version": "0.1.8",
"main": "lib/index.js", "main": "lib/index.js",
"license": "MIT", "license": "MIT",
"type": "module",
"types": "lib/index.d.ts",
"module": "lib/index.mjs",
"exports": {
".": {
"require": "./lib/index.js",
"import": "./lib/index.mjs"
},
"./package.json": "./package.json"
},
"authors": [ "authors": [
"Christopher Jeffrey <chjjeffrey@gmail.com>", "Christopher Jeffrey <chjjeffrey@gmail.com>",
"Hammer Technologies LLC <contact@lumeweb.com>" "Hammer Technologies LLC <contact@lumeweb.com>"
@ -18,7 +28,8 @@
}, },
"devDependencies": { "devDependencies": {
"@lumeweb/node-library-preset": "^0.2.7", "@lumeweb/node-library-preset": "^0.2.7",
"presetter": "*" "presetter": "*",
"presetter-preset-hybrid": "^4.0.1"
}, },
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"dependencies": { "dependencies": {