File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @code4rena/typed-client" ,
3
3
"version" : " 1.0.0" ,
4
4
"main" : " lib/index.js" ,
5
+ "types" : " lib/index.d.ts" ,
6
+ "files" : [" lib/**/*.js" , " lib/**/*.d.ts" ],
5
7
"scripts" : {
6
- "test" : " echo \" Error: no test specified\" && exit 1" ,
8
+ "clean" : " rm -f lib/*.js lib/*.d.ts lib/**/*.js lib/**/*.d.ts" ,
9
+ "test" : " node --experimental-strip-types --test" ,
10
+ "posttest" : " npm run lint" ,
7
11
"lint" : " eslint ." ,
8
- "prelint" : " tsc --noEmit"
12
+ "prelint" : " tsc" ,
13
+ "prepack" : " tsc -p tsconfig.build.json" ,
14
+ "postpublish" : " npm run clean"
9
15
},
10
16
"keywords" : [],
11
17
"author" : " " ,
Original file line number Diff line number Diff line change 1
1
import Hapi , { type Request } from "@hapi/hapi" ;
2
2
import Joi from "joi" ;
3
3
import { test , type TestContext } from "node:test" ;
4
- import { Client } from "../lib/index.js " ;
4
+ import { Client } from "../lib/index.ts " ;
5
5
6
6
const expectType = < T > ( _ : T ) : void => void 0 ;
7
7
type TypeEqual < Target , Value > = ( < T > ( ) => T extends Target ? 1 : 2 ) extends < T > ( ) => T extends Value ? 1 : 2 ? true : false ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "include" : [" lib/**/*.ts" ],
4
+ "compilerOptions" : {
5
+ "declaration" : true ,
6
+ "noEmit" : false
7
+ }
8
+ }
Original file line number Diff line number Diff line change 14
14
"verbatimModuleSyntax" : true ,
15
15
"erasableSyntaxOnly" : true ,
16
16
"esModuleInterop" : false ,
17
- "typeRoots" : [
18
- " ./node_modules/@types" ,
19
- " ./lib/types/**"
20
- ]
21
- },
22
- "//" : " This file is partially managed by code-skeleton. Changes may be overwritten."
17
+ "rewriteRelativeImportExtensions" : true
18
+ }
23
19
}
You can’t perform that action at this time.
0 commit comments