Skip to content

Commit b1dca1d

Browse files
authored
Consider dtsBundler.mjs mod time in hereby dts (#57256)
1 parent 821b1d8 commit b1dca1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Herebyfile.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,15 @@ export const cleanSrc = task({
159159
run: () => cleanProject("src"),
160160
});
161161

162+
const dtsBundlerPath = "./scripts/dtsBundler.mjs";
163+
162164
/**
163165
* @param {string} entrypoint
164166
* @param {string} output
165167
*/
166168
async function runDtsBundler(entrypoint, output) {
167169
await exec(process.execPath, [
168-
"./scripts/dtsBundler.mjs",
170+
dtsBundlerPath,
169171
"--entrypoint",
170172
entrypoint,
171173
"--output",
@@ -392,7 +394,7 @@ export const dtsServices = task({
392394
description: "Bundles typescript.d.ts",
393395
dependencies: [buildServices],
394396
run: async () => {
395-
if (needsUpdate("./built/local/typescript/tsconfig.tsbuildinfo", ["./built/local/typescript.d.ts", "./built/local/typescript.internal.d.ts"])) {
397+
if (needsUpdate(["./built/local/typescript/tsconfig.tsbuildinfo", dtsBundlerPath], ["./built/local/typescript.d.ts", "./built/local/typescript.internal.d.ts"])) {
396398
await runDtsBundler("./built/local/typescript/typescript.d.ts", "./built/local/typescript.d.ts");
397399
}
398400
},

0 commit comments

Comments
 (0)