Skip to content

Commit

Permalink
chore: stricter tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 27, 2024
1 parent b7656c3 commit 6e28106
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/giget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export async function downloadTemplate(
options.provider || (registry ? "registry" : "github");

let source: string = input;
const sourceProvierMatch = input.match(sourceProtoRe);
if (sourceProvierMatch) {
providerName = sourceProvierMatch[1];
source = input.slice(sourceProvierMatch[0].length);
const sourceProviderMatch = input.match(sourceProtoRe);
if (sourceProviderMatch) {
providerName = sourceProviderMatch[1]!;
source = input.slice(sourceProviderMatch[0].length);
if (providerName === "http" || providerName === "https") {
source = input;
}
Expand Down
19 changes: 12 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"module": "preserve",
"moduleDetection": "force",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"resolveJsonModule": true,
"strict": true
},
"include": [
"src"
]
"strict": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"noUncheckedIndexedAccess": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noEmit": true
}
}

0 comments on commit 6e28106

Please sign in to comment.