feat: change inula main
This commit is contained in:
parent
2c2c3926e7
commit
4db2e90705
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'),
|
||||
},
|
||||
]),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue