@taqtile/gulp-module-resolver
v0.7.1
Published
Resolve aliased dependencies based on TS Config alias map
Downloads
12
Readme
gulp-module-resolver
Resolve aliased dependencies based on TS Config paths map
Basic usage
const gulp = require('gulp');
const resolver = require('./packages/gulp-module-resolver');
const ts = require('gulp-typescript');
const tsProject = ts.createProject('tsconfig.json');
const outDir = tsProject.config.compilerOptions.outDir;
gulp.task('default', () => {
return tsProject
.src()
.pipe(tsProject())
.pipe(resolver({ rootPath: outDir }))
.pipe(gulp.dest(outDir))
;
});