add exports fields to published packages
This commit is contained in:
@@ -43,6 +43,10 @@ function main() {
|
|||||||
module: './dist/index.mjs',
|
module: './dist/index.mjs',
|
||||||
types: './dist/index.d.ts',
|
types: './dist/index.d.ts',
|
||||||
files: ['dist'],
|
files: ['dist'],
|
||||||
|
exports: {
|
||||||
|
import: './dist/index.js',
|
||||||
|
require: './dist/index.cjs',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user