Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hash in filenames #442

Merged
merged 10 commits into from
Nov 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
work on stuff
dmail committed Nov 24, 2024
commit 0f2f92869c86ce62d15e4da55bf8b2db406e4475
Original file line number Diff line number Diff line change
@@ -320,8 +320,8 @@ export const registerDirectoryLifecycle = (
}
};
const handleEntryUpdated = (entryInfo) => {
infoMap.set(entryInfo.relativeUrl, entryInfo);
if (updated && entryInfo.patternValue && shouldCallUpdated(entryInfo)) {
infoMap.set(entryInfo.relativeUrl, entryInfo);
updated({
relativeUrl: entryInfo.relativeUrl,
type: entryInfo.type,
@@ -377,7 +377,7 @@ const shouldCallUpdated = (entryInfo) => {
if (stat.atimeMs < stat.mtimeMs) {
return true;
}
if (stat.mtimeMs <= previousInfo.stat.mtimeMs) {
if (isLinux && stat.mtimeMs <= previousInfo.stat.mtimeMs) {
return false;
}
return true;
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ if (process.env.CI) {
process.exit(0);
}

let debug = false;
const sourceDirectoryUrl = new URL("./git_ignored/", import.meta.url);
replaceFileStructureSync({
from: new URL("./fixtures/0_at_start/", import.meta.url),
@@ -28,7 +29,7 @@ const devServer = await startDevServer({
supervisor: false,
clientAutoreload: false,
});
const browser = await chromium.launch({ headless: true });
const browser = await chromium.launch({ headless: !debug });
const page = await browser.newPage({ ignoreHTTPSErrors: true });
const getWindowAnswer = () => {
return page.evaluate(
@@ -71,6 +72,8 @@ try {
},
});
} finally {
browser.close();
devServer.stop(); // required because for some reason the rooms are kept alive
if (!debug) {
browser.close();
devServer.stop(); // required because for some reason the rooms are kept alive
}
}