Skip to content

Commit f58a272

Browse files
committed
fix: resolve ESM import issue in the package.
1 parent f658291 commit f58a272

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

core/src/comps/Copied.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useStore } from '../store';
33
import { useSectionStore, type SectionElementResult } from '../store/Section';
44
import { useShowToolsStore } from '../store/ShowTools';
55
import { type TagType } from '../store/Types';
6-
import { bigIntToString } from '../types';
6+
import { bigIntToString } from '../types/';
77

88
export type CopiedOption<T extends object> = {
99
value?: T;

core/src/comps/KeyValues.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Value } from './Value';
66
import { KeyNameComp } from '../section/KeyName';
77
import { RowComp } from '../section/Row';
88
import { Container } from '../Container';
9-
import { Quote, Colon } from '../symbol';
9+
import { Quote, Colon } from '../symbol/';
1010
import { useHighlight } from '../utils/useHighlight';
1111
import { type SectionElementResult } from '../store/Section';
1212
import { Copied } from '../comps/Copied';

core/src/comps/NestedClose.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useStore } from '../store';
22
import { useExpandsStore } from '../store/Expands';
3-
import { BracketsClose } from '../symbol';
3+
import { BracketsClose } from '../symbol/';
44

55
interface NestedCloseProps<T extends object> {
66
value?: T;

core/src/comps/NestedOpen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { useStore } from '../store';
44
import { Copied } from './Copied';
55
import { CountInfoExtraComps } from '../section/CountInfoExtra';
66
import { CountInfoComp } from '../section/CountInfo';
7-
import { Arrow, BracketsOpen, BracketsClose } from '../symbol';
7+
import { Arrow, BracketsOpen, BracketsClose } from '../symbol/';
88
import { EllipsisComp } from '../section/Ellipsis';
9-
import { SetComp, MapComp } from '../types';
9+
import { SetComp, MapComp } from '../types/';
1010
import { type SectionElementResult } from '../store/Section';
1111

1212
export interface NestedOpenProps<T extends object> extends SectionElementResult<T> {

core/src/comps/Value.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
TypeUndefined,
1111
TypeNan,
1212
TypeUrl,
13-
} from '../types';
13+
} from '../types/';
1414
export const isFloat = (n: number) => (Number(n) === n && n % 1 !== 0) || isNaN(n);
1515

1616
interface ValueProps {

core/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export * from './store/Expands';
3737
export * from './store/ShowTools';
3838
export * from './store/Symbols';
3939
export * from './store/Types';
40-
export * from './symbol';
40+
export * from './symbol/';
4141

4242
export interface JsonViewProps<T extends object>
4343
extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {

core/src/types/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FC, Fragment, PropsWithChildren, useEffect, useState } from 'react';
22
import { useStore } from '../store';
33
import { useTypesStore } from '../store/Types';
4-
import { ValueQuote } from '../symbol';
4+
import { ValueQuote } from '../symbol/';
55

66
export const bigIntToString = (bi?: BigInt | string) => {
77
if (bi === undefined) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"lint-staged": "^15.0.0",
3333
"lerna": "^8.0.0",
3434
"prettier": "^3.0.0",
35-
"tsbb": "^4.1.0"
35+
"tsbb": "^4.5.1"
3636
}
3737
}

0 commit comments

Comments
 (0)