Skip to content

Commit

Permalink
update base pkg for core and dom
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Oct 11, 2022
1 parent ee69cfe commit a31e1a5
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -65,6 +67,7 @@
"react-native": "^0.70.1"
},
"peerDependencies": {
"dom": "*",
"preact": ">10",
"react": ">=17",
"react-native": ">=0.65"
Expand Down

0 comments on commit a31e1a5

Please sign in to comment.