Skip to content

Commit

Permalink
add tsconfig file for node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed May 16, 2017
1 parent a484363 commit 61188a0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -3,7 +3,9 @@
"bugs": {
"url": "https://github.com/chrisguttandin/tsconfig-holy-grail/issues"
},
"dependencies": {},
"dependencies": {
"@types/node": "^7.0.18"
},
"description": "This is just my personal collection of tsconfig files.",
"devDependencies": {
"chai": "^3.5.0",
Expand Down
7 changes: 7 additions & 0 deletions src/tsconfig-node.json
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"lib": [ "es2016" ],
"types": [ "node" ]
},
"extends": "./tsconfig"
}
13 changes: 13 additions & 0 deletions test/integration/module.js
Expand Up @@ -21,6 +21,19 @@ describe('tsconfig-holy-grail', () => {

});

describe('tsconfig-node.json', () => {

let path;

beforeEach(() => path = 'tsconfig-node.json');

it('should be a parsable config file', () => {
return load(cwd, path)
.then(({ config, path }) => parseJsonConfigFileContent(config, sys, dirname(path), null, path));
});

});

describe('tsconfig-universal.json', () => {

let path;
Expand Down

0 comments on commit 61188a0

Please sign in to comment.