Skip to content

Commit 8931402

Browse files
authored
fix: Electron template (#566)
1 parent dda5ade commit 8931402

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

templates/electron-typescript-react/electron-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ export default {
113113

114114
artifactName: "${name}.Linux.${version}.${arch}.${ext}"
115115
}
116-
} as Configuration;
116+
} satisfies Configuration as Configuration;

templates/electron-typescript-react/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "es2022",
44
"lib": ["es2022", "DOM", "DOM.Iterable"],
5-
"module": "node16",
5+
"module": "es2022",
66
"skipLibCheck": true,
77

88
"esModuleInterop": true,

templates/electron-typescript-react/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"noUncheckedIndexedAccess": true,
1414
"moduleDetection": "force",
1515

16-
"moduleResolution": "bundler",
16+
"moduleResolution": "node16",
1717
"resolveJsonModule": false,
1818
"isolatedModules": true,
1919
"composite": true,

test/modelDependent/llama3.2/sequenceState.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describe("llama 3.2", () => {
202202
});
203203

204204
const res1 = await chatSession1.prompt("Remember: locks are not doors. Also, write a long poem about it", {maxTokens: 154});
205-
expect(res1).toMatch(/^(A clever reminder indeed.|A wise phrase to ponder|A wise phrase indeed)/);
205+
expect(res1).toMatch(/^(A clever reminder indeed.|A clever reminder, indeed.|A wise phrase to ponder|A wise phrase indeed)/);
206206

207207

208208
const stateFile1Path = await getTempTestFilePath("state1");

0 commit comments

Comments
 (0)