Skip to content

Commit fd51bd9

Browse files
authored
Merge pull request #2295 from mikeller/fix_gulpfile
Removed deprecated option from gulpfile.
2 parents c2344e6 + ab2e7a0 commit fd51bd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gulpfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let gitChangeSetId;
5252

5353
const nwBuilderOptions = {
5454
version: '0.47.0',
55-
files: './dist/**/*',
55+
files: `${DIST_DIR}**/*`,
5656
macIcns: './src/images/bf_icon.icns',
5757
macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'},
5858
winIco: './src/images/bf_icon.ico',
@@ -269,7 +269,7 @@ function dist_src() {
269269
return packageJson
270270
.pipe(source('package.json'))
271271
.pipe(gulp.src(distSources, { base: 'src' }))
272-
.pipe(gulp.src('yarn.lock', { passthrougth: true }))
272+
.pipe(gulp.src('yarn.lock'))
273273
.pipe(gulp.dest(DIST_DIR));
274274
}
275275

@@ -280,8 +280,8 @@ function dist_changelog() {
280280

281281
// This function relies on files from the dist_src function
282282
function dist_yarn() {
283-
return gulp.src(['./dist/package.json', './dist/yarn.lock'])
284-
.pipe(gulp.dest('./dist'))
283+
return gulp.src([`${DIST_DIR}package.json`, `${DIST_DIR}yarn.lock`])
284+
.pipe(gulp.dest(DIST_DIR))
285285
.pipe(yarn({
286286
production: true,
287287
}));

0 commit comments

Comments
 (0)