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
2 changes: 1 addition & 1 deletion .github/workflows/npm-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 24
cache: "yarn"
- name: Run NPM Install
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "16.x"
node-version: "24.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: cd packages/nextlove && yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 24
cache: "yarn"
- name: Run NPM Install
run: yarn install --frozen-lockfile
Expand Down
3 changes: 2 additions & 1 deletion apps/example-todo-app/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts"

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
16 changes: 8 additions & 8 deletions apps/example-todo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "rimraf dist && nsm build && tsup ./index.ts --dts --sourcemap && cpy .next dist/.next",
"build": "rimraf dist && nsm build && node -e \"const fs=require('fs'),c=require('./next.config.js');(async()=>{const r=typeof c.rewrites==='function'?await c.rewrites():(c.rewrites||{});fs.writeFileSync('.nsm/next.config.ts','export default '+JSON.stringify({rewrites:r},null,2)+'\\n')})()\" && tsup ./index.ts --dts --sourcemap && cpy .next dist/.next",
"build:openapi": "nextlove generate-openapi --packageDir . --apiName 'Example TODO API' --outputFile ./openapi.json",
"build:type": "nextlove generate-route-types --packageDir .",
"build:routespecs": "nextlove extract-route-specs --packageDir . --allowed-import-patterns '**/lib/zod.ts' --allowed-import-patterns '**/pages/api/**/*.ts' --outputFile dist/extracted-route-specs.mjs",
Expand All @@ -22,24 +22,24 @@
"glob-promise": "4.2.2",
"micro": "9.3.4",
"mkdirp": "^3.0.1",
"next": "12.2.0",
"next": "^16.0.0",
"nextlove": "*",
"path-to-regexp": "6.2.1",
"raw-body": "2.3.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"uuid": "^8.3.2",
"zod": "^4.3.5"
},
"devDependencies": {
"@types/node": "18.0.1",
"@types/qs": "^6.9.7",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.6",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"ava": "^5.0.1",
"esbuild-register": "^3.3.3",
"eslint": "8.19.0",
"eslint-config-next": "12.2.0",
"eslint": "^9.0.0",
"eslint-config-next": "^16.0.0",
"get-port": "5",
"prettier": "^2.7.1",
"qs": "^6.11.2",
Expand Down
17 changes: 13 additions & 4 deletions apps/example-todo-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
Expand All @@ -13,9 +17,14 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"baseUrl": "."
},
"include": ["next-env.d.ts", "**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts"
],
"exclude": [
"node_modules"
]
}
Loading