1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

refactor(repo): change cli generated exports in package.json

This commit is contained in:
2024-04-10 16:48:32 +07:00
parent c985b95fc5
commit a5d33ea9db

4
cli.ts
View File

@@ -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',
},
},