File tree 6 files changed +9
-19
lines changed
6 files changed +9
-19
lines changed Original file line number Diff line number Diff line change 28
28
"homepage" : " https://github.com/dashlog/core#readme" ,
29
29
"devDependencies" : {
30
30
"@openally/config.eslint" : " ^2.1.0" ,
31
+ "@openally/config.typescript" : " ^1.0.3" ,
31
32
"@types/node" : " ^22.0.0" ,
32
33
"c8" : " ^10.1.2" ,
33
34
"glob" : " ^11.0.0" ,
Original file line number Diff line number Diff line change 1
1
// Import Internal Dependencies
2
2
import Github from "./services/github.js" ;
3
3
import * as plugins from "./plugins/index.js" ;
4
- import { DashlogRepository } from "./services/repository.js" ;
4
+ import { type DashlogRepository } from "./services/repository.js" ;
5
5
6
6
export type DashlogAllPlugins =
7
7
plugins . nodesecure . NodesecurePlugin &
@@ -39,4 +39,4 @@ export async function fetchOrgMetadata<T extends DashlogPlugins>(
39
39
} ;
40
40
}
41
41
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";
3
3
import { Mutex } from "@openally/mutex" ;
4
4
5
5
// Import Internal Dependencies
6
- import { DashlogRepository } from "../services/repository.js" ;
6
+ import { type DashlogRepository } from "../services/repository.js" ;
7
7
8
8
// CONSTANTS
9
9
const kScannerLock = new Mutex ( { concurrency : 5 } ) ;
Original file line number Diff line number Diff line change 2
2
import * as scorecard from "@nodesecure/ossf-scorecard-sdk" ;
3
3
4
4
// Import Internal Dependencies
5
- import { DashlogRepository } from "../services/repository.js" ;
5
+ import { type DashlogRepository } from "../services/repository.js" ;
6
6
7
7
export type ScorecardPlugin = {
8
8
scorecard ?: scorecard . ScorecardResult | null ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as Octokit from "@octokit/types";
4
4
import { fetchLazy } from "@dashlog/fetch-github-repositories" ;
5
5
6
6
// Import Internal Dependencies
7
- import GithubRepository , { DashlogRepository } from "./repository.js" ;
7
+ import GithubRepository , { type DashlogRepository } from "./repository.js" ;
8
8
9
9
export default class Github {
10
10
public orgName : string ;
@@ -60,6 +60,6 @@ export default class Github {
60
60
61
61
return results
62
62
. filter ( ( promise ) => promise . status === "fulfilled" && promise . value !== null )
63
- . map ( ( promise : PromiseFulfilledResult < DashlogRepository > ) => promise . value ) ;
63
+ . map ( ( promise ) => ( promise as PromiseFulfilledResult < DashlogRepository > ) . value ) ;
64
64
}
65
65
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "extends" : " @openally/config.typescript/esm" ,
2
3
"compilerOptions" : {
3
- "declaration" : true ,
4
- "strictNullChecks" : true ,
5
- "skipLibCheck" : true ,
6
- "target" : " ES2020" ,
7
4
"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"
17
6
},
18
7
"include" : [" src" ],
19
8
"exclude" : [" node_modules" , " dist" ]
You can’t perform that action at this time.
0 commit comments