mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 19:04:46 +00:00
refactor(repo): change cli generated exports in package.json
This commit is contained in:
4
cli.ts
4
cli.ts
@@ -30,13 +30,13 @@ const generatePackageJson = (name: string, path: string, hasVite: boolean) => {
|
|||||||
},
|
},
|
||||||
type: 'module',
|
type: 'module',
|
||||||
files: ['dist'],
|
files: ['dist'],
|
||||||
main: './dist/index.cjs',
|
main: './dist/index.umd.js',
|
||||||
module: './dist/index.js',
|
module: './dist/index.js',
|
||||||
types: './dist/index.d.ts',
|
types: './dist/index.d.ts',
|
||||||
exports: {
|
exports: {
|
||||||
'.': {
|
'.': {
|
||||||
import: './dist/index.js',
|
import: './dist/index.js',
|
||||||
require: './dist/index.cjs',
|
require: './dist/index.umd.js',
|
||||||
types: './dist/index.d.ts',
|
types: './dist/index.d.ts',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user