Skip to content

Commit

Permalink
Fix imports. Avoid importing from 'xxxx/src', which breaks the ESM
Browse files Browse the repository at this point in the history
import rewriting at the moment.
  • Loading branch information
ronyeh committed Jan 6, 2022
1 parent af71abf commit 0c874f2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/annotation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

import { TestOptions, VexFlowTests } from './vexflow_test_helpers';

import { ModifierPosition } from '../src';
import { Annotation } from '../src/annotation';
import { Beam } from '../src/beam';
import { Bend } from '../src/bend';
import { Flow } from '../src/flow';
import { Font, FontStyle, FontWeight } from '../src/font';
import { Formatter } from '../src/formatter';
import { ModifierPosition } from '../src/modifier';
import { Registry } from '../src/registry';
import { ContextBuilder } from '../src/renderer';
import { Stave } from '../src/stave';
Expand Down
2 changes: 1 addition & 1 deletion tests/bend_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import { TestOptions, VexFlowTests } from './vexflow_test_helpers';

import { Font } from '../src';
import { Bend, BendPhrase } from '../src/bend';
import { Font } from '../src/font';
import { Formatter } from '../src/formatter';
import { ModifierContext } from '../src/modifiercontext';
import { Note } from '../src/note';
Expand Down
26 changes: 11 additions & 15 deletions tests/font_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@

import { TestOptions, VexFlowTests } from './vexflow_test_helpers';

import {
Accidental,
Bend,
CanvasContext,
Element,
Flow,
Font,
FontStyle,
FontWeight,
PedalMarking,
StaveNote,
TextBracket,
TextNote,
Voice,
} from '../src';
import { Accidental } from '../src/accidental';
import { Bend } from '../src/bend';
import { CanvasContext } from '../src/canvascontext';
import { Element } from '../src/element';
import { Flow } from '../src/flow';
import { Font, FontStyle, FontWeight } from '../src/font';
import { PedalMarking } from '../src/pedalmarking';
import { StaveNote } from '../src/stavenote';
import { TextBracket } from '../src/textbracket';
import { TextNote } from '../src/textnote';
import { Voice } from '../src/voice';

const FontTests = {
Start(): void {
Expand Down
5 changes: 4 additions & 1 deletion tests/key_clef_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

import { MAJOR_KEYS, MINOR_KEYS, TestOptions, VexFlowTests } from './vexflow_test_helpers';

import { ContextBuilder, Glyph, KeySignature, Stave } from '../src';
import { Glyph } from '../src/glyph';
import { KeySignature } from '../src/keysignature';
import { ContextBuilder } from '../src/renderer';
import { Stave } from '../src/stave';

const ClefKeySignatureTests = {
Start(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/textnote_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import { TestOptions, VexFlowTests } from './vexflow_test_helpers';

import { Font } from '../src';
import { Crescendo } from '../src/crescendo';
import { Flow } from '../src/flow';
import { Font } from '../src/font';
import { Note } from '../src/note';
import { Stave } from '../src/stave';
import { TextNote } from '../src/textnote';
Expand Down

0 comments on commit 0c874f2

Please sign in to comment.