From b58e7e64416b3cebbb98f448cd45e888febb920c Mon Sep 17 00:00:00 2001 From: Brock Allen Date: Sat, 11 May 2019 12:35:41 -0400 Subject: [PATCH] fix rename --- dist/{oidc-client.d.ts/index.d.ts => oidc-client.d.ts} | 0 gulpfile.js | 6 ++++-- package.json | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) rename dist/{oidc-client.d.ts/index.d.ts => oidc-client.d.ts} (100%) diff --git a/dist/oidc-client.d.ts/index.d.ts b/dist/oidc-client.d.ts similarity index 100% rename from dist/oidc-client.d.ts/index.d.ts rename to dist/oidc-client.d.ts diff --git a/gulpfile.js b/gulpfile.js index bd7b16aa..08ad2a7b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,6 @@ var gulp = require('gulp'); var concat = require('gulp-concat'); +var rename = require('gulp-rename'); var webpackStream = require('webpack-stream'); var webpack = require('webpack'); var createWebpackConfig = require('./webpack.base'); @@ -160,8 +161,9 @@ function build_jsrsasign(){ } function copy_ts(){ - return gulp.src('index.d.ts') - .pipe(gulp.dest('dist/oidc-client.d.ts')); + return gulp.src('./index.d.ts') + .pipe(rename('oidc-client.d.ts')) + .pipe(gulp.dest('./dist/')); } // putting it all together diff --git a/package.json b/package.json index 69223f55..fc2e9df5 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "express": "^4.16.4", "gulp": "^4.0.0", "gulp-concat": "^2.6.1", + "gulp-rename": "^1.4.0", "jsrsasign": "^8.0.12", "mocha": "^5.2.0", "natives": "^1.1.6",