diff options
author | Michael Keller <github@ike.ch> | 2020-11-27 15:15:42 +0300 |
---|---|---|
committer | Michael Keller <github@ike.ch> | 2020-11-27 15:32:22 +0300 |
commit | ab2e7a0e89f0eb6410ce1ddc8beae82eb9afd55e (patch) | |
tree | d3352359bfe29901e3da08722b186a9218ac9b7b /gulpfile.js | |
parent | e71affcd65c51c1468bbdded2a359d83d0befc7a (diff) |
Removed deprecated option from gulpfile.
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gulpfile.js b/gulpfile.js index d4825385..cf054a31 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -52,7 +52,7 @@ let gitChangeSetId; const nwBuilderOptions = { version: '0.47.0', - files: './dist/**/*', + files: `${DIST_DIR}**/*`, macIcns: './src/images/bf_icon.icns', macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'}, winIco: './src/images/bf_icon.ico', @@ -269,7 +269,7 @@ function dist_src() { return packageJson .pipe(source('package.json')) .pipe(gulp.src(distSources, { base: 'src' })) - .pipe(gulp.src('yarn.lock', { passthrougth: true })) + .pipe(gulp.src('yarn.lock')) .pipe(gulp.dest(DIST_DIR)); } @@ -280,8 +280,8 @@ function dist_changelog() { // This function relies on files from the dist_src function function dist_yarn() { - return gulp.src(['./dist/package.json', './dist/yarn.lock']) - .pipe(gulp.dest('./dist')) + return gulp.src([`${DIST_DIR}package.json`, `${DIST_DIR}yarn.lock`]) + .pipe(gulp.dest(DIST_DIR)) .pipe(yarn({ production: true, })); |