Skip to content

Commit

Permalink
fix tests/gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alunyov committed Jan 17, 2022
1 parent fe29206 commit 5d647bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,15 @@ const relayCompiler = gulp.parallel(
.src(['**'], {
cwd: path.join(PACKAGES, compilerPackageDir),
})
.pipe(gulp.dest(path.join(DIST, compilerPackageDir)))
.pipe(gulp.dest(path.join(DIST, compilerPackageDir)));
}
),
...COMPILER_PACKAGES.map(
(compilerPackageDir) =>
function copyCompilerLicence() {
return gulp
.src(['LICENSE'])
.pipe(gulp.dest(path.join(DIST, compilerPackageDir)))
.pipe(gulp.dest(path.join(DIST, compilerPackageDir)));
}
),
function copyCompilerBins() {
Expand Down
14 changes: 8 additions & 6 deletions scripts/testDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ function testPackageDependencies(topLevelPackagePath, packagePath) {
`${packageName} should have a matching package name.`,
);

expectEqual(
errors,
packageJson.optionalDependencies,
undefined,
`${packageName} should have no optional dependencies.`,
);
if (packageJson.name !== 'relay-compiler') {
expectEqual(
errors,
packageJson.optionalDependencies,
undefined,
`${packageName} should have no optional dependencies.`,
);
}

expectEqual(
errors,
Expand Down

0 comments on commit 5d647bf

Please sign in to comment.