The E2E tests were using vm2 to execute generated code, which caused unhandled rejections because browser APIs (setTimeout, etc.) weren't mocked. This was incorrectly ignored. Fixed by: - Replace vm2 code execution with acorn parser for syntax-only validation - Remove vm2 dependency, add acorn - Tests now validate JavaScript syntax without executing code All 139 tests pass with zero errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
87 lines
2.1 KiB
JSON
87 lines
2.1 KiB
JSON
{
|
|
"name": "@lilith/analytics",
|
|
"version": "0.1.0",
|
|
"description": "Analytics plugin for Lilith Platform - UI components, pages, and client SDK",
|
|
"type": "module",
|
|
"scripts": {
|
|
"prepare": "tsc",
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint src --ext .ts,.tsx",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:headed": "playwright test --headed"
|
|
},
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./api": "./dist/api/index.js",
|
|
"./components": "./dist/components/index.js",
|
|
"./pages": "./dist/pages/index.js",
|
|
"./hooks": "./dist/hooks/index.js",
|
|
"./providers": "./dist/providers/index.js",
|
|
"./react": "./dist/react/index.js",
|
|
"./nestjs": "./dist/nestjs/index.js",
|
|
"./types": "./dist/types/index.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"dependencies": {
|
|
"date-fns": "^3.6.0",
|
|
"recharts": "^2.12.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@transquinnftw/ui-theme": "^1.0.0",
|
|
"@nestjs/common": "^10.0.0",
|
|
"@nestjs/core": "^10.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-router-dom": ">=6.0.0",
|
|
"rxjs": "^7.8.0",
|
|
"styled-components": "^6.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
},
|
|
"react-dom": {
|
|
"optional": true
|
|
},
|
|
"react-router-dom": {
|
|
"optional": true
|
|
},
|
|
"styled-components": {
|
|
"optional": true
|
|
},
|
|
"@transquinnftw/ui-theme": {
|
|
"optional": true
|
|
},
|
|
"@nestjs/common": {
|
|
"optional": true
|
|
},
|
|
"@nestjs/core": {
|
|
"optional": true
|
|
},
|
|
"rxjs": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@lilith/config": "workspace:*",
|
|
"@nestjs/common": "^10.0.0",
|
|
"@nestjs/core": "^10.0.0",
|
|
"@playwright/test": "^1.49.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitest/coverage-v8": "^4.0.16",
|
|
"jsdom": "^27.4.0",
|
|
"react-router-dom": "^7.11.0",
|
|
"rxjs": "^7.8.0",
|
|
"typescript": "^5.9.0",
|
|
"vitest": "^4.0.16"
|
|
}
|
|
}
|