Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 23, 2024
1 parent dbc7958 commit c3cb3c9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/deno-to-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ await build({
mappings: {
"https://deno.land/x/[email protected]/src/index.ts": "is-what",
"https://deno.land/x/[email protected]/mod.ts": "outdent",
"./src/utils/flock.deno.ts": "./src/utils/flock.node.ts"
"./src/utils/flock.deno.ts": "./src/utils/flock.node.ts",
"./src/hooks/useSyncCache.ts": "./src/hooks/useSyncCache.node.ts"
},
package: {
name: "libpkgx",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useDownload from "./useDownload.ts"
import usePantry from "./usePantry.ts"
import useConfig from "./useConfig.ts"
import Path from "../utils/Path.ts"
import useSyncCache from "./useSyncCache.ts"
import useSyncCache from "./useSyncCache.ts";

//FIXME tar is fetched from PATH :/ we want control
//FIXME run in general is not controllable since it delegates to the shell
Expand Down
29 changes: 29 additions & 0 deletions src/hooks/useSyncCache.node.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// the sqlite lib we use only works in deno

export default async function()
{}

export function provides(_program: string) {
throw new Error()
}

export function dependencies(_project: string) {
throw new Error()
}

export function completion(_prefix: string) {
throw new Error()
}

/// is the cache available?
export function available() {
return false
}

export function companions(_project: string) {
throw new Error()
}

export function runtime_env(_project: string) {
throw new Error()
}

0 comments on commit c3cb3c9

Please sign in to comment.