Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency typescript to v5.6.2 #1460

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
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: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"storybook": "7.6.20",
"ts-mocha": "10.0.0",
"ts-node": "10.9.2",
"typescript": "5.5.4",
"typescript": "5.6.2",
"typescript-eslint": "8.7.0",
"vite-tsconfig-paths": "5.0.1",
"vitest": "2.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/web-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/tsconfig": "3.5.2",
"@docusaurus/types": "3.5.2",
"typescript": "5.5.4"
"typescript": "5.6.2"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion packages/web-main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"scripts": {
"start:dev": "vite dev --port 13001 --host 0.0.0.0",
"build": "NODE_OPTIONS=--max-old-space-size=8195 vite build && tsc --noemit",
"build": "NODE_OPTIONS=--max-old-space-size=12195 vite build && tsc --noemit",
"test": "npm run test:unit",
"test:unit": "CI=true vitest",
"test:watch": "vitest --watch"
Expand Down
4 changes: 2 additions & 2 deletions packages/web-main/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { queryClient } from './queryClient';
import { routeTree } from './routeTree.gen';
import { createRouter } from '@tanstack/react-router';
import { createRouter, Router } from '@tanstack/react-router';
import { QueryClient } from '@tanstack/react-query';
import { DefaultErrorComponent } from 'components/ErrorComponent';
import { IAuthContext } from 'hooks/useAuth';
Expand All @@ -11,7 +11,7 @@ export interface RouterContext {
auth: IAuthContext;
}

export const router = createRouter({
export const router: Router<typeof routeTree, 'never'> = createRouter({
routeTree,
context: {
auth: {
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ npm run-script -w packages/lib-function-helpers build

npm run-script -w packages/test build

npx ts-node scripts/getMonacoCustomTypes.ts
node scripts/getMonacoCustomTypes.mjs

# npm run-script -w packages/app-api build
# npm run-script -w packages/app-agent build
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
import fs from 'fs-extra';
import path from 'path';

async function getDts({ nodeModulesPath, packages }: { nodeModulesPath: string; packages: string[] }) {
const typings: Record<string, string> = {};
const parsedPackages: Record<string, boolean> = {};
import * as url from 'url';
const __dirname = url.fileURLToPath(new url.URL('.', import.meta.url));

async function getTypingsForPackages(packages: string[] = []) {
async function getDts({ nodeModulesPath, packages }) {
const typings = {};
const parsedPackages = {};

async function getTypingsForPackages(packages = []) {
for (const packageName of packages) {
console.log(`Getting typings for package: ${packageName}`);
if (!parsedPackages[packageName]) {
Expand All @@ -35,7 +38,7 @@ async function getDts({ nodeModulesPath, packages }: { nodeModulesPath: string;
}
}

async function getTypingsInDir(path: string) {
async function getTypingsInDir(path) {
const dts = await fs.readdir(`${nodeModulesPath}/${path}`);
for (const fileName of dts) {
if (fileName.endsWith('.d.ts')) {
Expand Down
Loading