File tree Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Expand file tree Collapse file tree 7 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 14
14
test :
15
15
uses : fastify/workflows/.github/workflows/plugins-ci-redis.yml@v3
16
16
with :
17
+ lint : true
17
18
license-check : true
18
19
license-check-allowed-additional : ' Apache*'
Original file line number Diff line number Diff line change
1
+ package-lock = false
Original file line number Diff line number Diff line change @@ -4,3 +4,6 @@ flow: false
4
4
jobs: 1
5
5
coverage: true
6
6
check-coverage: true
7
+
8
+ files:
9
+ - test/**/*.test.js
Original file line number Diff line number Diff line change 3
3
"version" : " 6.0.0" ,
4
4
"description" : " Plugin to share a common Redis connection across Fastify." ,
5
5
"main" : " index.js" ,
6
- "types" : " index.d.ts" ,
6
+ "types" : " types/ index.d.ts" ,
7
7
"scripts" : {
8
8
"lint" : " standard" ,
9
9
"lint:fix" : " standard --fix" ,
10
10
"redis" : " docker run -p 6379:6379 --rm redis" ,
11
- "test" : " npm run lint && npm run unit && npm run typescript" ,
11
+ "test" : " npm run unit && npm run typescript" ,
12
12
"typescript" : " tsd" ,
13
- "unit" : " tap test/test.js " ,
14
- "unit:report" : " tap test/test.js --cov --coverage-report=html --coverage-report=cobertura" ,
15
- "unit:verbose" : " tap test/test.js -Rspec"
13
+ "unit" : " tap" ,
14
+ "unit:report" : " tap --cov --coverage-report=html --coverage-report=cobertura" ,
15
+ "unit:verbose" : " tap -Rspec"
16
16
},
17
17
"repository" : {
18
18
"type" : " git" ,
33
33
},
34
34
"homepage" : " https://github.com/fastify/fastify-redis#readme" ,
35
35
"devDependencies" : {
36
- "@types/ioredis " : " ^4.27.4 " ,
36
+ "@fastify/pre-commit " : " ^2.0.2 " ,
37
37
"@types/node" : " ^18.0.0" ,
38
38
"fastify" : " ^4.0.0-rc.2" ,
39
39
"proxyquire" : " ^2.1.3" ,
46
46
"fastify-plugin" : " ^4.0.0" ,
47
47
"ioredis" : " ^5.0.0"
48
48
},
49
- "tsd" : {
50
- "directory" : " test/types"
51
- },
52
49
"publishConfig" : {
53
50
"access" : " public"
54
- }
51
+ },
52
+ "pre-commit" : [
53
+ " lint" ,
54
+ " test"
55
+ ]
55
56
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import Fastify , { FastifyInstance } from 'fastify'
2
2
import IORedis , { Redis } from 'ioredis'
3
3
import { expectAssignable , expectError , expectType } from 'tsd'
4
- import fastifyRedis , { FastifyRedis , FastifyRedisNamespacedInstance } from '../.. '
4
+ import fastifyRedis , { FastifyRedis , FastifyRedisNamespacedInstance } from '..'
5
5
6
6
const app : FastifyInstance = Fastify ( )
7
7
const redis : Redis = new IORedis ( { host : 'localhost' , port : 6379 } )
You can’t perform that action at this time.
0 commit comments