diff --git a/ci.js b/ci.js index 8bbd4ba..6afbad3 100644 --- a/ci.js +++ b/ci.js @@ -17,6 +17,14 @@ const child_process = require ('child_process'); const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8')); +/* ======== FIX FOR JASMINE-TS ================== */ +if (fs.existsSync ('node_modules/jasmine-ts/lib/index.js')) { + const jts = fs.readFileSync ('node_modules/jasmine-ts/lib/index.js', 'utf-8'); + const ejts = jts.replace ('"ts-node/dist"', '"ts-node"'); + fs.writeFileSync('node_modules/jasmine-ts/lib/index.js', ejts); +} +/* ============================================== */ + child_process.execSync ('yarn lint', { stdio: 'inherit' }); child_process.execSync ('yarn test', { stdio: 'inherit' }); child_process.execSync ('yarn compile', { stdio: 'inherit' });