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

Commit e81671c

Browse files
committed
bugfix: resolve issues with packaging
1 parent cf6ce61 commit e81671c

12 files changed

+66
-30
lines changed

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# source
2+
lib
3+
index.ts
4+
package-lock.json
5+
tslint.json
6+
tsconfig.json
7+
.prettierrc

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: node_js
2+
3+
cache:
4+
directories:
5+
- 'node_modules'
6+
7+
git:
8+
depth: 5
9+
10+
addons:
11+
firefox: 'latest'
12+
13+
before_script:
14+
- export DISPLAY=:99.0
15+
- sh -e /etc/init.d/xvfb start
16+
17+
before_install:
18+
- npm i -g npm@latest
19+
20+
install:
21+
- npm ci
22+
- npm run build
23+
24+
jobs:
25+
include:
26+
- state: 'Test'
27+
name: 'Unit Test Node v12'
28+
script: npm test
29+
node_js: 12
30+
31+
- state: 'Test'
32+
name: 'Unit Test Node v10'
33+
script: npm test
34+
node_js: 10
35+
36+
- state: 'Test'
37+
name: 'Unit Test Node v8'
38+
script: npm test
39+
node_js: 8

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './dist';

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
function __export(m) {
3+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4+
}
5+
exports.__esModule = true;
6+
__export(require('./dist'));

lib/in-memory-db.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Module } from '@nestjs/common';
2-
import { InMemoryDBService } from './in-memory-db.service';
2+
import { InMemoryDBService } from './services';
33

44
@Module({
55
providers: [InMemoryDBService],

lib/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
export { InMemoryDBModule } from './in-memory-db.module';
2-
export { InMemoryDBService } from './in-memory-db.service';
3-
export { InMemoryDBEntity } from './interfaces/in-memory-db-entity';
1+
import 'reflect-metadata';
2+
export * from './in-memory-db.module';
3+
export * from './interfaces';
4+
export * from './services';

lib/in-memory-db.service.spec.ts renamed to lib/services/in-memory-db.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { InMemoryDBEntity } from '../interfaces';
12
import { InMemoryDBService } from './in-memory-db.service';
2-
import { InMemoryDBEntity } from './interfaces/in-memory-db-entity';
33

44
describe('In Memory DB Service', () => {
55
interface TestEntity extends InMemoryDBEntity {

lib/in-memory-db.service.ts renamed to lib/services/in-memory-db.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable } from '@nestjs/common';
2-
import { InMemoryDBEntity } from './interfaces/in-memory-db-entity';
2+
import { InMemoryDBEntity } from '../interfaces';
33

44
@Injectable()
55
export class InMemoryDBService<T extends InMemoryDBEntity> {

lib/services/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './in-memory-db.service';

package-lock.json

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)