Skip to content

Commit

Permalink
Update import paths in codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
akdasa committed Jan 26, 2024
1 parent e2df094 commit f2f1166
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 24 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
],
moduleNameMapper: {
'^@akd-studios/framework/(.*)': '<rootDir>/lib/$1',
'^@lib/(.*)': '<rootDir>/lib/$1',
'^@tests/(.*)': '<rootDir>/tests/$1',
}
}
2 changes: 1 addition & 1 deletion lib/commands/Command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type AnyResult } from '../core'
import { type AnyResult } from '@akd-studios/framework/core'


/**
Expand Down
3 changes: 1 addition & 2 deletions lib/commands/ExecutionStack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type AnyCommand } from './Command'
import { Transaction } from './Transaction'
import { type AnyCommand, Transaction } from '@akd-studios/framework/commands'


/**
Expand Down
6 changes: 2 additions & 4 deletions lib/commands/Processor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { type AnyResult, Event } from '../core'
import { type AnyCommand, type Command } from './Command'
import { ExecutionStack } from './ExecutionStack'
import { Transaction } from './Transaction'
import { type AnyResult, Event } from '@akd-studios/framework/core'
import { type AnyCommand, type Command, ExecutionStack, Transaction } from '@akd-studios/framework/commands'


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/models/Builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Result } from '../../core'
import { Result } from '@akd-studios/framework/core'

/**
* Builds a new instance of the specified type or returns a failure result.
Expand Down
3 changes: 1 addition & 2 deletions lib/domain/models/Interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Identity } from './Identity'

import { Identity } from '@akd-studios/framework/domain/models'

/**
* Identifiable is an interface for all objects that have an identity.
Expand Down
3 changes: 2 additions & 1 deletion lib/domain/models/Value.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Equalable } from './Interfaces'
import { type Equalable } from '@akd-studios/framework/domain/models'


export class Value<TValueType> implements Equalable<Value<TValueType>> {
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/persistence/Query.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Aggregate, type AnyIdentity } from '../domain'
import { Aggregate, type AnyIdentity } from '@akd-studios/framework/domain/models'

/**
* Comparison operators. These are used to compare a field with a value.
Expand Down
5 changes: 3 additions & 2 deletions lib/persistence/Repository.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Aggregate, type AnyIdentity } from '../domain/models'
import { type Query } from '../persistence'
import { Aggregate, type AnyIdentity } from '@akd-studios/framework/domain'
import { type Query } from '@akd-studios/framework/persistence'


export interface ResultSetSlice {
start: number
Expand Down
5 changes: 3 additions & 2 deletions lib/persistence/memory/InMemoryQueryProcessor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Aggregate, type AnyIdentity, Identity, Value } from '../../domain/models'
import { type Binding, Expression, LogicalOperators, Operators, Predicate, type Query } from '../Query'
import { Aggregate, type AnyIdentity, Identity, Value } from '@akd-studios/framework/domain/models'
import { type Binding, Expression, LogicalOperators, Operators, Predicate, type Query } from '@akd-studios/framework/persistence'


export class InMemoryQueryProcessor<
TEntity extends Aggregate<AnyIdentity>
Expand Down
5 changes: 2 additions & 3 deletions lib/persistence/memory/InMemoryRepository.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Aggregate, type AnyIdentity } from '../../domain/models'
import { type Query } from '../Query'
import { type QueryOptions, type Repository, ResultSet } from '../Repository'
import { Aggregate, type AnyIdentity } from '@akd-studios/framework/domain/models'
import { type Query, type QueryOptions, type Repository, ResultSet } from '@akd-studios/framework/persistence'
import { InMemoryQueryProcessor } from './InMemoryQueryProcessor'


Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"@akd-studios/framework/*": [
"./lib/*"
],
"@lib/*": [
"./lib/*"
],
"@tests/*": [
"./tests/*"
]
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = {
resolve: {
extensions: ['.ts', '.tsx', '.js'],
alias: {
'@lib': path.resolve(__dirname, './lib'),
'@akd-studios/framework': path.resolve(__dirname, './lib'),
}
},
Expand Down

0 comments on commit f2f1166

Please sign in to comment.