Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ jobs:
cache: "npm"

- name: Install dependencies
run: npm ci
run: npm ci --include=dev

- name: Verify core framework dependencies
run: |
node -e "const pkgs=['next','react','react-dom']; for (const pkg of pkgs){const path=require.resolve(pkg + '/package.json'); const version=require(path).version; console.log(pkg + '@' + version)}"
test -f node_modules/next/dist/bin/next

- name: Lockfile reproducibility check
run: git diff --exit-code package-lock.json

- name: Typecheck
run: npm run typecheck
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ npm ci
### Notes

- `dist/` is generated output and should not be committed.
- `package-lock.json` must be generated by npm commands (`npm install` / `npm ci`) and never hand-edited.
- CI validates lockfile reproducibility after install; any unintended lockfile changes should fail the build.
- CI runs `npm ci`, `npm run typecheck`, and `npm run build` on every PR/push.
- Git hooks are managed by Husky and installed automatically on `npm ci`.

5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Loading