diff --git a/package.json b/package.json index 07ba4ff..666f10c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rollup.config.mjs b/rollup.config.mjs index 335359d..7ff25f9 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -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', '.'), diff --git a/tsconfig.json b/tsconfig.json index f8ca21c..951909c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] } diff --git a/vitest.config.ts b/vitest.config.ts index 61b2a47..d077810 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -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',