From a5d33ea9db862e705a25d02db61cd9706ab71f38 Mon Sep 17 00:00:00 2001 From: robonen Date: Wed, 10 Apr 2024 16:48:32 +0700 Subject: [PATCH] refactor(repo): change cli generated exports in package.json --- cli.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.ts b/cli.ts index aa56207..a8e9dfa 100644 --- a/cli.ts +++ b/cli.ts @@ -30,13 +30,13 @@ const generatePackageJson = (name: string, path: string, hasVite: boolean) => { }, type: 'module', files: ['dist'], - main: './dist/index.cjs', + main: './dist/index.umd.js', module: './dist/index.js', types: './dist/index.d.ts', exports: { '.': { import: './dist/index.js', - require: './dist/index.cjs', + require: './dist/index.umd.js', types: './dist/index.d.ts', }, },