diff --git a/src/operations/index.ts b/src/operations/index.ts index 462930c..1b3a6f1 100644 --- a/src/operations/index.ts +++ b/src/operations/index.ts @@ -30,7 +30,7 @@ var ngResource = require('angular-resource'), var balanceChartModule = require('./balance-chart.component'), categoryChartModule = require('./category-chart.component'); -import accountModule from '../accounts/index'; +import accountModule from '@accountant/accounts'; var OperationFactory = require('./operation.factory'); var OperationConfig = require('./operation.config'); diff --git a/webpack.config.js b/webpack.config.js index 5b2e547..9e35efb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,10 +10,14 @@ module.exports = { resolve: { extensions: ['.js', '.jsx', '.ts', '.tsx', '.html'], alias: { - '@accountant/accounts': './accounts/index.ts', - '@accountant/operations': './operations/index.ts', - '@accountant/login': './login/index.ts', - '@accountant/scheduler': './scheduler/index.ts' + '@accountant/accounts': path.resolve( + __dirname, 'src/accounts/index.ts'), + '@accountant/operations': path.resolve( + __dirname, 'src/operations/index.ts'), + '@accountant/login': path.resolve( + __dirname, 'src/login/index.ts'), + '@accountant/scheduler': path.resolve( + __dirname, 'src/scheduler/index.ts') } }, module: {