Skip to content

Commit d9041cc

Browse files
authored
Merge pull request #28 from dolittle/FixingImports
Making sibling imports explicit
2 parents bcbfee8 + 8f80887 commit d9041cc

85 files changed

Lines changed: 204 additions & 154 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Source/artifacts/Artifact.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// Copyright (c) Dolittle. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
import {
5-
Generation,
6-
ArtifactId,
7-
ArtifactsFromDecorators
8-
} from './index';
4+
import { Generation } from './Generation';
5+
import { ArtifactId } from './ArtifactId';
96
import { Guid } from '@dolittle/rudiments';
107

118
/**

Source/artifacts/ArtifactAssociation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
import { Constructor } from '@dolittle/types';
5-
import { Artifact } from './index';
5+
import { Artifact } from './Artifact';
66

77
/**
88
* Represents an association between a type and an artifact.

Source/artifacts/ArtifactMap.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Copyright (c) Dolittle. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
import { Artifact, ArtifactId, Generation } from './index';
5-
import { Guid } from '@dolittle/rudiments';
4+
import { Artifact } from './Artifact';
65

76
/**
87
* Represents a map for mapping an artifact to a given type and provide.

Source/artifacts/Artifacts.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33

44
import { BehaviorSubject, ReplaySubject } from 'rxjs';
55
import { Constructor } from '@dolittle/types';
6-
import {
7-
IArtifacts,
8-
ArtifactAssociation,
9-
Artifact,
10-
ArtifactsFromDecorators,
11-
ArtifactId,
12-
UnknownType,
13-
UnableToResolveArtifact,
14-
UnknownArtifact,
15-
Generation
16-
} from './index';
6+
import { IArtifacts } from './IArtifacts';
7+
import { ArtifactAssociation } from './';
8+
import { Artifact } from './Artifact';
9+
import { ArtifactsFromDecorators } from './ArtifactsFromDecorators';
10+
import { ArtifactId } from './ArtifactId';
11+
import { UnknownType } from './UnknownType';
12+
import { UnableToResolveArtifact } from './UnableToResolveArtifact';
13+
import { UnknownArtifact } from './UnknownArtifact';
14+
import { Generation } from './Generation';
1715

1816
/**
1917
* Represents an implementation of {IArtifacts}

Source/artifacts/ArtifactsBuilder.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
import { Constructor } from '@dolittle/types';
5-
import { ArtifactId, Artifact, Artifacts, IArtifacts, Generation } from './index';
5+
import { Artifact } from './Artifact';
6+
import { ArtifactId } from './ArtifactId';
7+
import { Artifacts } from './Artifacts';
8+
import { IArtifacts } from './IArtifacts';
9+
import { Generation } from './Generation';
610
import { Guid } from '@dolittle/rudiments';
711

812
export type ArtifactsBuilderCallback = (builder: ArtifactsBuilder) => void;

Source/artifacts/ArtifactsFromDecorators.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33

44
import { ReplaySubject } from 'rxjs';
55
import { Constructor } from '@dolittle/types';
6-
import { Generation, ArtifactId, Artifact, ArtifactAssociation } from './index';
6+
import { Generation } from './Generation';
7+
import { ArtifactId } from './ArtifactId';
8+
import { Artifact } from './Artifact';
9+
import { ArtifactAssociation } from './ArtifactAssociation';
710

811
/**
912
* Represents artifacts coming from decorators.

Source/artifacts/Generation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33
import isNaturalNumber from 'is-natural-number';
44
import { ConceptAs } from '@dolittle/concepts';
5-
import { GenerationMustBeNaturalNumber } from './index';
5+
import { GenerationMustBeNaturalNumber } from './GenerationMustBeNaturalNumber';
66

77
/**
88
* Represents the generation of an Artifact.

Source/artifacts/IArtifacts.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
import { Constructor } from '@dolittle/types';
5-
import { ArtifactId, Artifact, Generation } from './index';
5+
import { ArtifactId } from './ArtifactId';
6+
import { Artifact } from './Artifact';
7+
import { Generation } from './Generation';
68

79
/**
810
* Defines the system for working with {Artifact}

Source/artifacts/UnableToResolveArtifact.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
import { Exception } from '@dolittle/rudiments';
5-
import { Artifact } from './index';
65

76
/**
87
* Exception that is thrown when an {@link Artifact} is not possible to be resolved

Source/artifacts/UnknownArtifact.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
import { Exception } from '@dolittle/rudiments';
5-
import { Artifact } from './index';
65

76
/**
87
* Exception that gets thrown when an {@link Artifact} is unknown.

0 commit comments

Comments
 (0)