@rolster/invertly 3.0.1 → 3.1.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/dist/cjs/index.js +1 -1
  2. package/package.json +25 -17
package/dist/cjs/index.js CHANGED
@@ -257,7 +257,7 @@ exports.Injectable = Injectable;
257
257
  exports.InvertlyContainer = InvertlyContainer;
258
258
  exports.Scope = Scope;
259
259
  exports.Singleton = Singleton;
260
- exports["default"] = createFromInvertly;
260
+ exports.default = createFromInvertly;
261
261
  exports.findInLocator = findInLocator;
262
262
  exports.invertly = invertly;
263
263
  exports.pushInLocator = pushInLocator;
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@rolster/invertly",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
+ "type": "module",
4
5
  "description": "Invertly is a package that allows you to implement class mapping to identify and inject their dependencies.",
5
- "module": "dist/esm/index.js",
6
- "main": "dist/cjs/index.js",
7
- "unpkg": "dist/es/index.js",
8
- "types": "dist/esm/index.d.ts",
9
6
  "license": "MIT",
10
7
  "author": "Rolster Technology <rolster.developments@gmail.com>",
11
8
  "contributors": [
@@ -14,36 +11,47 @@
14
11
  "email": "ing.dacastillop@gmail.com"
15
12
  }
16
13
  ],
14
+ "types": "./dist/esm/index.d.ts",
15
+ "main": "./dist/esm/index.js",
16
+ "module": "./dist/esm/index.js",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/esm/index.d.ts",
20
+ "node": {
21
+ "require": "./dist/cjs/index.js",
22
+ "import": "./dist/esm/index.js"
23
+ },
24
+ "default": "./dist/esm/index.js"
25
+ }
26
+ },
17
27
  "files": [
18
28
  "dist/"
19
29
  ],
20
30
  "scripts": {
21
- "prettier": "prettier . --write",
31
+ "prettier": "prettier --write \"src/**/*.{ts}\"",
22
32
  "clean": "rimraf ./dist",
23
33
  "build": "npm run clean && tsc -p tsconfig.app.json && rollup -c rollup.config.js",
24
- "test": "jest --coverage",
25
- "test:watch": "jest --coverage --watch",
34
+ "test": "vitest run",
26
35
  "prepublishOnly": "npm run build"
27
36
  },
28
37
  "dependencies": {
29
- "@rolster/commons": "^3.0.0",
38
+ "@rolster/commons": "^3.2.1",
30
39
  "reflect-metadata": "^0.2.2"
31
40
  },
32
41
  "devDependencies": {
33
- "@rollup/plugin-commonjs": "^25.0.4",
34
- "@rollup/plugin-node-resolve": "^15.2.1",
35
- "@rollup/plugin-typescript": "^11.1.3",
36
- "@rolster/rollup": "^1.0.8",
42
+ "@rolster/rollup": "^1.0.10",
37
43
  "@rolster/types": "^1.1.0",
38
- "prettier": "^3.0.3",
44
+ "@vitest/ui": "^3.2.4",
45
+ "jsdom": "^27.0.0",
46
+ "prettier": "^3.8.1",
39
47
  "rimraf": "^3.0.2",
40
- "rollup": "^2.32.0",
41
48
  "tslib": "^2.4.0",
42
- "typescript": "^5.7.2"
49
+ "typescript": "^5.7.2",
50
+ "vitest": "^3.2.4"
43
51
  },
44
52
  "repository": {
45
53
  "type": "git",
46
- "url": "https://github.com/rolster-developments/typescript-invertly.git"
54
+ "url": "git+https://github.com/rolster-developments/typescript-invertly.git"
47
55
  },
48
56
  "keywords": [
49
57
  "rolster",