Skip to content

Commit

Permalink
cjs + esm
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Jul 25, 2023
1 parent 78131d5 commit eda6fb8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 20 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A simple negotiation library.
Through [NPM](https://www.npmjs.com) as [@chubbyts/chubbyts-negotiation][1].

```ts
npm i @chubbyts/chubbyts-negotiation@^3.1.1
npm i @chubbyts/chubbyts-negotiation@^3.2.0
```

## Usage
Expand Down
28 changes: 19 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@chubbyts/chubbyts-negotiation",
"version": "3.1.1",
"type": "module",
"version": "3.2.0",
"description": "A simple negotiation library.",
"keywords": [
"chubbyts",
Expand All @@ -13,14 +14,14 @@
"license": "MIT",
"repository": "chubbyts/chubbyts-negotiation",
"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 @@ -43,16 +44,25 @@
"files": [
"dist"
],
"exports": {
"./*": {
"types": "./*.d.ts",
"require": "./*.cjs",
"import": "./*.js",
"default": "./*.js"
}
},
"engines": {
"node": ">=16"
},
"dependencies": {},
"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.5",
"jest": "^29.6.1",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
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 eda6fb8

Please sign in to comment.