Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit 195c7b9

Browse files
committed
refactor: Removes attempts to have all exports in one file.
All exports in one file caused a lot of issues: microsoft/TypeScript#9944. BREAKING CHANGE: No longer supporting exports from one file, import directly from source files instead.
1 parent c72fe13 commit 195c7b9

File tree

10 files changed

+5
-58
lines changed

10 files changed

+5
-58
lines changed

docs/facade.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ The functions have some common options that they use.
2323

2424
The [facade in this package is a TypeScript interface](../src/Facade.ts), but concrete implementations of the interface are listed below.
2525

26-
- [Memory](https://github.com/js-entity-repos/memory) - Coming Soon
26+
- [Memory](https://github.com/js-entity-repos/memory)
2727
- [Mongo](https://github.com/js-entity-repos/mongo) - Coming Soon
2828
- [Knex](https://github.com/js-entity-repos/knex) - Coming Soon

src/errors/index.ts

-7
This file was deleted.

src/index.ts

-16
This file was deleted.

src/signatures/index.ts

-19
This file was deleted.

src/tests/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import removeEntityTest from './removeEntity/test';
1111
import upsertEntityTest from './upsertEntity/test';
1212
import { TestEntity, TestId } from './utils/testEntity';
1313

14-
export const facadeTest = (facade: Facade<TestId, TestEntity>) => {
14+
export default (facade: Facade<TestId, TestEntity>) => {
1515
describe('facade', () => {
1616
beforeEach(async () => {
1717
await facade.removeEntities({ filter: {} });

src/utils/createCursorFromEntity/createCursorFromEntity.test.ts renamed to src/utils/createCursorFromEntity/index.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'mocha'; // tslint:disable-line:no-import-side-effect
22
import * as assert from 'power-assert';
33
import { TestEntity, testEntity } from '../../tests/utils/testEntity';
4-
import createCursorFromEntity from './createCursorFromEntity';
4+
import createCursorFromEntity from './index';
55

66
describe('createCursorFromEntity', () => {
77
it('should return undefined when the entity is undefined', () => {

src/utils/createPaginationFilter/createPaginationFilter.test.ts renamed to src/utils/createPaginationFilter/index.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'mocha'; // tslint:disable-line:no-import-side-effect
22
import * as assert from 'power-assert';
33
import { TestEntity, testEntity } from '../../tests/utils/testEntity';
44
import Pagination from '../../types/Pagination';
5-
import createCursorFromEntity from '../createCursorFromEntity/createCursorFromEntity';
6-
import createPaginationFilter from './createPaginationFilter';
5+
import createCursorFromEntity from '../createCursorFromEntity';
6+
import createPaginationFilter from './index';
77

88
describe('createCursorFromEntity', () => {
99
const sort = { id: true };

src/utils/index.ts

-11
This file was deleted.

0 commit comments

Comments
 (0)