Skip to content

Commit

Permalink
Make common 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 cb591f2 commit b07a435
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.quoteStyle": "single"
}
2 changes: 1 addition & 1 deletion src/common/CircularList.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { assert } from 'chai';
import { CircularList } from './CircularList';
import { CircularList } from 'common/CircularList';

describe('CircularList', () => {
describe('push', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/common/CircularList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @license MIT
*/

import { EventEmitter } from './EventEmitter';
import { ICircularList } from './Types';
import { EventEmitter } from 'common/EventEmitter';
import { ICircularList } from 'common/Types';

export interface IInsertEvent {
index: number;
Expand Down
2 changes: 1 addition & 1 deletion src/common/Clone.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { assert, expect } from 'chai';
import { clone } from './Clone';
import { clone } from 'common/Clone';

describe('clone', () => {
it('should clone simple objects', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/common/EventEmitter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { assert } from 'chai';
import { EventEmitter } from './EventEmitter';
import { EventEmitter } from 'common/EventEmitter';

describe('EventEmitter', () => {
let eventEmitter: EventEmitter;
Expand Down
4 changes: 2 additions & 2 deletions src/common/EventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @license MIT
*/

import { IDisposable, IEventEmitter, XtermListener } from './Types';
import { Disposable } from './Lifecycle';
import { IDisposable, IEventEmitter, XtermListener } from 'common/Types';
import { Disposable } from 'common/Lifecycle';

export class EventEmitter extends Disposable implements IEventEmitter, IDisposable {
private _events: {[type: string]: XtermListener[]};
Expand Down
2 changes: 1 addition & 1 deletion src/common/Lifecycle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { assert } from 'chai';
import { Disposable } from './Lifecycle';
import { Disposable } from 'common/Lifecycle';

class TestDisposable extends Disposable {
public get isDisposed(): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/common/Lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @license MIT
*/

import { IDisposable } from './Types';
import { IDisposable } from 'common/Types';

/**
* A base class that can be extended to provide convenience methods for managing the lifecycle of an
Expand Down
2 changes: 1 addition & 1 deletion src/common/TypedArrayUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @license MIT
*/
import { assert } from 'chai';
import { fillFallback, concat } from './TypedArrayUtils';
import { fillFallback, concat } from 'common/TypedArrayUtils';

type TypedArray = Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray
| Int8Array | Int16Array | Int32Array
Expand Down
3 changes: 2 additions & 1 deletion src/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"extends": "../tsconfig-library-base",
"compilerOptions": {
"baseUrl": "..",
"outDir": "../../lib",
"types": [
"../../node_modules/@types/mocha"
]
},
"include": [ "./**/*" ]
"include": [ "." ]
}

0 comments on commit b07a435

Please sign in to comment.