Skip to content

Commit a02d237

Browse files
committed
always re-config after build
1 parent 66a0e43 commit a02d237

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/ninja.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,10 @@ function main() {
18221822
console.log(`please run "./scripts/ninja.js config" first`);
18231823
process.exit(2);
18241824
}
1825+
cp.execSync(`node ${__filename} config`, {
1826+
cwd: __dirname,
1827+
stdio: [0, 1, 2],
1828+
});
18251829
break;
18261830
case "clean":
18271831
try {
@@ -1832,7 +1836,7 @@ function main() {
18321836
});
18331837
} catch (e) {}
18341838
cp.execSync(
1835-
`git clean -dfx jscomp ${process.platform} lib && rm -rf lib/js/*.js && rm -rf lib/es6/*.js && rm -rf jscomp/napkin/*.ml* `,
1839+
`git clean -dfx jscomp ${process.platform} lib && rm -rf lib/js/*.js && rm -rf lib/es6/*.js`,
18361840
{
18371841
encoding: "utf8",
18381842
cwd: path.join(__dirname, ".."),
@@ -1860,10 +1864,6 @@ function main() {
18601864
cwd: __dirname,
18611865
stdio: [0, 1, 2],
18621866
});
1863-
cp.execSync(`node ${__filename} config`, {
1864-
cwd: __dirname,
1865-
stdio: [0, 1, 2],
1866-
});
18671867
break;
18681868
case "docs":
18691869
console.log(`building docs`);

0 commit comments

Comments
 (0)