Skip to content

Commit eee3ebe

Browse files
Do not rely on baseUrl and instead import files via relative pathing
baseUrl in tsconfig only affects ts files, and the dist is built js files. This means when looking, webpack doesn't know where 'config' is. It needs '../config' See angular/angular-cli#8036 (comment) for the explaination
1 parent a034fd4 commit eee3ebe

22 files changed

Lines changed: 23 additions & 23 deletions

‎lib/stock/chart.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22
import { RangeOption } from './range';
33

44
// https://iextrading.com/developer/docs/#chart

‎lib/stock/company.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#company
44
export namespace Company {

‎lib/stock/delayed-quote.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#delayed-quote
44
// The 15 minute delayed market quote.

‎lib/stock/dividends.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22
import { RangeOption } from './range'
33

44
// https://iextrading.com/developer/docs/#dividends

‎lib/stock/earnings.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#earnings
44
// Pulls data from the four most recent reported quarters.

‎lib/stock/effective-spread.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#effective-spread
44
/**

‎lib/stock/financials.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#financials
44
// Pulls income statement, balance sheet, and cash flow data from the four most recent reported quarters.

‎lib/stock/largest-trades.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#largest-trades
44
// This returns 15 minute delayed, last sale eligible trades.

‎lib/stock/list.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22
import { Quote } from './quote'
33

44
// https://iextrading.com/developer/docs/#list

‎lib/stock/logo.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PREFIX } from 'config';
1+
import { PREFIX } from '../config';
22

33
// https://iextrading.com/developer/docs/#logo
44
// This is a helper function, but the google APIs url is standardized.

0 commit comments

Comments
 (0)