From 9ca7f4b7fe87ac09deea541c6b766695627cb26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 10 Mar 2025 02:09:16 +0800 Subject: [PATCH] fix: resolve publint issues --- packages/babel-helper-vue-transform-on/package.json | 3 ++- packages/babel-plugin-jsx/package.json | 10 +++++++++- packages/babel-plugin-resolve-type/package.json | 3 ++- packages/jsx-explorer/vite.config.ts | 2 ++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/babel-helper-vue-transform-on/package.json b/packages/babel-helper-vue-transform-on/package.json index 06c2fe8..5de9469 100644 --- a/packages/babel-helper-vue-transform-on/package.json +++ b/packages/babel-helper-vue-transform-on/package.json @@ -1,6 +1,7 @@ { "name": "@vue/babel-helper-vue-transform-on", "version": "1.3.0", + "type": "commonjs", "description": "to help transform on", "author": "Amour1688 ", "license": "MIT", @@ -8,6 +9,6 @@ "types": "index.d.ts", "repository": { "type": "git", - "url": "git+https://github.com/vuejs/babel-plugin-jsx" + "url": "git+https://github.com/vuejs/babel-plugin-jsx.git" } } diff --git a/packages/babel-plugin-jsx/package.json b/packages/babel-plugin-jsx/package.json index 8c5042a..04a089a 100644 --- a/packages/babel-plugin-jsx/package.json +++ b/packages/babel-plugin-jsx/package.json @@ -5,12 +5,20 @@ "author": "Amour1688 ", "homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-jsx#readme", "license": "MIT", + "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "exports": { + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.js" + }, + "./*": "./*" + }, "repository": { "type": "git", - "url": "git+https://github.com/vuejs/babel-plugin-jsx" + "url": "git+https://github.com/vuejs/babel-plugin-jsx.git" }, "scripts": { "build": "tsup", diff --git a/packages/babel-plugin-resolve-type/package.json b/packages/babel-plugin-resolve-type/package.json index 396339f..af260a0 100644 --- a/packages/babel-plugin-resolve-type/package.json +++ b/packages/babel-plugin-resolve-type/package.json @@ -6,6 +6,7 @@ "funding": "https://github.com/sponsors/sxzz", "homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-resolve-type#readme", "license": "MIT", + "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", @@ -19,7 +20,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vuejs/babel-plugin-jsx" + "url": "git+https://github.com/vuejs/babel-plugin-jsx.git" }, "publishConfig": { "exports": { diff --git a/packages/jsx-explorer/vite.config.ts b/packages/jsx-explorer/vite.config.ts index da4948a..3ffddb8 100644 --- a/packages/jsx-explorer/vite.config.ts +++ b/packages/jsx-explorer/vite.config.ts @@ -15,6 +15,8 @@ export default defineConfig({ VueJSX(), Replace({ values: { + 'process.env': '{}', + 'process.env.NODE_DEBUG': 'false', 'process.env.BABEL_TYPES_8_BREAKING': 'false', }, }),