feat: 支持本地多包管理

This commit is contained in:
xiaohuoni 2024-04-10 17:36:55 +08:00
parent 4db2e90705
commit ff0ba1d00f
3 changed files with 28 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"homepage": "",
"bugs": "",
"license": "MulanPSL2",
"main": "./index.js",
"main": "./build/index.js",
"repository": {},
"engines": {
"node": ">=0.10.0"
@ -22,7 +22,7 @@
"test": "jest --config=jest.config.js",
"watch-test": "yarn test --watch --dev"
},
"types": "./@types/index.d.ts",
"types": "./build/@types/index.d.ts",
"exports": {
".": {
"default": "./index.js"

View File

@ -0,0 +1,25 @@
{
"name": "openinula",
"description": "OpenInula is a JavaScript framework library.",
"keywords": [
"openinula"
],
"version": "0.0.4",
"homepage": "",
"bugs": "",
"license": "MulanPSL2",
"main": "./index.js",
"repository": {},
"engines": {
"node": ">=0.10.0"
},
"types": "./@types/index.d.ts",
"exports": {
".": {
"default": "./index.js"
},
"./package.json":"./package.json",
"./jsx-runtime": "./jsx-runtime.js",
"./jsx-dev-runtime": "./jsx-dev-runtime.js"
}
}

View File

@ -102,7 +102,7 @@ function genConfig(mode) {
to: path.join(outDir, 'index.js'),
},
{
from: path.join(libDir, 'package.json'),
from: path.join(__dirname,'..', 'package.json'),
to: path.join(outDir, 'package.json'),
},
{