Skip to content

Commit

Permalink
released v5.0.3 - removed examples from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhitley committed Mar 29, 2024
1 parent cc8bea8 commit 27a7fda
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "itty-router",
"version": "5.0.2",
"version": "5.0.3",
"description": "A tiny, zero-dependency router, designed to make beautiful APIs in any environment.",
"main": "./index.js",
"module": "./index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fs from 'fs-extra'

// scan files to build
const files = (await globby('./src/*.ts', {
ignore: ['**/*.spec.ts', 'example', '**/types.ts'],
ignore: ['**/*.spec.ts', 'examples', '**/types.ts'],
})).map(path => ({
path,
shortPath: path.replace(/(\/src)|(\.ts)/g, '').replace('./index', '.'),
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"module": "esnext",
"types": ["@cloudflare/workers-types", "@types/node"]
},
"exclude": ["node_modules", "dist", "**/*.spec.ts", "**/example.ts"],
"include": ["src", "example"]
"exclude": ["node_modules", "dist", "**/*.spec.ts", "examples"],
"include": ["src"]
}
4 changes: 2 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['**/example/**'],
exclude: ['**/examples/**'],
coverage: {
reporter: ['text', 'lcov'],
exclude: [
'**/example/**',
'**/examples/**',
'**/lib/**',
'src/index.ts',
'src/types',
Expand Down

0 comments on commit 27a7fda

Please sign in to comment.