@joinskips/common 0.1.0-develop.145 → 0.1.1-develop.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +18 -1
package/README.md CHANGED
@@ -70,7 +70,7 @@ The website's welcome is a set of parts the website places in its thread, each t
70
70
 
71
71
  `fitVisibleArea` sizes the website's full-screen chat to the part of the page the phone's keyboard leaves visible.
72
72
 
73
- Uniwind carries its own Tailwind compiler, so `uniwind` is a peer dependency pinned to one version, and every app installs that version. An upgrade of Uniwind or Tailwind changes the peer range here first and ships as a release.
73
+ The peers an app installs follow what it imports. The root, `/ui`, `/hooks`, `/chat` and `/staff` draw with React: an app that imports any of them installs `react`, `react-native` on a phone or `react-native-web` on the web, and `tailwindcss` with `uniwind` for their classes. `/helpers`, `/connection` and the `/elements` bundle, which carries its own React, need none of them. Each peer is optional, so npm checks its range only where an app installs it. Uniwind carries its own Tailwind compiler, so `uniwind` is pinned to one version. An upgrade of Uniwind or Tailwind changes the peer range here first and ships as a release.
74
74
 
75
75
  ## Commands
76
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joinskips/common",
3
- "version": "0.1.0-develop.145",
3
+ "version": "0.1.1-develop.146",
4
4
  "description": "The code the Skips apps share, built once in React Native: components, hooks and helpers.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -76,6 +76,23 @@
76
76
  "tailwindcss": "^4.0.0",
77
77
  "uniwind": "1.13.2"
78
78
  },
79
+ "peerDependenciesMeta": {
80
+ "react": {
81
+ "optional": true
82
+ },
83
+ "react-native": {
84
+ "optional": true
85
+ },
86
+ "react-native-web": {
87
+ "optional": true
88
+ },
89
+ "tailwindcss": {
90
+ "optional": true
91
+ },
92
+ "uniwind": {
93
+ "optional": true
94
+ }
95
+ },
79
96
  "devDependencies": {
80
97
  "@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
81
98
  "@hey-api/openapi-ts": "0.99.0",