chore: Changed exports and bundler.entries

This commit is contained in:
Bryan Thomas 2022-10-14 10:29:28 -05:00
parent 21690ddd1c
commit 0734bffb1e
2 changed files with 8 additions and 7 deletions

View File

@ -23,8 +23,8 @@
"license": "MIT", "license": "MIT",
"exports": { "exports": {
".": { ".": {
"require": "./dist/index.js", "require": "./dist/src/index.js",
"import": "./dist/index.mjs", "import": "./dist/src/index.mjs",
"types": "./dist/index.d.ts" "types": "./dist/index.d.ts"
}, },
"./preset": { "./preset": {
@ -33,9 +33,9 @@
"types": "./dist/preset.d.ts" "types": "./dist/preset.d.ts"
}, },
"./register": { "./register": {
"require": "./dist/register.js", "require": "./dist/src/manager.js",
"import": "./dist/register.mjs", "import": "./dist/src/manager.mjs",
"types": "./dist/register.d.ts" "types": "./dist/manager.d.ts"
}, },
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
@ -87,7 +87,8 @@
"bundler": { "bundler": {
"entries": [ "entries": [
"./src/index.ts", "./src/index.ts",
"./src/manager.tsx" "./src/manager.tsx",
"preset.js"
] ]
}, },
"gitHead": "82667a655108283aafc828427f00bb3590a334e5", "gitHead": "82667a655108283aafc828427f00bb3590a334e5",

View File

@ -25,7 +25,7 @@ function webpack(webpackConfig = {}, options = {}) {
} }
function managerEntries(entry = []) { function managerEntries(entry = []) {
return [...entry, require.resolve('./dist/esm/manager')]; return [...entry, require.resolve('./dist/manager')];
} }
module.exports = { webpack, managerEntries }; module.exports = { webpack, managerEntries };