diff --git a/packages/inula/package.json b/packages/inula/package.json index 69d9c286..7657f8c1 100644 --- a/packages/inula/package.json +++ b/packages/inula/package.json @@ -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" diff --git a/packages/inula/scripts/package.json b/packages/inula/scripts/package.json new file mode 100644 index 00000000..c7579e36 --- /dev/null +++ b/packages/inula/scripts/package.json @@ -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" + } +} diff --git a/packages/inula/scripts/rollup/rollup.config.js b/packages/inula/scripts/rollup/rollup.config.js index 56d23bc6..71e6fabf 100644 --- a/packages/inula/scripts/rollup/rollup.config.js +++ b/packages/inula/scripts/rollup/rollup.config.js @@ -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'), }, {