Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure #233

Merged
merged 2 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
with:
lint: true
license-check: true
3 changes: 3 additions & 0 deletions .taprc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ jsx: false
flow: false
coverage: true
jobs: 1

files:
- test/**/*.test.js
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
"version": "7.1.1",
"description": "basic websocket support for fastify",
"main": "index.js",
"types": "index.d.ts",
"tsd": {
"directory": "./test/types"
},
"types": "types/index.d.ts",
"scripts": {
"lint": "standard | snazzy",
"unit": "tap --100 \"test/*.js\"",
"test:js": "npm run lint && npm run unit",
"test:ts": "tsd",
"test": "npm run lint && npm run test:js && npm run test:ts"
"lint": "standard",
"test": "npm run test:unit && npm run test:typescript",
"test:unit": "tap",
"test:typescript": "tsd"
},
"repository": {
"type": "git",
Expand All @@ -34,7 +30,6 @@
"@sinclair/typebox": "^0.25.10",
"@types/ws": "^8.2.2",
"fastify": "^4.0.0-rc.2",
"snazzy": "^9.0.0",
"split2": "^4.1.0",
"standard": "^17.0.0",
"tap": "^16.0.0",
Expand All @@ -46,5 +41,9 @@
},
"publishConfig": {
"access": "public"
}
},
"pre-commit": [
"lint",
"test"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions tsconfig.json

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion test/types/index.test-d.ts → types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import wsPlugin, { WebsocketHandler, SocketStream } from '../..';
import wsPlugin, { WebsocketHandler, SocketStream } from '..';
import type { IncomingMessage } from "http";
import fastify, { RouteOptions, FastifyRequest, FastifyInstance, FastifyReply, RequestGenericInterface, FastifyBaseLogger, RawServerDefault, FastifySchema, RawRequestDefaultExpression, RawServerBase, ContextConfigDefault, RawReplyDefaultExpression } from 'fastify';
import { expectType } from 'tsd';
Expand Down