@nicolassancho/storybook-core 4.1.1 → 4.1.2

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 +5 -2
package/README.md CHANGED
@@ -96,7 +96,9 @@ Tests are `play` functions in the component's story file, not separate test file
96
96
 
97
97
  1. Branch from `main` (`feat/<description>` or `fix/<description>`) and open a pull request.
98
98
  2. Run `npx tsc --noEmit`, `npm run lint`, `npx prettier --check ./src ./.storybook` and `npm test`
99
- before pushing. CI runs the same checks plus a Storybook build.
99
+ before pushing. CI runs the same checks plus a Storybook build. Run `npm run test:package` too
100
+ when you change exports, styles or imports: it installs the packed package and renders it in
101
+ plain Node.
100
102
  3. Bump the version as the last commit (`npm version <patch|minor> --no-git-tag-version`). CI fails
101
103
  a pull request that keeps the version of `main`, and every push to `main` publishes to npm.
102
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicolassancho/storybook-core",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Accessible React + Tailwind component library built with tailwind-variants and documented in Storybook.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,8 @@
31
31
  "build-storybook": "storybook build",
32
32
  "test": "vitest run",
33
33
  "lint": "eslint ./src",
34
- "format": "prettier --write ./src ./.storybook"
34
+ "format": "prettier --write ./src ./.storybook",
35
+ "test:package": "npm run build && publint --pack npm && attw --pack . --profile esm-only --exclude-entrypoints ./styles/theme.css && node scripts/test-package.mjs"
35
36
  },
36
37
  "keywords": [
37
38
  "react",
@@ -52,6 +53,7 @@
52
53
  "url": "https://github.com/NicolasSancho/Storybook-core/issues"
53
54
  },
54
55
  "devDependencies": {
56
+ "@arethetypeswrong/cli": "^0.18.5",
55
57
  "@eslint/js": "^9.39.5",
56
58
  "@storybook/addon-a11y": "^10.6.2",
57
59
  "@storybook/addon-docs": "^10.6.2",
@@ -73,6 +75,7 @@
73
75
  "playwright": "^1.64.0",
74
76
  "postcss": "^8.4.41",
75
77
  "prettier": "^3.9.10",
78
+ "publint": "^0.3.25",
76
79
  "react": "^19.3.0",
77
80
  "react-dom": "^19.3.0",
78
81
  "storybook": "^10.6.2",