From ff0ba1d00f0d45a0e22b67ece8dfd67dc60c1f2d Mon Sep 17 00:00:00 2001 From: xiaohuoni Date: Wed, 10 Apr 2024 17:36:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=A4=9A=E5=8C=85=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/inula/package.json | 4 +-- packages/inula/scripts/package.json | 25 +++++++++++++++++++ .../inula/scripts/rollup/rollup.config.js | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 packages/inula/scripts/package.json 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'), }, {