Skip to content
Open
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
27 changes: 20 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,25 @@
"url": "https://opencollective.com/express"
},
"license": "MIT",
"exports": "./dist/index.js",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"exports": {
"import": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
},
Comment thread
wojtekmaj marked this conversation as resolved.
"require": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js"
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/"
],
"scripts": {
"bench": "vitest bench",
"build": "ts-scripts build",
"build": "tsdown src/index.ts --format cjs,esm --platform neutral --sourcemap",
Comment thread
wojtekmaj marked this conversation as resolved.
"format": "ts-scripts format",
"lint": "ts-scripts lint",
"prepare": "ts-scripts install && npm run build",
Comment thread
wojtekmaj marked this conversation as resolved.
Expand All @@ -41,6 +51,7 @@
"@vitest/coverage-v8": "^3.0.5",
"recheck": "^4.5.0",
"size-limit": "^11.1.2",
"tsdown": "^0.21.7",
"typescript": "^5.7.3",
"vitest": "^3.0.5"
},
Expand All @@ -56,9 +67,11 @@
"ts-scripts": {
"dist": [
"dist"
],
"project": [
"tsconfig.build.json"
]
},
"tsdown": {
"outputOptions": {
"esModule": true
}
}
}
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,3 +667,13 @@ function stringifyName(name: string, next: Token | undefined): string {

return name;
}

export default {
PathError,
TokenData,
compile,
match,
parse,
pathToRegexp,
stringify,
};
7 changes: 0 additions & 7 deletions tsconfig.build.json

This file was deleted.