Skip to content

Commit

Permalink
release v2.0.0-beta.7 - fix locale esm?
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Oct 23, 2023
1 parent 221e6d2 commit e5a9a05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion packages/material-react-table/build-locales.mjs
@@ -1,3 +1,4 @@
/* eslint-disable perfectionist/sort-objects */
import typescript from '@rollup/plugin-typescript';
import fs from 'fs';
import { rollup } from 'rollup';
Expand Down Expand Up @@ -66,7 +67,7 @@ async function build(locale) {
});

const typeFile = `import { type MRT_Localization } from '../..';
export declare const MRT_Localization_${locale
export declare const MRT_Localization_${locale
.toUpperCase()
.replaceAll('-', '_')}: MRT_Localization;
`;
Expand All @@ -89,6 +90,14 @@ async function build(locale) {
module: './index.esm.js',
sideEffects: false,
types: './index.d.ts',
exports: {
'.': {
types: './index.d.ts',
import: './index.esm.js',
require: './index.js',
},
'./package.json': './package.json',
},
},
null,
2,
Expand Down
2 changes: 1 addition & 1 deletion packages/material-react-table/package.json
@@ -1,5 +1,5 @@
{
"version": "2.0.0-beta.6",
"version": "2.0.0-beta.7",
"license": "MIT",
"name": "material-react-table",
"description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
Expand Down

0 comments on commit e5a9a05

Please sign in to comment.