Skip to content

Commit

Permalink
Fixes #9: package.json types and extra
Browse files Browse the repository at this point in the history
  • Loading branch information
zheksoon committed Apr 20, 2024
1 parent 07000f0 commit 27eae24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"name": "dioma",
"version": "0.4.3",
"version": "0.4.6",
"description": "Elegant dependency injection container for vanilla JavaScript and TypeScript",
"license": "MIT",
"repository": {
"type": "git",
"url": "[email protected]:zheksoon/dioma.git"
},
"homepage": "https://github.com/zheksoon/dioma",
"author": {
"name": "Eugene Daragan",
"email": "[email protected]"
},
"keywords": [
"di",
"dependency injection",
Expand All @@ -22,14 +27,19 @@
"tsyringe"
],
"type": "module",
"main": "dist/dioma.cjs",
"main": "dist/dioma.js",
"module": "dist/dioma.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/dioma.js",
"require": "./dist/dioma.cjs",
"types": "./dist/index.d.ts"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/dioma.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/dioma.cjs"
}
}
},
"files": [
Expand All @@ -40,7 +50,7 @@
"package.json"
],
"scripts": {
"build": "vite build --minify=false --sourcemap=true",
"build": "vite build --minify=false --sourcemap=true && cp dist/index.d.ts dist/index.d.cts",
"test": "vitest",
"test:coverage": "vitest --coverage"
},
Expand Down
1 change: 0 additions & 1 deletion test/dioma.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
injectAsync,
} from "../src";
import { AnyDescriptor } from "../src/types";
import { c } from "vite/dist/node/types.d-aGj9QkWt";

describe("Dioma", () => {
beforeEach(() => {
Expand Down

0 comments on commit 27eae24

Please sign in to comment.