This commit is contained in:
sdarbinyan
2026-05-21 15:27:22 +04:00
parent d21056bf96
commit 67b09147ea
9 changed files with 1611 additions and 573 deletions

View File

@@ -1,13 +1,17 @@
{
"name": "auth-service",
"version": "0.0.0",
"name": "telegram-userauth",
"version": "0.1.0",
"description": "Reusable Telegram user authentication web component for cross-repo integration.",
"scripts": {
"ng": "ng",
"start": "ng serve --port 4300 --open",
"build": "ng build",
"build": "npm run build:app && npm run build:package",
"build:app": "ng build",
"build:package": "tsup src/package/index.ts --format esm,cjs --dts --clean --out-dir dist/package",
"build:prod": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"test": "ng test"
"test": "ng test",
"prepack": "npm run build:package"
},
"prettier": {
"printWidth": 100,
@@ -21,7 +25,29 @@
}
]
},
"private": true,
"keywords": [
"telegram",
"auth",
"web-component",
"userauth"
],
"license": "UNLICENSED",
"main": "./dist/package/index.js",
"module": "./dist/package/index.mjs",
"types": "./dist/package/index.d.ts",
"exports": {
".": {
"types": "./dist/package/index.d.ts",
"import": "./dist/package/index.mjs",
"require": "./dist/package/index.js"
}
},
"files": [
"dist/package",
"README.md",
"TELEGRAM_USERAUTH_BACKEND.md"
],
"sideEffects": false,
"packageManager": "npm@10.9.2",
"dependencies": {
"@angular/common": "^21.0.0",
@@ -35,7 +61,10 @@
"@angular/build": "^21.0.4",
"@angular/cli": "^21.0.4",
"@angular/compiler-cli": "^21.0.0",
"@types/qrcode": "^1.5.6",
"jsdom": "^27.1.0",
"qrcode": "^1.5.4",
"tsup": "^8.5.0",
"typescript": "~5.9.2",
"vitest": "^4.0.8"
}