Skip to content

Commit

Permalink
chore: Tweak IS_PUBLISH environment variable (#15174)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Nov 11, 2022
1 parent becd6fd commit 641f677
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Gulpfile.mjs
Expand Up @@ -259,8 +259,6 @@ function createWorker(useWorker) {
}

async function buildBabel(useWorker, ignore = []) {
const enableSourceMap = !process.env.IS_PUBLISH;

const worker = createWorker(useWorker);
const files = await new Promise((resolve, reject) => {
glob(
Expand All @@ -281,7 +279,7 @@ async function buildBabel(useWorker, ignore = []) {
const dest = "./" + mapSrcToLib(file.slice(2));
promises.push(
worker.transform(file, dest, {
sourceMaps: enableSourceMap && !file.endsWith(".d.ts"),
sourceMaps: !file.endsWith(".d.ts"),
})
);
}
Expand Down
2 changes: 1 addition & 1 deletion Makefile.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile.source.mjs
Expand Up @@ -223,10 +223,10 @@ target["build-plugin-transform-runtime-dist"] = function () {

target["prepublish"] = function () {
target["bootstrap-only"]();
target["prepublish-build"]();

env(
() => {
target["prepublish-build"]();
target["test"]();
},
{
Expand Down

0 comments on commit 641f677

Please sign in to comment.