File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -62,6 +62,27 @@ npm run test # vitest
6262
6363All four must pass before shipping. Run in order: lint -> typecheck -> build -> test.
6464
65+ ## npm Publishing (Local Only)
66+
67+ - npm publish is manual/local (no GitHub Action publish workflow).
68+ - Use this command:
69+
70+ ``` bash
71+ pnpm publish:npm
72+ ```
73+
74+ What it does:
75+ 1 . lint
76+ 2 . typecheck
77+ 3 . build
78+ 4 . test
79+ 5 . ` npm publish --access public `
80+
81+ Prerequisites:
82+ - ` npm login ` completed on your machine
83+ - npm account/package permissions set
84+ - if npm 2FA is enabled, provide OTP during publish
85+
6586### ESLint Rules
6687- Strict type-checked config (` strictTypeChecked ` )
6788- No ` any ` — use ` unknown ` + type guards
Original file line number Diff line number Diff line change 1919 "test:e2e" : " playwright test" ,
2020 "lint" : " eslint src/ app/ components/ hooks/ lib/" ,
2121 "typecheck" : " tsc --noEmit" ,
22- "clean" : " rm -rf dist .next"
22+ "clean" : " rm -rf dist .next" ,
23+ "publish:npm" : " pnpm lint && pnpm typecheck && pnpm build && pnpm test && npm publish --access public"
2324 },
2425 "keywords" : [
2526 " codebase" ,
You can’t perform that action at this time.
0 commit comments