chore: upgrade deps

This commit is contained in:
Kevin Deng
2025-12-03 05:39:22 +08:00
parent ef12724717
commit 2eba605dbe
7 changed files with 353 additions and 534 deletions

View File

@@ -1,14 +1,14 @@
{ {
"name": "vue-jsx-monorepo", "name": "vue-jsx-monorepo",
"type": "module",
"version": "2.0.1", "version": "2.0.1",
"private": true, "private": true,
"packageManager": "pnpm@10.23.0", "packageManager": "pnpm@10.24.0",
"type": "module", "license": "MIT",
"keywords": [ "keywords": [
"vue", "vue",
"jsx" "jsx"
], ],
"license": "MIT",
"scripts": { "scripts": {
"dev": "pnpm -C packages/jsx-explorer run dev", "dev": "pnpm -C packages/jsx-explorer run dev",
"build": "tsdown", "build": "tsdown",
@@ -22,24 +22,24 @@
"devDependencies": { "devDependencies": {
"@babel/plugin-syntax-typescript": "^7.27.1", "@babel/plugin-syntax-typescript": "^7.27.1",
"@rollup/plugin-babel": "^6.1.0", "@rollup/plugin-babel": "^6.1.0",
"@sxzz/eslint-config": "^7.3.2", "@sxzz/eslint-config": "^7.4.1",
"@sxzz/prettier-config": "^2.2.5", "@sxzz/prettier-config": "^2.2.6",
"@types/babel__core": "^7.20.5", "@types/babel__core": "^7.20.5",
"@types/babel__helper-module-imports": "^7.18.3", "@types/babel__helper-module-imports": "^7.18.3",
"@types/babel__helper-plugin-utils": "^7.10.3", "@types/babel__helper-plugin-utils": "^7.10.3",
"@types/node": "^24.10.1", "@types/node": "^24.10.1",
"@typescript/native-preview": "7.0.0-dev.20251202.1", "@typescript/native-preview": "7.0.0-dev.20251202.1",
"@vitest/coverage-v8": "^4.0.14", "@vitest/coverage-v8": "^4.0.15",
"@vue/babel-plugin-jsx": "workspace:*", "@vue/babel-plugin-jsx": "workspace:*",
"bumpp": "^10.3.1", "bumpp": "^10.3.2",
"eslint": "^9.39.1", "eslint": "^9.39.1",
"jsdom": "^27.2.0", "jsdom": "^27.2.0",
"prettier": "3.6.2", "prettier": "3.7.3",
"tsdown": "^0.16.7", "tsdown": "^0.17.0-beta.5",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "~5.9.3", "typescript": "~5.9.3",
"vite": "^7.2.4", "vite": "^7.2.6",
"vitest": "^4.0.14" "vitest": "^4.0.15"
}, },
"prettier": "@sxzz/prettier-config" "prettier": "@sxzz/prettier-config"
} }

View File

@@ -1,15 +1,15 @@
{ {
"name": "@vue/babel-helper-vue-transform-on", "name": "@vue/babel-helper-vue-transform-on",
"type": "module",
"version": "2.0.1", "version": "2.0.1",
"description": "to help transform on", "description": "to help transform on",
"type": "module", "author": "Amour1688 <lcz_1996@foxmail.com>",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
"directory": "packages/babel-helper-vue-transform-on" "directory": "packages/babel-helper-vue-transform-on"
}, },
"author": "Amour1688 <lcz_1996@foxmail.com>",
"exports": { "exports": {
".": "./index.mjs", ".": "./index.mjs",
"./package.json": "./package.json" "./package.json": "./package.json"

View File

@@ -1,25 +1,19 @@
{ {
"name": "@vue/babel-plugin-jsx", "name": "@vue/babel-plugin-jsx",
"type": "module",
"version": "2.0.1", "version": "2.0.1",
"description": "Babel plugin for Vue 3 JSX", "description": "Babel plugin for Vue 3 JSX",
"type": "module", "author": "Amour1688 <lcz_1996@foxmail.com>",
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-jsx#readme", "homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-jsx#readme",
"bugs": {
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
"directory": "packages/babel-plugin-jsx" "directory": "packages/babel-plugin-jsx"
}, },
"author": "Amour1688 <lcz_1996@foxmail.com>", "bugs": {
"files": [ "url": "https://github.com/vuejs/babel-plugin-jsx/issues"
"dist" },
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"dev": "./src/index.ts", "dev": "./src/index.ts",
@@ -27,6 +21,12 @@
}, },
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"publishConfig": { "publishConfig": {
"exports": { "exports": {
".": "./dist/index.js", ".": "./dist/index.js",

View File

@@ -1,26 +1,20 @@
{ {
"name": "@vue/babel-plugin-resolve-type", "name": "@vue/babel-plugin-resolve-type",
"type": "module",
"version": "2.0.1", "version": "2.0.1",
"description": "Babel plugin for resolving Vue types.", "description": "Babel plugin for resolving Vue types.",
"type": "module", "author": "Kevin Deng <sxzz@sxzz.moe>",
"license": "MIT", "license": "MIT",
"funding": "https://github.com/sponsors/sxzz",
"homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-resolve-type#readme", "homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-resolve-type#readme",
"bugs": {
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
"directory": "packages/babel-plugin-resolve-type" "directory": "packages/babel-plugin-resolve-type"
}, },
"author": "Kevin Deng <sxzz@sxzz.moe>", "bugs": {
"funding": "https://github.com/sponsors/sxzz", "url": "https://github.com/vuejs/babel-plugin-jsx/issues"
"files": [ },
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"dev": "./src/index.ts", "dev": "./src/index.ts",
@@ -28,6 +22,12 @@
}, },
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"publishConfig": { "publishConfig": {
"exports": { "exports": {
".": "./dist/index.js", ".": "./dist/index.js",

View File

@@ -75,15 +75,12 @@ const plugin: (
if (!t.isIdentifier(node.callee, { name: 'defineComponent' })) return if (!t.isIdentifier(node.callee, { name: 'defineComponent' })) return
if (!checkDefineComponent(path)) return if (!checkDefineComponent(path)) return
// eslint-disable-next-line baseline-js/use-baseline
const comp = node.arguments[0] const comp = node.arguments[0]
if (!comp || !t.isFunction(comp)) return if (!comp || !t.isFunction(comp)) return
// eslint-disable-next-line baseline-js/use-baseline
let options = node.arguments[1] let options = node.arguments[1]
if (!options) { if (!options) {
options = t.objectExpression([]) options = t.objectExpression([])
// eslint-disable-next-line baseline-js/use-baseline
node.arguments.push(options) node.arguments.push(options)
} }
@@ -94,12 +91,9 @@ const plugin: (
emitsGenerics = node.typeParameters.params[1] emitsGenerics = node.typeParameters.params[1]
} }
// eslint-disable-next-line baseline-js/use-baseline
node.arguments[1] = node.arguments[1] =
processProps(comp, propsGenerics, options) || options processProps(comp, propsGenerics, options) || options
// eslint-disable-next-line baseline-js/use-baseline
node.arguments[1] = node.arguments[1] =
// eslint-disable-next-line baseline-js/use-baseline
processEmits(comp, emitsGenerics, node.arguments[1]) || options processEmits(comp, emitsGenerics, node.arguments[1]) || options
}, },
VariableDeclarator(path) { VariableDeclarator(path) {
@@ -131,7 +125,6 @@ const plugin: (
if (args.length === 0) return if (args.length === 0) return
if (args.length === 1) { if (args.length === 1) {
// eslint-disable-next-line baseline-js/use-baseline
init.node.arguments.push(t.objectExpression([])) init.node.arguments.push(t.objectExpression([]))
} }
args[1] = addProperty(t, args[1], nameProperty) args[1] = addProperty(t, args[1], nameProperty)

View File

@@ -1,8 +1,8 @@
{ {
"name": "@vue/jsx-explorer", "name": "@vue/jsx-explorer",
"type": "module",
"version": "2.0.1", "version": "2.0.1",
"private": true, "private": true,
"type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",

806
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff