114 lines
4.3 KiB
JSON
114 lines
4.3 KiB
JSON
{
|
|
"name": "@suaveplan/pwa",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"browser": "./dist/index.js",
|
|
"description": "Enterprise browser-tier PWA primitives: ServiceWorkerManager + UpdateController, pluggable SyncQueue (memory / localStorage / IndexedDB stores) with Zod-validated entries + version migration + Background Sync bridge, PushNotificationManager + VAPID decoder, InstallPromptManager with persisted dismissal, caching-strategy DSL (cacheFirst / networkFirst / staleWhileRevalidate / cacheOnly / networkOnly) + Router, Web App Manifest builder, OTel counters + histograms, typed PWA.* error registry.",
|
|
"license": "MIT",
|
|
"author": "Suaveplan Team",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./errors": {
|
|
"import": {
|
|
"types": "./dist/errors/errors.d.ts",
|
|
"default": "./dist/errors/errors.js"
|
|
}
|
|
},
|
|
"./schemas": {
|
|
"import": {
|
|
"types": "./dist/schemas/schemas.d.ts",
|
|
"default": "./dist/schemas/schemas.js"
|
|
}
|
|
},
|
|
"./observability": {
|
|
"import": {
|
|
"types": "./dist/observability/observability.d.ts",
|
|
"default": "./dist/observability/observability.js"
|
|
}
|
|
},
|
|
"./service-worker": {
|
|
"import": {
|
|
"types": "./dist/service-worker/service-worker.d.ts",
|
|
"default": "./dist/service-worker/service-worker.js"
|
|
}
|
|
},
|
|
"./update-controller": {
|
|
"import": {
|
|
"types": "./dist/update-controller/update-controller.d.ts",
|
|
"default": "./dist/update-controller/update-controller.js"
|
|
}
|
|
},
|
|
"./sync-queue": {
|
|
"import": {
|
|
"types": "./dist/sync-queue/sync-queue.d.ts",
|
|
"default": "./dist/sync-queue/sync-queue.js"
|
|
}
|
|
},
|
|
"./push-notifications": {
|
|
"import": {
|
|
"types": "./dist/push-notifications/push-notifications.d.ts",
|
|
"default": "./dist/push-notifications/push-notifications.js"
|
|
}
|
|
},
|
|
"./install-prompt": {
|
|
"import": {
|
|
"types": "./dist/install-prompt/install-prompt.d.ts",
|
|
"default": "./dist/install-prompt/install-prompt.js"
|
|
}
|
|
},
|
|
"./caching-strategies": {
|
|
"import": {
|
|
"types": "./dist/caching-strategies/caching-strategies.d.ts",
|
|
"default": "./dist/caching-strategies/caching-strategies.js"
|
|
}
|
|
},
|
|
"./manifest": {
|
|
"import": {
|
|
"types": "./dist/manifest/manifest.d.ts",
|
|
"default": "./dist/manifest/manifest.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/opentelemetry": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"fake-indexeddb": "catalog:testing",
|
|
"happy-dom": "catalog:testing",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:build",
|
|
"vite-plugin-dts": "catalog:build",
|
|
"vitest": "catalog:testing"
|
|
}
|
|
}
|