Skip to content

Commit

Permalink
cjs + esm with @chubbyts/packaging v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Jul 27, 2023
1 parent 8fecec2 commit 028591f
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 28 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Path-to-regex routing implementation for [chubbyts-framework][2].
## Requirements

* node: 16
* [chubbyts/chubbyts-framework][2]: ^1.8.1
* [chubbyts/chubbyts-http-error][3]: ^2.2.1
* [chubbyts/chubbyts-http-types][4]: ^1.1.1
* [chubbyts/chubbyts-framework][2]: ^1.9.0
* [chubbyts/chubbyts-http-error][3]: ^2.3.1
* [chubbyts/chubbyts-http-types][4]: ^1.2.3
* [path-to-regexp][5]: ^6.2.1
* [qs][6]: ^6.11.2

Expand All @@ -35,7 +35,7 @@ Path-to-regex routing implementation for [chubbyts-framework][2].
Through [NPM](https://www.npmjs.com) as [@chubbyts/chubbyts-framework-router-path-to-regexp][1].

```ts
npm i @chubbyts/chubbyts-framework-router-path-to-regexp@^1.3.1
npm i @chubbyts/chubbyts-framework-router-path-to-regexp@^1.4.0
```

## Copyright
Expand Down
1 change: 1 addition & 0 deletions build.js
38 changes: 24 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@chubbyts/chubbyts-framework-router-path-to-regexp",
"version": "1.3.1",
"type": "module",
"version": "1.4.0",
"description": "Path-to-regex routing implementation for chubbyts-framework.",
"keywords": [
"chubbyts",
Expand All @@ -13,14 +14,14 @@
"license": "MIT",
"repository": "chubbyts/chubbyts-framework-router-path-to-regexp",
"scripts": {
"build": "node ./build.js",
"cs-fix": "prettier --write src tests",
"cs": "prettier --check src tests",
"infection": "stryker run",
"lint-fix": "eslint src tests --fix",
"lint": "eslint src tests",
"test": "jest",
"infection": "stryker run",
"build": "rm -Rf dist && tsc",
"prepare": "npm run build"
"prepare": "npm run build",
"test": "jest"
},
"jest": {
"preset": "ts-jest",
Expand All @@ -43,25 +44,34 @@
"files": [
"dist"
],
"exports": {
"./*": {
"types": "./*.d.ts",
"require": "./*.cjs",
"import": "./*.mjs",
"default": "./*.mjs"
}
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@chubbyts/chubbyts-framework": "^1.8.1",
"@chubbyts/chubbyts-http-error": "^2.2.1",
"@chubbyts/chubbyts-http-types": "^1.1.1",
"@chubbyts/chubbyts-framework": "^1.9.0",
"@chubbyts/chubbyts-http-error": "^2.3.1",
"@chubbyts/chubbyts-http-types": "^1.2.3",
"path-to-regexp": "^6.2.1",
"qs": "^6.11.2"
},
"devDependencies": {
"@chubbyts/chubbyts-eslint": "^1.1.2",
"@chubbyts/chubbyts-function-mock": "^1.3.5",
"@stryker-mutator/core": "^7.1.0",
"@stryker-mutator/jest-runner": "^7.1.0",
"@chubbyts/chubbyts-eslint": "^2.0.3",
"@chubbyts/chubbyts-function-mock": "^1.4.1",
"@chubbyts/chubbyts-packaging": "^2.0.4",
"@stryker-mutator/core": "^7.1.1",
"@stryker-mutator/jest-runner": "^7.1.1",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.1",
"@types/node": "^20.4.5",
"@types/qs": "^6.9.7",
"jest": "^29.6.1",
"jest": "^29.6.2",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.cjs.json
1 change: 1 addition & 0 deletions tsconfig.esm.json
10 changes: 0 additions & 10 deletions tsconfig.json

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
1 change: 1 addition & 0 deletions tsconfig.types.json

0 comments on commit 028591f

Please sign in to comment.