Skip to content

Commit

Permalink
chore: updated typescript template
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill89 committed Oct 3, 2018
1 parent 5f1cfa2 commit 25e1d49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/index.ts
Expand Up @@ -49,9 +49,9 @@ function buildDepTreeFromFiles(

const manifestFileContents = fs.readFileSync(manifestFileFullPath, 'utf-8');

if (manifestFilePath.endsWith('.csproj')) {
if (_.endsWith(manifestFilePath, '.csproj')) {
return buildDepTreeFromCsproj(manifestFileContents, includeDev);
} else if (manifestFilePath.endsWith('packages.config')) {
} else if (_.endsWith(manifestFilePath, 'packages.config')) {
return buildDepTreeFromPackagesConfig(manifestFileContents, includeDev);
} else {
throw new Error(`Unsupported file ${manifestFilePath},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -29,11 +29,12 @@
"@types/xml2js": "0.4.3",
"lodash": "4.17.10",
"source-map-support": "^0.5.7",
"tslib": "^1.9.3",
"xml2js": "0.4.19"
},
"devDependencies": {
"@types/lodash": "^4.14.116",
"@types/node": "10.5.5",
"@types/node": "^4.0.47",
"tap": "github:snyk/node-tap#alternative-runtimes",
"ts-node": "7.0.0",
"tslint": "5.11.0",
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Expand Up @@ -3,16 +3,15 @@
"outDir": "./dist",
"pretty": true,
"target": "es5",
"lib": [
"es2017"
],
"lib": ["es5", "es2015.promise"],
"module": "commonjs",
"sourceMap": true,
"declaration": true,
"importHelpers": true,
"strict": true,
"noImplicitAny": false // Needed to compile tap
},
"include": [
"./lib/**/*",
"./lib/**/*"
]
}

0 comments on commit 25e1d49

Please sign in to comment.