Skip to content

Commit 8fd78a5

Browse files
authored
chore: support for node 22, fix docs, update tsconfig generation (#54)
1 parent a24d5d9 commit 8fd78a5

File tree

7 files changed

+35
-6
lines changed

7 files changed

+35
-6
lines changed

.github/workflows/build-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Upload artifact
4646
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
4747
with:
48-
path: ./docs/docs-site/out
48+
path: ./dist/docs/docs-site
4949

5050
deploy:
5151
environment:

docs/docs-site/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"workerDirectory": ".storybook/msw"
194194
},
195195
"engines": {
196-
"node": ">=18.20.0 <19",
196+
"node": ">=18.20.0 <23",
197197
"pnpm": ">=9.12.0 <10",
198198
"yarn": "\n╔═════════════════════════════════════════════════════════════╗\n║ ║\n║ Use 'pnpm install' for installation in this project. ║\n║ ║\n║ If you don't have pnpm, install it via 'npm i -g pnpm'. ║\n║ For more details, go to https://pnpm.js.org/ ║\n║ ║\n╚═════════════════════════════════════════════════════════════╝\n",
199199
"npm": "\n╔═════════════════════════════════════════════════════════════╗\n║ ║\n║ Use 'pnpm install' for installation in this project. ║\n║ ║\n║ If you don't have pnpm, install it via 'npm i -g pnpm'. ║\n║ For more details, go to https://pnpm.js.org/ ║\n║ ║\n╚═════════════════════════════════════════════════════════════╝\n"

packages/create/bin/versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"jscodeshift": "0.11.0",
2626
"lodash": "4.17.21",
2727
"mdast": "3.0.0",
28-
"next": "14.0.4",
28+
"next": "14.2.21",
2929
"next-connect": "0.12.1",
3030
"node-fetch": "2.6.7",
3131
"nx": "17.3.2",

packages/gene-tools/src/generators/bff-app-generator/files/app/types/types.ts__tmpl__

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import {NormalizedCacheObject} from '@apollo/client';
44
import {DehydratedState} from '@tanstack/react-query';
55

6-
export interface HomePagePropsType = {
6+
export interface HomePagePropsType {
77
dehydratedApolloClient?: NormalizedCacheObject;
88
dehydratedQueryClient?: DehydratedState;
99
};
@@ -13,7 +13,7 @@
1313
<% if (apollo && !reactQuery) { %>
1414
import {NormalizedCacheObject} from '@apollo/client';
1515

16-
export interface HomePagePropsType = {
16+
export interface HomePagePropsType {
1717
dehydratedApolloClient?: NormalizedCacheObject;
1818
};
1919
<% } %>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"jsx": "react-jsx",
4+
"allowJs": false,
5+
"esModuleInterop": false,
6+
"allowSyntheticDefaultImports": true,
7+
"strict": true,
8+
"strictNullChecks": true,
9+
"noUncheckedIndexedAccess": true,
10+
"noFallthroughCasesInSwitch": true,
11+
"forceConsistentCasingInFileNames": true
12+
},
13+
"files": [],
14+
"include": [],
15+
"references": [
16+
{
17+
"path": "./tsconfig.lib.json"
18+
},
19+
{
20+
"path": "./tsconfig.spec.json"
21+
}
22+
],
23+
"extends": "../../tsconfig.base.json"
24+
}

packages/gene-tools/src/generators/utilities/update-cypress-json-config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export const updateCypressTsConfig = (tree: Tree, e2ePath: string) => {
88
compilerOptions: {
99
allowJs: true,
1010
isolatedModules: false,
11+
strict: true,
12+
strictNullChecks: true,
13+
noUncheckedIndexedAccess: true,
14+
noFallthroughCasesInSwitch: true,
15+
forceConsistentCasingInFileNames: true,
1116
types: [
1217
...(json?.compilerOptions?.types || []),
1318
'@testing-library/cypress',

0 commit comments

Comments
 (0)