@tdi2/di-core
Version:
TypeScript Dependency Injection 2 - Core DI framework
91 lines (90 loc) • 2.49 kB
JSON
{
"name": "@tdi2/di-core",
"version": "3.1.0",
"description": "TypeScript Dependency Injection 2 - Core DI framework",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./examples/*": {
"import": "./dist/examples/*.js",
"types": "./dist/examples/*.d.ts"
},
"./examples/*.js": "./dist/examples/*.js",
"./examples/*.d.ts": "./dist/examples/*.d.ts",
"./examples/sources/*": "./tools/functional-di-enhanced-transformer/__tests__/__fixtures__/*",
"./sources/*": "./tools/functional-di-enhanced-transformer/__tests__/__fixtures__/*",
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./decorators": {
"import": "./dist/decorators.js",
"types": "./dist/decorators.d.ts"
},
"./types": {
"import": "./dist/types.js",
"types": "./dist/types.d.ts"
},
"./markers": {
"import": "./dist/markers.js",
"types": "./dist/markers.d.ts"
},
"./container": {
"import": "./dist/container.js",
"types": "./dist/container.d.ts"
},
"./context": {
"import": "./dist/context.js",
"types": "./dist/context.d.ts"
},
"./tools": {
"import": "./dist/tools/index.js",
"types": "./dist/tools/index.d.ts"
}
},
"files": [
"dist/",
"tools/functional-di-enhanced-transformer/__tests__/__fixtures__/",
"*.d.ts"
],
"scripts": {
"dev": "tsup --watch",
"test:io": "bash -c 'select f in $(find . -type f -name \"*.test.ts\" ); do [ -n \"$f\" ] && exec bun test \"$f\"; done'",
"build": "tsup && tsc -p tsconfig.dts.json || true",
"test": "bun test",
"lint": "echo 'No linting configured yet'",
"clean": "rm -rf dist",
"prepublishOnly": "npm run clean && npm run build",
"publish:npm": "npm publish --access public",
"publish:jsr": "npx jsr publish"
},
"keywords": [
"dependency-injection",
"typescript",
"react",
"valtio",
"proxy-state"
],
"author": "TDI2 Team",
"license": "MIT",
"dependencies": {
"@types/diff": "^8.0.0",
"diff": "^8.0.2",
"ts-morph": "^21.0.1",
"valtio": "^2.1.2"
},
"devDependencies": {
"@types/bun": "latest",
"@types/node": "^20.0.0",
"@types/react": "^19.1.8",
"typescript": "~5.8.3"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0",
"vite": "^4.0.0 || ^5.0.0 || ^6.0.0"
},
"engines": {
"node": ">=18.0.0"
}
}