chore: link with @alveojs/common from npm

This commit is contained in:
M1000fr
2026-01-12 13:23:12 +01:00
parent baf025748a
commit 4f627eedbd
4 changed files with 84 additions and 3 deletions

68
biome.json Normal file
View File

@@ -0,0 +1,68 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentStyle": "tab",
"indentWidth": 4,
"lineEnding": "lf",
"lineWidth": 80,
"attributePosition": "auto"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noStaticOnlyClass": "off",
"noBannedTypes": "off"
},
"correctness": {
"noUnusedVariables": "error",
"noUnusedPrivateClassMembers": "error",
"noUnusedFunctionParameters": "off"
},
"style": {
"useImportType": "off",
"useNodejsImportProtocol": "off",
"useTemplate": "off",
"noNonNullAssertion": "off",
"useLiteralEnumMembers": "off"
},
"suspicious": {
"noExplicitAny": "error",
"noImplicitAnyLet": "off",
"noAssignInExpressions": "off",
"useIterableCallbackReturn": "off",
"noShadowRestrictedNames": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
},
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
},
"overrides": [
{
"includes": ["dist/**", "node_modules/**"],
"linter": {
"enabled": false
},
"formatter": {
"enabled": false
}
}
]
}

View File

@@ -5,6 +5,7 @@
"": {
"name": "core",
"dependencies": {
"@alveojs/common": "../Common",
"reflect-metadata": "^0.2.2",
},
"devDependencies": {
@@ -17,6 +18,8 @@
},
},
"packages": {
"@alveojs/common": ["@alveojs/common@file:../Common", { "dependencies": { "reflect-metadata": "^0.2.2" }, "devDependencies": { "@biomejs/biome": "^2.3.11", "@types/bun": "latest" }, "peerDependencies": { "reflect-metadata": "^0.2.2", "typescript": "^5" } }],
"@biomejs/biome": ["@biomejs/biome@2.3.11", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.11", "@biomejs/cli-darwin-x64": "2.3.11", "@biomejs/cli-linux-arm64": "2.3.11", "@biomejs/cli-linux-arm64-musl": "2.3.11", "@biomejs/cli-linux-x64": "2.3.11", "@biomejs/cli-linux-x64-musl": "2.3.11", "@biomejs/cli-win32-arm64": "2.3.11", "@biomejs/cli-win32-x64": "2.3.11" }, "bin": { "biome": "bin/biome" } }, "sha512-/zt+6qazBWguPG6+eWmiELqO+9jRsMZ/DBU3lfuU2ngtIQYzymocHhKiZRyrbra4aCOoyTg/BmY+6WH5mv9xmQ=="],
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.11", "", { "os": "darwin", "cpu": "arm64" }, "sha512-/uXXkBcPKVQY7rc9Ys2CrlirBJYbpESEDme7RKiBD6MmqR2w3j0+ZZXRIL2xiaNPsIMMNhP1YnA+jRRxoOAFrA=="],

View File

@@ -1,9 +1,11 @@
{
"name": "@alveojs/core",
"version": "0.0.1",
"description": "Core engine for Alveo DI container",
"module": "src/index.ts",
"types": "src/index.ts",
"type": "module",
"private": true,
"private": false,
"devDependencies": {
"@biomejs/biome": "^2.3.11",
"@types/bun": "latest"
@@ -12,7 +14,7 @@
"typescript": "^5"
},
"dependencies": {
"@alveojs/common": "workspace:*",
"@alveojs/common": "^0.0.1",
"reflect-metadata": "^0.2.2"
},
"scripts": {

View File

@@ -1,13 +1,21 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,