@terjeballestad/bob 0.1.0 → 0.1.1

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 +3 -1
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -19,7 +19,9 @@ An import from `@terjeballestad/bob` also loads `bob.css`: the tokens, the keyfr
19
19
  component styles. You do not import a stylesheet yourself. If your bundler drops CSS that a
20
20
  package imports, import `@terjeballestad/bob/styles.css` once at the root of your app.
21
21
 
22
- `react` and `react-dom` 18.3 or later are peer dependencies.
22
+ `react`, `react-dom` and `@types/react` 18.3 or later are peer dependencies. The types are a
23
+ required peer, because Bob's declarations import React's types, and npm must place them where
24
+ Bob can see them.
23
25
 
24
26
  ## Layout
25
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terjeballestad/bob",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Bob: the design system shared by Time Turtle and pm-board",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -35,9 +35,11 @@
35
35
  "storybook": "storybook dev -p 6006",
36
36
  "build-storybook": "storybook build -o storybook-static --quiet",
37
37
  "test:visual": "playwright test",
38
- "test:visual:docker": "docker run --rm --ipc=host -v \"$PWD\":/work -w /work mcr.microsoft.com/playwright:v1.65.1-noble sh -c 'npx playwright test \"$@\"' --"
38
+ "test:visual:docker": "docker run --rm --ipc=host -v \"$PWD\":/work -w /work mcr.microsoft.com/playwright:v1.65.1-noble sh -c 'npx playwright test \"$@\"' --",
39
+ "test:consumer": "npm run build && scripts/consumer-check.sh"
39
40
  },
40
41
  "peerDependencies": {
42
+ "@types/react": ">=18.3",
41
43
  "react": ">=18.3",
42
44
  "react-dom": ">=18.3"
43
45
  },