Skip to content

Commit

Permalink
fix(gulp): remove unused 'path' module
Browse files Browse the repository at this point in the history
  • Loading branch information
pathurs committed May 21, 2019
1 parent 7f8a765 commit 74d1be8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gulpfile.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import SemanticReleaseError from '@semantic-release/error';
import { TestRunner, TestSet } from 'alsatian';
import RootPath from 'app-root-path';
import del from 'del';
import GulpClient from 'gulp';
import GulpIstanbul from 'gulp-istanbul';
import tslintPlugin from 'gulp-tslint';
import * as gulpTypescript from 'gulp-typescript';
import merge from 'merge-stream';
import * as path from 'path';
import SemanticRelease from 'semantic-release';
import streamToPromise from 'stream-to-promise';
import { TapBark } from 'tap-bark';
import * as TSlint from 'tslint';
import appRootPath from 'app-root-path';

enum TestOutput {
None,
Expand Down Expand Up @@ -112,7 +111,7 @@ function javascriptCopyToDistributeDirectory() {
}

async function semanticRelease() {
const filePath = appRootPath.resolve('semantic-release.ts');
const filePath = RootPath.resolve('semantic-release.ts');
let config: SemanticReleaseOptions | undefined;

try {
Expand All @@ -127,7 +126,7 @@ async function semanticRelease() {
throw new SemanticReleaseError(
`Could not load the Semantic Release configuration from '${filePath}'.`,
'ECONFIGLOADERROR',
`App Root Path: ${appRootPath.path}
`App Root Path: ${RootPath.path}
File Path: ${filePath}`);
}
}
Expand Down

0 comments on commit 74d1be8

Please sign in to comment.