From 70ab76d9d0dd95dd9ae5b0498a1e26375cd97e1a Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Tue, 7 Nov 2023 02:11:54 +0800 Subject: [PATCH] chore: fix build by main export --- packages/client/package.json | 2 ++ packages/plugin-babylon/package.json | 6 ++---- packages/unocss/package.json | 6 +++--- packages/vrm/.vscode/settings.json | 5 +++++ 4 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 packages/vrm/.vscode/settings.json diff --git a/packages/client/package.json b/packages/client/package.json index a3cd6842..4fc1171d 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -16,8 +16,10 @@ }, "bugs": "https://github.com/YunYouJun/advjs/issues", "exports": { + ".": "./index.ts", "./*": "./*" }, + "main": "index.ts", "types": "types/index.ts", "engines": { "node": ">=14.0.0" diff --git a/packages/plugin-babylon/package.json b/packages/plugin-babylon/package.json index 9d95bc33..15907795 100644 --- a/packages/plugin-babylon/package.json +++ b/packages/plugin-babylon/package.json @@ -23,13 +23,11 @@ ], "exports": { ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": "./dist/index.mjs" }, "./*": "./*" }, - "main": "dist/index.js", - "module": "dist/index.mjs", + "main": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ "*.d.ts", diff --git a/packages/unocss/package.json b/packages/unocss/package.json index 86bcaca4..45be7c06 100644 --- a/packages/unocss/package.json +++ b/packages/unocss/package.json @@ -1,13 +1,13 @@ { "name": "@advjs/unocss", + "type": "module", "version": "0.0.1", "exports": { ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.cjs" + "import": "./dist/index.mjs" } }, - "main": "dist/index.cjs", + "main": "dist/index.mjs", "scripts": { "build": "unbuild", "dev": "unbuild --stub", diff --git a/packages/vrm/.vscode/settings.json b/packages/vrm/.vscode/settings.json new file mode 100644 index 00000000..90be503b --- /dev/null +++ b/packages/vrm/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "i18n-ally.localesPaths": [ + "locales" + ] +}