Skip to content

Commit

Permalink
build: make publishConfig property public
Browse files Browse the repository at this point in the history
  • Loading branch information
vitonsky committed May 6, 2023
1 parent 62204e1 commit b98f7ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function tsCompilerFactory(outPath, settings) {
return function compileTS() {
const tsProject = gulpTypescript.createProject('tsconfig.json', settings);

return gulp.src(['src/**/!(*.test).{ts,tsx}'])
return gulp
.src(['src/**/!(*.test).{ts,tsx}'])
.pipe(gulpSourceMaps.init())
.pipe(tsProject())
.pipe(gulpSourceMaps.write('./sourcemaps'))
Expand Down Expand Up @@ -46,7 +47,9 @@ function buildESM() {
function copyMetaFiles() {
return mergeStream(
// Clean package.json
gulp.src(['./package.json']).pipe(cleanPackageJson()),
gulp
.src(['./package.json'])
.pipe(cleanPackageJson({ publicProperties: ['publishConfig'] })),
// Copy other
gulp.src(['README.md', 'LICENSE']),
).pipe(gulp.dest(buildDir));
Expand Down

0 comments on commit b98f7ba

Please sign in to comment.