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

Adds types to package.json, bumps version number #29

Merged
merged 2 commits into from
Apr 13, 2024
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
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": [
],
"ignorePatterns": [],
"rules": {
"max-classes-per-file": "off",
"max-len": "off",
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"name": "edge-csrf",
"description": "CSRF protection for Next.js middleware",
"version": "1.0.10",
"version": "1.0.11",
"author": "Andres Morey",
"license": "MIT",
"repository": "kubetail-org/edge-csrf",
"type": "module",
"sideEffects": false,
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"files": [
"/dist"
],
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export default defineConfig({
sourceMap: false,
declaration: true,
outDir: "dist",
include: ['src/**/*']
include: ['src/**/*'],
exclude: ['src/**/*.test.ts']
}),
],
external: [],
Expand Down