diff --git a/packages/inula/package.json b/packages/inula/package.json index 6e5e1ea74867d09c5d34219c04616752574d0ea5..7657f8c18135b58ec963c0b51052665b00f68384 100644 --- a/packages/inula/package.json +++ b/packages/inula/package.json @@ -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", "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" } } diff --git a/packages/inula/scripts/package.json b/packages/inula/scripts/package.json new file mode 100644 index 0000000000000000000000000000000000000000..c7579e3664f828bec21dbaa262ee2eaf202bcbac --- /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 9228bb4582ce54044af099610e57be8c693db3cb..71e6fabf27e7c3f76946b8cb5df7a94d02cde13c 100644 --- a/packages/inula/scripts/rollup/rollup.config.js +++ b/packages/inula/scripts/rollup/rollup.config.js @@ -101,6 +101,14 @@ function genConfig(mode) { from: path.join(libDir, '/npm/index.js'), to: path.join(outDir, 'index.js'), }, + { + from: path.join(__dirname,'..', 'package.json'), + to: path.join(outDir, 'package.json'), + }, + { + from: path.join(libDir, 'README.md'), + to: path.join(outDir, 'README.md'), + }, ]), ], };