build: 更新ts@10

This commit is contained in:
roymondchen 2026-04-07 14:45:35 +08:00
parent df2d635682
commit 73c676931f
9 changed files with 670 additions and 490 deletions

View File

@ -10,17 +10,17 @@
}, },
"dependencies": { "dependencies": {
"@eslint/js": "^10.0.1", "@eslint/js": "^10.0.1",
"@typescript-eslint/parser": "^8.57.1", "@typescript-eslint/parser": "^8.58.0",
"@typescript-eslint/eslint-plugin": "^8.57.1", "@typescript-eslint/eslint-plugin": "^8.58.0",
"@stylistic/eslint-plugin": "^5.10.0", "@stylistic/eslint-plugin": "^5.10.0",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0", "eslint-plugin-import": "^2.32.0",
"eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-simple-import-sort": "^13.0.0",
"eslint-plugin-vue": "^10.8.0", "eslint-plugin-vue": "^10.8.0",
"vue-eslint-parser": "^10.3.0", "vue-eslint-parser": "^10.4.0",
"eslint-plugin-prettier": "^5.5.4", "eslint-plugin-prettier": "^5.5.5",
"globals": "^17.4.0", "globals": "^17.4.0",
"typescript-eslint": "^8.57.1" "typescript-eslint": "^8.58.0"
}, },
"peerDependencies": { "peerDependencies": {
"eslint": ">=10.0.0", "eslint": ">=10.0.0",

View File

@ -2,8 +2,8 @@
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"moduleResolution": "Node", "moduleResolution": "node16",
"module": "CommonJS", "module": "node16",
"rootDir": "./src", "rootDir": "./src",
"outDir": "./lib", "outDir": "./lib",
"declaration": true, "declaration": true,

View File

@ -1,7 +1,6 @@
{ {
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"baseUrl": "..",
}, },
"exclude": [ "exclude": [
"**/dist/**/*" "**/dist/**/*"

1133
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,6 @@ packages:
catalog: catalog:
vue: ^3.5.24 vue: ^3.5.24
'@vue/compiler-sfc': ^3.5.24 '@vue/compiler-sfc': ^3.5.24
vite: ^8.0.0 vite: ^8.0.3
typescript: "^5.9.3" typescript: "^6.0.2"

View File

@ -1,8 +1,8 @@
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { cloneDeep } from 'lodash-es'; import { cloneDeep } from 'lodash-es';
import type { ChangeEvent, MNode } from '@tmagic/core';
import type TMagicApp from '@tmagic/core'; import type TMagicApp from '@tmagic/core';
import type { ChangeEvent, MNode } from '@tmagic/core';
import { isPage, replaceChildNode } from '@tmagic/core'; import { isPage, replaceChildNode } from '@tmagic/core';
export const useDsl = (app: TMagicApp | undefined) => { export const useDsl = (app: TMagicApp | undefined) => {

View File

@ -1,7 +1,7 @@
import { cloneDeep } from 'lodash-es'; import { cloneDeep } from 'lodash-es';
import type { Id, MApp } from '@tmagic/core';
import type TMagicApp from '@tmagic/core'; import type TMagicApp from '@tmagic/core';
import type { Id, MApp } from '@tmagic/core';
import { getElById, replaceChildNode } from '@tmagic/core'; import { getElById, replaceChildNode } from '@tmagic/core';
import type { Magic, RemoveData, SortEventData, UpdateData } from '@tmagic/stage'; import type { Magic, RemoveData, SortEventData, UpdateData } from '@tmagic/stage';

View File

@ -1,7 +1,6 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"baseUrl": "./",
"jsx": "react", "jsx": "react",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"types": ["node"], "types": ["node"],

View File

@ -1,6 +1,5 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".",
"outDir": "temp", "outDir": "temp",
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",