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
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
cache-dependency-path: ./packages/nextjs-cache-handler/package-lock.json
- run: npm ci
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: npm run build --if-present
- run: npm test
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
- name: Copy README file to package directory
run: |
cp ../../README.md .
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: npm
cache: pnpm
node-version: lts/*
cache-dependency-path: ${{ env.rootDir }}/package-lock.json
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: pnpm install --frozen-lockfile
- name: Publish to npm
run: |
if [ "${{ github.event.inputs.prerelease }}" == "true" ]; then
Expand Down
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Turborepo
.turbo

# Dependencies
node_modules


# Build outputs
dist
.next

# Logs
*.log

# OS
.DS_Store

# IDE
.vscode
.idea
*.swp
*.swo

4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# pnpm configuration
shamefully-hoist=true
strict-peer-dependencies=false

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,22 @@ export default async function handler(request, response) {

---

## Contributing

This project uses [Turborepo](https://turbo.build/repo) to manage the monorepo structure with the main package and examples.

### Prerequisites

- Node.js >= 22.0.0
- pnpm >= 9.0.0

### Development Workflow

- **Start dev server**: `pnpm dev` (runs all dev servers in parallel)
- **Run all tests**: `pnpm test`

---

## License

Licensed under the [MIT License](./LICENSE), consistent with the original `@neshca/cache-handler`.
Loading