feat: change inula main

This commit is contained in:
xiaohuoni 2024-04-10 17:20:08 +08:00
parent 2c2c3926e7
commit 4db2e90705
2 changed files with 13 additions and 6 deletions

View File

@ -8,7 +8,7 @@
"homepage": "",
"bugs": "",
"license": "MulanPSL2",
"main": "./build/index.js",
"main": "./index.js",
"repository": {},
"engines": {
"node": ">=0.10.0"
@ -22,14 +22,13 @@
"test": "jest --config=jest.config.js",
"watch-test": "yarn test --watch --dev"
},
"files": ["build/**/*", "README.md"],
"types": "./build/@types/index.d.ts",
"types": "./@types/index.d.ts",
"exports": {
".": {
"default": "./build/index.js"
"default": "./index.js"
},
"./package.json":"./package.json",
"./jsx-runtime": "./build/jsx-runtime.js",
"./jsx-dev-runtime": "./build/jsx-dev-runtime.js"
"./jsx-runtime": "./jsx-runtime.js",
"./jsx-dev-runtime": "./jsx-dev-runtime.js"
}
}

View File

@ -101,6 +101,14 @@ function genConfig(mode) {
from: path.join(libDir, '/npm/index.js'),
to: path.join(outDir, 'index.js'),
},
{
from: path.join(libDir, 'package.json'),
to: path.join(outDir, 'package.json'),
},
{
from: path.join(libDir, 'README.md'),
to: path.join(outDir, 'README.md'),
},
]),
],
};