From 51da138b55046a92a7225e5a32358dc9b1a1e6c1 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 24 Apr 2020 12:06:46 +0200 Subject: [PATCH] fixes --- jenkins.js | 5 +++++ package.json | 5 +++-- test/Graph.ts | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/jenkins.js b/jenkins.js index fb5239d..7601edb 100644 --- a/jenkins.js +++ b/jenkins.js @@ -15,6 +15,11 @@ fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2)); child_process.execSync ('yarn lint', { stdio: 'inherit' }); if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string') child_process.execSync ('yarn test', { stdio: 'inherit' }); +if ( + typeof pkg.scripts !== 'undefined' + && typeof pkg.scripts.compile === 'string' +) + child_process.execSync ('yarn compile', { stdio: 'inherit' }); child_process.exec ('git log -1 | grep \'\\[no publish\\]\'') .addListener ('exit', (code) => { diff --git a/package.json b/package.json index 3e2c40d..200dc80 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "scripts": { "lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs", "test": "tsc && nyc ava", - "ci": "yarn && node jenkins.js" + "ci": "yarn && node jenkins.js", + "compile": "tsc" } -} +} \ No newline at end of file diff --git a/test/Graph.ts b/test/Graph.ts index 025e151..62459b6 100644 --- a/test/Graph.ts +++ b/test/Graph.ts @@ -1,4 +1,3 @@ -import fs from 'fs'; import test from 'ava'; import { Graph, Node } from '../lib';