forked from web-infra-dev/rspack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refresh modified file mtime when run NEXT_START (web-infra-dev#…
…8863) * test: refresh modified file mtime when run NEXT_START * fix: comment
- Loading branch information
1 parent
675c2cf
commit ebb85fe
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/rspack-test-tools/src/helper/util/refreshModifyTime.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { readFile, writeFile } from "fs-extra"; | ||
|
||
export async function refreshModifyTime(file: string) { | ||
const data = await readFile(file); | ||
await writeFile(file, data); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters