relative path for types

This commit is contained in:
Jon McClure 2022-08-26 15:33:41 +01:00
parent 4a29b5c02b
commit 91e4d2aa1d

View file

@ -79,6 +79,7 @@ const build = async () => {
pkgExports['.'] = './dist/index.js';
const pkg = fs.readJSONSync(PACKAGE);
pkg.type = 'module';
pkg.types = './dist/@types/index.d.ts',
pkg.files = ['dist'];
pkg.private = false;
pkg.exports = pkgExports;