GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: use ts project references for desktop and tauri · makeone/opencode@0a47a3c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitignore
  • bun.lock
  • packages
    • desktop
      • tsconfig.json
    • tauri
      • package.json
      • src
        • index.tsx
      • tsconfig.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ node_modules
99
playground
1010
tmp
1111
dist
12+
ts-dist
1213
.turbo
1314
**/.serena
1415
.serena/
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
+1Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎packages/desktop/tsconfig.json‎

Copy file name to clipboardExpand all lines: packages/desktop/tsconfig.json
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"compilerOptions": {
4+
"composite": true,
45
"target": "ESNext",
56
"module": "ESNext",
67
"skipLibCheck": true,
@@ -11,7 +12,9 @@
1112
"jsxImportSource": "solid-js",
1213
"allowJs": true,
1314
"strict": true,
14-
"noEmit": true,
15+
"noEmit": false,
16+
"emitDeclarationOnly": true,
17+
"outDir": "ts-dist",
1518
"isolatedModules": true,
1619
"paths": {
1720
"@/*": ["./src/*"]
Collapse file

‎packages/tauri/package.json‎

Copy file name to clipboardExpand all lines: packages/tauri/package.json
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"version": "1.0.137",
55
"type": "module",
66
"scripts": {
7+
"typecheck": "tsgo -b",
78
"predev": "bun ./scripts/predev.ts",
89
"dev": "vite",
9-
"build": "tsc && vite build",
10+
"build": "bun run typecheck && vite build",
1011
"preview": "vite preview",
1112
"tauri": "tauri"
1213
},
@@ -24,6 +25,7 @@
2425
"@actions/artifact": "4.0.0",
2526
"@tauri-apps/cli": "^2",
2627
"@types/bun": "catalog:",
28+
"@typescript/native-preview": "catalog:",
2729
"typescript": "~5.6.2",
2830
"vite": "catalog:"
2931
}
Collapse file

‎packages/tauri/src/index.tsx‎

Copy file name to clipboardExpand all lines: packages/tauri/src/index.tsx
+11-4Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
1313

1414
const platform: Platform = {}
1515

16-
render(() => {
17-
onMount(() => {
18-
if (window.__OPENCODE__.updaterEnabled) runUpdater()
19-
})
16+
declare global {
17+
interface Window {
18+
__OPENCODE__?: { updaterEnabled?: boolean }
19+
}
20+
}
21+
22+
render(
23+
() => {
24+
onMount(() => {
25+
if(window.__OPENCODE__?.updaterEnabled) runUpdater();
26+
});
2027

2128
return (
2229
<PlatformProvider value={platform}>
Collapse file

‎packages/tauri/tsconfig.json‎

Copy file name to clipboard
+3-21Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
11
{
2+
"extends": "../desktop/tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES2020",
4-
"useDefineForClassFields": true,
5-
"module": "ESNext",
6-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7-
"skipLibCheck": true,
8-
9-
/* Bundler mode */
10-
"moduleResolution": "bundler",
11-
"allowImportingTsExtensions": true,
12-
"resolveJsonModule": true,
13-
"isolatedModules": true,
14-
"noEmit": true,
15-
16-
/* Linting */
17-
"strict": true,
18-
"noUnusedLocals": true,
19-
"noUnusedParameters": true,
20-
"noFallthroughCasesInSwitch": true,
21-
22-
"jsx": "preserve",
23-
"jsxImportSource": "solid-js"
4+
"outDir": "ts-dist"
245
},
6+
"references": [{ "path": "../desktop" }],
257
"include": ["src"]
268
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.