feat: change inula main
This commit is contained in:
parent
2c2c3926e7
commit
4db2e90705
|
@ -8,7 +8,7 @@
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"bugs": "",
|
"bugs": "",
|
||||||
"license": "MulanPSL2",
|
"license": "MulanPSL2",
|
||||||
"main": "./build/index.js",
|
"main": "./index.js",
|
||||||
"repository": {},
|
"repository": {},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
|
@ -22,14 +22,13 @@
|
||||||
"test": "jest --config=jest.config.js",
|
"test": "jest --config=jest.config.js",
|
||||||
"watch-test": "yarn test --watch --dev"
|
"watch-test": "yarn test --watch --dev"
|
||||||
},
|
},
|
||||||
"files": ["build/**/*", "README.md"],
|
"types": "./@types/index.d.ts",
|
||||||
"types": "./build/@types/index.d.ts",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"default": "./build/index.js"
|
"default": "./index.js"
|
||||||
},
|
},
|
||||||
"./package.json":"./package.json",
|
"./package.json":"./package.json",
|
||||||
"./jsx-runtime": "./build/jsx-runtime.js",
|
"./jsx-runtime": "./jsx-runtime.js",
|
||||||
"./jsx-dev-runtime": "./build/jsx-dev-runtime.js"
|
"./jsx-dev-runtime": "./jsx-dev-runtime.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,6 +101,14 @@ function genConfig(mode) {
|
||||||
from: path.join(libDir, '/npm/index.js'),
|
from: path.join(libDir, '/npm/index.js'),
|
||||||
to: path.join(outDir, '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