Skip to content

Commit

Permalink
chore: support for node 22, fix docs, update tsconfig generation (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kopach authored Feb 5, 2025
1 parent a24d5d9 commit 8fd78a5
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: ./docs/docs-site/out
path: ./dist/docs/docs-site

deploy:
environment:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs-site/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"workerDirectory": ".storybook/msw"
},
"engines": {
"node": ">=18.20.0 <19",
"node": ">=18.20.0 <23",
"pnpm": ">=9.12.0 <10",
"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",
"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"
Expand Down
2 changes: 1 addition & 1 deletion packages/create/bin/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"jscodeshift": "0.11.0",
"lodash": "4.17.21",
"mdast": "3.0.0",
"next": "14.0.4",
"next": "14.2.21",
"next-connect": "0.12.1",
"node-fetch": "2.6.7",
"nx": "17.3.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {NormalizedCacheObject} from '@apollo/client';
import {DehydratedState} from '@tanstack/react-query';

export interface HomePagePropsType = {
export interface HomePagePropsType {
dehydratedApolloClient?: NormalizedCacheObject;
dehydratedQueryClient?: DehydratedState;
};
Expand All @@ -13,7 +13,7 @@
<% if (apollo && !reactQuery) { %>
import {NormalizedCacheObject} from '@apollo/client';

export interface HomePagePropsType = {
export interface HomePagePropsType {
dehydratedApolloClient?: NormalizedCacheObject;
};
<% } %>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"jsx": "react-jsx",
"allowJs": false,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"extends": "../../tsconfig.base.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export const updateCypressTsConfig = (tree: Tree, e2ePath: string) => {
compilerOptions: {
allowJs: true,
isolatedModules: false,
strict: true,
strictNullChecks: true,
noUncheckedIndexedAccess: true,
noFallthroughCasesInSwitch: true,
forceConsistentCasingInFileNames: true,
types: [
...(json?.compilerOptions?.types || []),
'@testing-library/cypress',
Expand Down

0 comments on commit 8fd78a5

Please sign in to comment.