Skip to content

Commit

Permalink
Fixed an issue with npmignore, which caused tsconfig to be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ImOverlord authored and ImOverlord committed Feb 6, 2019
1 parent 140f562 commit 5cfc829
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Expand Up @@ -4,4 +4,5 @@ node_modules/
jest.config.js
.travis.yml
tslint.json
tsconfig.json
tsconfig.json
!./resource/tsconfig.json
30 changes: 22 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "inject-cli",
"version": "0.0.1",
"version": "0.0.2",
"description": "Simple CLI for sloth-ts-injection",
"scripts": {
"test": "jest -c ./jest.config.js",
Expand Down
8 changes: 4 additions & 4 deletions src/Command/Command.spec.ts
Expand Up @@ -5,7 +5,7 @@ import * as fs from 'fs';
describe("Command", () => {

let injector: Injector;
let command: Command
let command: Command;

beforeEach(() => {
injector = new Injector();
Expand Down Expand Up @@ -42,7 +42,7 @@ describe("Command", () => {

it("Should handle no user custom template", () => {
spyOn(fs, 'readdirSync').and.callFake(() => {
throw 'e';
throw Error("UT");
});
const template = command['findTemplates']();
expect(template).toEqual([]);
Expand All @@ -64,7 +64,7 @@ describe("Command", () => {
'name'
];
command.handler();
expect(command.getCommands()['test']).toBe('name');
expect(command.getCommands()['test']).toBe('name');
});

});
Expand All @@ -74,4 +74,4 @@ describe("Command", () => {
command = null;
});

});
});

0 comments on commit 5cfc829

Please sign in to comment.