File tree Expand file tree Collapse file tree 6 files changed +9
-19
lines changed
Expand file tree Collapse file tree 6 files changed +9
-19
lines changed Original file line number Diff line number Diff line change 2828 "homepage" : " https://github.com/dashlog/core#readme" ,
2929 "devDependencies" : {
3030 "@openally/config.eslint" : " ^2.1.0" ,
31+ "@openally/config.typescript" : " ^1.0.3" ,
3132 "@types/node" : " ^22.0.0" ,
3233 "c8" : " ^10.1.2" ,
3334 "glob" : " ^11.0.0" ,
Original file line number Diff line number Diff line change 11// Import Internal Dependencies
22import Github from "./services/github.js" ;
33import * as plugins from "./plugins/index.js" ;
4- import { DashlogRepository } from "./services/repository.js" ;
4+ import { type DashlogRepository } from "./services/repository.js" ;
55
66export type DashlogAllPlugins =
77 plugins . nodesecure . NodesecurePlugin &
@@ -39,4 +39,4 @@ export async function fetchOrgMetadata<T extends DashlogPlugins>(
3939 } ;
4040}
4141
42- export { DashlogRepository } ;
42+ export { type DashlogRepository } ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as scanner from "@nodesecure/scanner";
33import { Mutex } from "@openally/mutex" ;
44
55// Import Internal Dependencies
6- import { DashlogRepository } from "../services/repository.js" ;
6+ import { type DashlogRepository } from "../services/repository.js" ;
77
88// CONSTANTS
99const kScannerLock = new Mutex ( { concurrency : 5 } ) ;
Original file line number Diff line number Diff line change 22import * as scorecard from "@nodesecure/ossf-scorecard-sdk" ;
33
44// Import Internal Dependencies
5- import { DashlogRepository } from "../services/repository.js" ;
5+ import { type DashlogRepository } from "../services/repository.js" ;
66
77export type ScorecardPlugin = {
88 scorecard ?: scorecard . ScorecardResult | null ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as Octokit from "@octokit/types";
44import { fetchLazy } from "@dashlog/fetch-github-repositories" ;
55
66// Import Internal Dependencies
7- import GithubRepository , { DashlogRepository } from "./repository.js" ;
7+ import GithubRepository , { type DashlogRepository } from "./repository.js" ;
88
99export default class Github {
1010 public orgName : string ;
@@ -60,6 +60,6 @@ export default class Github {
6060
6161 return results
6262 . filter ( ( promise ) => promise . status === "fulfilled" && promise . value !== null )
63- . map ( ( promise : PromiseFulfilledResult < DashlogRepository > ) => promise . value ) ;
63+ . map ( ( promise ) => ( promise as PromiseFulfilledResult < DashlogRepository > ) . value ) ;
6464 }
6565}
Original file line number Diff line number Diff line change 11{
2+ "extends" : " @openally/config.typescript/esm" ,
23 "compilerOptions" : {
3- "declaration" : true ,
4- "strictNullChecks" : true ,
5- "skipLibCheck" : true ,
6- "target" : " ES2020" ,
74 "outDir" : " dist" ,
8- "module" : " ES2020" ,
9- "moduleResolution" : " node" ,
10- "esModuleInterop" : true ,
11- "resolveJsonModule" : true ,
12- "skipDefaultLibCheck" : true ,
13- "forceConsistentCasingInFileNames" : true ,
14- "sourceMap" : true ,
15- "rootDir" : " ./src" ,
16- "types" : [" node" ]
5+ "rootDir" : " ./src"
176 },
187 "include" : [" src" ],
198 "exclude" : [" node_modules" , " dist" ]
You can’t perform that action at this time.
0 commit comments