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 26, 2023
1 parent 80d6c2e commit ac05805
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 22 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ Dependency injection container (DIC), [PSR-11][2] inspired.
## Requirements

* node: 16
* [chubbyts/chubbyts-dic-types][3]: ^1.1.1
* [chubbyts/chubbyts-dic-types][3]: ^1.2.1

## Installation

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

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

## Usage
Expand Down
1 change: 1 addition & 0 deletions build.js
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-dic",
"version": "1.1.1",
"type": "module",
"version": "1.2.0",
"description": "Dependency injection container (DIC), PSR-11 inspired.",
"keywords": [
"chubbyts",
Expand All @@ -14,14 +15,14 @@
"license": "MIT",
"repository": "chubbyts/chubbyts-dic",
"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 @@ -44,18 +45,27 @@
"files": [
"dist"
],
"exports": {
"./*": {
"types": "./*.d.ts",
"require": "./*.cjs",
"import": "./*.mjs",
"default": "./*.mjs"
}
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@chubbyts/chubbyts-dic-types": "^1.1.1"
"@chubbyts/chubbyts-dic-types": "^1.2.1"
},
"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.3",
"@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",
"jest": "^29.6.1",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
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 ac05805

Please sign in to comment.