Skip to content

Commit

Permalink
Make core use non-relative imports
Browse files Browse the repository at this point in the history
Part of xtermjs#1314
  • Loading branch information
Tyriar committed Apr 10, 2019
1 parent b07a435 commit a97e692
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/core/input/Keyboard.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import { assert } from 'chai';
import { evaluateKeyboardEvent } from './Keyboard';
import { IKeyboardResult } from '../Types';
import { IKeyboardEvent } from '../../common/Types';
import { evaluateKeyboardEvent } from 'core/input/Keyboard';
import { IKeyboardResult } from 'core/Types';
import { IKeyboardEvent } from 'common/Types';

/**
* A helper function for testing which allows passing in a partial event and defaults will be filled
Expand Down
6 changes: 3 additions & 3 deletions src/core/input/Keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* @license MIT
*/

import { IKeyboardEvent } from '../../common/Types';
import { IKeyboardResult, KeyboardResultType } from '../Types';
import { C0 } from '../../common/data/EscapeSequences';
import { IKeyboardEvent } from 'common/Types';
import { IKeyboardResult, KeyboardResultType } from 'core/Types';
import { C0 } from 'common/data/EscapeSequences';

// reg + shift key mappings for digits and special chars
const KEYCODE_KEY_MAPPINGS: { [key: number]: [string, string]} = {
Expand Down
2 changes: 1 addition & 1 deletion src/core/input/TextDecoder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { assert } from 'chai';
import { StringToUtf32, stringFromCodePoint, utf32ToString } from './TextDecoder';
import { StringToUtf32, stringFromCodePoint, utf32ToString } from 'core/input/TextDecoder';

describe('text encodings', () => {
it('stringFromCodePoint/utf32ToString', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"extends": "../tsconfig-library-base",
"compilerOptions": {
"baseUrl": "..",
"outDir": "../../lib",
"types": [
"../../node_modules/@types/mocha"
]
},
"include": [ "./**/*" ],
"include": [ "." ],
"references": [
{ "path": "../common" }
]
Expand Down

0 comments on commit a97e692

Please sign in to comment.