Skip to content

Commit

Permalink
cjs + esm
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Jul 23, 2023
1 parent ceaea07 commit 92a891d
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 22 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ Http Request/Response with middleware and handler, [PSR-15][2] inspired.
## Requirements

* node: 16
* [chubbyts/chubbyts-http-types][3]: ^1.1.1
* [chubbyts/chubbyts-http-types][3]: ^1.2.2
* [qs][4]: ^6.11.1

## Installation

Through [NPM](https://www.npmjs.com) as [@chubbyts/chubbyts-http][1].

```ts
npm i @chubbyts/chubbyts-http@^1.1.1
npm i @chubbyts/chubbyts-http@^1.2.0
```

## Copyright
Expand Down
30 changes: 20 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@chubbyts/chubbyts-http",
"version": "1.1.1",
"type": "module",
"version": "1.2.0",
"description": "Http Request/Response with middleware and handler, PSR-15 inspired.",
"keywords": [
"chubbyts",
Expand All @@ -15,14 +16,14 @@
"license": "MIT",
"repository": "chubbyts/chubbyts-http",
"scripts": {
"build": "rm -rf ./dist && tsc -b ./tsconfig.types.json ./tsconfig.esm.json ./tsconfig.cjs.json && node ./rename-commonjs.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 @@ -45,19 +46,28 @@
"files": [
"dist"
],
"exports": {
"./*": {
"types": "./*.d.ts",
"require": "./*.cjs",
"import": "./*.js",
"default": "./*.js"
}
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@chubbyts/chubbyts-http-types": "^1.1.1",
"@chubbyts/chubbyts-http-types": "^1.2.2",
"qs": "^6.11.2"
},
"devDependencies": {
"@chubbyts/chubbyts-eslint": "^1.1.2",
"@stryker-mutator/core": "^7.1.0",
"@stryker-mutator/jest-runner": "^7.1.0",
"@chubbyts/chubbyts-eslint": "^2.0.2",
"@chubbyts/chubbyts-packaging": "^1.0.3",
"@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.4",
"@types/qs": "^6.9.7",
"jest": "^29.6.1",
"prettier": "^3.0.0",
Expand Down
1 change: 1 addition & 0 deletions rename-commonjs.js
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 92a891d

Please sign in to comment.