Skip to content

Commit a5d33ea

Browse files
committed
refactor(repo): change cli generated exports in package.json
1 parent c985b95 commit a5d33ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const generatePackageJson = (name: string, path: string, hasVite: boolean) => {
3030
},
3131
type: 'module',
3232
files: ['dist'],
33-
main: './dist/index.cjs',
33+
main: './dist/index.umd.js',
3434
module: './dist/index.js',
3535
types: './dist/index.d.ts',
3636
exports: {
3737
'.': {
3838
import: './dist/index.js',
39-
require: './dist/index.cjs',
39+
require: './dist/index.umd.js',
4040
types: './dist/index.d.ts',
4141
},
4242
},

0 commit comments

Comments
 (0)