first-di 2.0.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -0
  2. package/package.json +35 -19
package/README.md CHANGED
@@ -23,6 +23,7 @@ Features
23
23
 
24
24
  Setup
25
25
  ------
26
+
26
27
  Install [reflect-metadata](https://www.npmjs.com/package/reflect-metadata) package and import in root typescript file. This package is needed to support reflection and is a mandatory requirement of Typescript.
27
28
 
28
29
  In tsconfig.json enable compiler options:
package/package.json CHANGED
@@ -1,39 +1,55 @@
1
1
  {
2
2
  "name": "first-di",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
+ "author": "Eugene Labutin",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/LabEG/first-di#readme",
4
7
  "description": "Easy dependency injection for typescript applications",
5
8
  "main": "./dist/index.js",
6
9
  "type": "module",
7
10
  "typings": "./dist/index.d.ts",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": " git@github.com:LabEG/first-di.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/LabEG/first-di/issues"
17
+ },
18
+ "lint-staged": {
19
+ "./tests/**/*.(ts|tsx|js|jsx)": [
20
+ "eslint --fix -c .eslintrc.js --ext .tsx,.ts,.jsx,.js"
21
+ ]
22
+ },
23
+ "scripts": {
24
+ "lint": "eslint --fix -c .eslintrc.cjs --ext .tsx,.ts,.jsx,.js ./src/ ./tests/",
25
+ "test": "mocha --reporter spec --require ts-node/register tests/*.test.ts",
26
+ "build": "rm -rf dist/ && tsc --project tsconfig.build.json && node ./dist/index.js",
27
+ "release": "cliff-jumper --name '@labeg/code-style' --package-path '.' --no-skip-changelog --no-skip-tag",
28
+ "prepublishOnly": "npm run lint && npm run build && npm run test",
29
+ "prepare": "husky install"
30
+ },
8
31
  "peerDependencies": {
9
32
  "reflect-metadata": ">=0.1.0"
10
33
  },
11
34
  "devDependencies": {
12
- "@labeg/code-style": "^4.0.7",
13
- "@types/chai": "^4.3.14",
35
+ "@labeg/code-style": "^4.2.2",
36
+ "@types/chai": "^4.3.16",
14
37
  "@types/mocha": "^10.0.6",
15
- "@types/node": "^20.12.7",
16
- "chai": "^5.1.0",
38
+ "@types/node": "^20.13.0",
39
+ "chai": "^5.1.1",
17
40
  "mocha": "^10.4.0",
18
41
  "ts-node": "^10.9.2",
19
42
  "reflect-metadata": "^0.2.2",
20
- "typescript": "^5.4.5"
21
- },
22
- "scripts": {
23
- "lint": "eslint --fix -c .eslintrc.cjs --ext .tsx,.ts,.jsx,.js ./src/ ./tests/",
24
- "test": "mocha --reporter spec --require ts-node/register tests/*.test.ts",
25
- "build": "rm -rf dist/ && tsc --project tsconfig.build.json && node ./dist/index.js",
26
- "prepublishOnly": "npm run lint && npm run build && npm run test && npm version patch"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": " git@github.com:LabEG/first-di.git"
43
+ "typescript": "^5.4.5",
44
+ "@commitlint/cli": "^19.3.0",
45
+ "@commitlint/config-conventional": "^19.2.2",
46
+ "husky": "^9.0.11",
47
+ "lint-staged": "^15.2.5",
48
+ "@favware/cliff-jumper": "^3.0.3"
31
49
  },
32
50
  "keywords": [
33
51
  "dependency injection",
34
52
  "di",
35
53
  "ioc"
36
- ],
37
- "author": "LabEG",
38
- "license": "MIT"
54
+ ]
39
55
  }