Skip to content

Commit

Permalink
Adds types to package.json, bumps version number (#29)
Browse files Browse the repository at this point in the history
* added types to package.json, bumped version number
* fixed linting config issue
  • Loading branch information
amorey authored Apr 13, 2024
1 parent 9d3d64f commit 4b4cbba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
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

0 comments on commit 4b4cbba

Please sign in to comment.