-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update generated type paths to work with multiple registries
- Loading branch information
1 parent
40d2252
commit a614355
Showing
31 changed files
with
1,056 additions
and
142 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { join } from "../deps.ts"; | ||
import { Project } from "../project/mod.ts"; | ||
import { getRuntimePath } from "./ogs_source.ts"; | ||
|
||
export async function generateDenoConfig(project: Project) { | ||
// Build config | ||
const config = { | ||
"imports": { | ||
"@ogs/runtime": await getRuntimePath(project), | ||
}, | ||
"lint": { | ||
"include": ["src/"], | ||
"exclude": ["tests/"], | ||
"rules": { | ||
"exclude": ["no-empty-interface", "no-explicit-any", "require-await"] | ||
} | ||
}, | ||
"fmt": { | ||
"useTabs": true | ||
} | ||
}; | ||
|
||
// Write config | ||
const configPath = join(project.path, "deno.json"); | ||
await Deno.writeTextFile(configPath, JSON.stringify(config, null, 4)); | ||
} |
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
Oops, something went wrong.