From a31e1a5d48543cb6b2be3c4f04446d084ce168e7 Mon Sep 17 00:00:00 2001 From: Reaper Date: Tue, 11 Oct 2022 11:54:14 +0530 Subject: [PATCH] update base pkg for core and dom --- package.json | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 30dcc61..5520bf7 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,16 @@ "repository": "barelyhuman/preact-native", "license": "MIT", "author": "", + "main": "./core/dist/core.js", + "module": "./core/dist/core.mjs", + "types": "./core/dist/core.d.ts", "exports": { ".": { - "types": "./dist/index.d.ts", - "browser": "./dist/index.module.js", - "umd": "./dist/index.umd.js", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "types": "./core/dist/core.d.ts", + "browser": "./core/dist/core.module.js", + "umd": "./core/dist/core.umd.js", + "import": "./core/dist/core.mjs", + "require": "./core/dist/core.js" }, "./dom": { "types": "./dom/dist/index.d.ts", @@ -23,21 +26,20 @@ }, "./package.json": "./package.json" }, - "main": "dist/index.js", - "umd:main": "dist/index.umd.js", - "unpkg": "dist/index.min.js", - "module": "dist/index.module.js", - "source": "src/index.js", - "types": "dist/index.d.ts", "files": [ - "src", - "dist" + "core/src", + "core/dist", + "dom/src", + "dom/dist" ], "scripts": { "nuke": "find . -name 'node_modules' -type d -prune | xargs rm -rf", "build": "npm-run-all --parallel build:*", "build:dom": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd dom", + "build:core": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd core", + "dev": "npm-run-all --parallel dev:*", "dev:dom": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd dom --watch", + "dev:core": "microbundle build --raw --generateTypes -f cjs,esm,umd --cwd core --watch", "example:start": "cd example;yarn start", "example:ios": "cd example; yarn ios", "example:android": "cd example; yarn android", @@ -65,6 +67,7 @@ "react-native": "^0.70.1" }, "peerDependencies": { + "dom": "*", "preact": ">10", "react": ">=17", "react-native": ">=0.65"