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 4bcecc3 commit eb2c90a
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 21 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ Dependency injection container creation by config, inspired by [mezzio-config][2
## Requirements

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

## Installation

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

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

## Usage
Expand Down
1 change: 1 addition & 0 deletions build.js
26 changes: 18 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@chubbyts/chubbyts-dic-config",
"version": "1.1.1",
"type": "module",
"version": "1.2.0",
"description": "Dependency injection container creation by config, inspired by laminas-config.",
"keywords": [
"chubbyts",
Expand All @@ -15,14 +16,14 @@
"license": "MIT",
"repository": "chubbyts/chubbyts-dic-config",
"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 @@ -45,15 +46,24 @@
"files": [
"dist"
],
"exports": {
"./*": {
"types": "./*.d.ts",
"require": "./*.cjs",
"import": "./*.mjs",
"default": "./*.mjs"
}
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@chubbyts/chubbyts-dic": "^1.1.1",
"@chubbyts/chubbyts-dic-types": "^1.1.1"
"@chubbyts/chubbyts-dic": "^1.2.0",
"@chubbyts/chubbyts-dic-types": "^1.2.1"
},
"devDependencies": {
"@chubbyts/chubbyts-eslint": "^1.1.2",
"@chubbyts/chubbyts-eslint": "^2.0.3",
"@chubbyts/chubbyts-packaging": "^2.0.4",
"@stryker-mutator/core": "^7.1.0",
"@stryker-mutator/jest-runner": "^7.1.0",
"@types/jest": "^29.5.3",
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 eb2c90a

Please sign in to comment.