From 4f627eedbd6375fd2e20d7140e2406d49505ed25 Mon Sep 17 00:00:00 2001 From: M1000fr Date: Mon, 12 Jan 2026 13:23:12 +0100 Subject: [PATCH] chore: link with @alveojs/common from npm --- biome.json | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ bun.lock | 3 +++ package.json | 6 +++-- tsconfig.json | 10 +++++++- 4 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 biome.json diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..0a785b7 --- /dev/null +++ b/biome.json @@ -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 + } + } + ] +} diff --git a/bun.lock b/bun.lock index 35c7053..1cdb7ea 100644 --- a/bun.lock +++ b/bun.lock @@ -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=="], diff --git a/package.json b/package.json index 45762cc..76effaa 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/tsconfig.json b/tsconfig.json index d0eadc0..7d5bd5a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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,