|
| 1 | +{ |
| 2 | + "name": "react-component-lens", |
| 3 | + "displayName": "React Component Lens", |
| 4 | + "description": "Highlight React Server and Client component usage directly in the editor.", |
| 5 | + "version": "0.1.0", |
| 6 | + "publisher": "owjs3", |
| 7 | + "license": "MIT", |
| 8 | + "repository": { |
| 9 | + "type": "git", |
| 10 | + "url": "./" |
| 11 | + }, |
| 12 | + "categories": [ |
| 13 | + "Other" |
| 14 | + ], |
| 15 | + "keywords": [ |
| 16 | + "react", |
| 17 | + "nextjs", |
| 18 | + "server-components", |
| 19 | + "client-components", |
| 20 | + "typescript" |
| 21 | + ], |
| 22 | + "engines": { |
| 23 | + "vscode": "^1.110.0" |
| 24 | + }, |
| 25 | + "activationEvents": [ |
| 26 | + "onLanguage:typescriptreact", |
| 27 | + "onLanguage:javascriptreact" |
| 28 | + ], |
| 29 | + "main": "./out/src/extension.js", |
| 30 | + "contributes": { |
| 31 | + "commands": [ |
| 32 | + { |
| 33 | + "command": "reactComponentLens.refresh", |
| 34 | + "title": "React Component Lens: Refresh Decorations" |
| 35 | + } |
| 36 | + ], |
| 37 | + "configuration": { |
| 38 | + "title": "React Component Lens", |
| 39 | + "properties": { |
| 40 | + "reactComponentLens.enabled": { |
| 41 | + "type": "boolean", |
| 42 | + "default": true, |
| 43 | + "description": "Enable React Component Lens decorations in React editors." |
| 44 | + }, |
| 45 | + "reactComponentLens.debounceMs": { |
| 46 | + "type": "number", |
| 47 | + "default": 200, |
| 48 | + "minimum": 0, |
| 49 | + "maximum": 2000, |
| 50 | + "description": "Debounce delay, in milliseconds, before recomputing decorations after workspace changes." |
| 51 | + }, |
| 52 | + "reactComponentLens.highlightColors": { |
| 53 | + "type": "object", |
| 54 | + "default": { |
| 55 | + "clientComponent": "#14b8a6", |
| 56 | + "serverComponent": "#f59e0b" |
| 57 | + }, |
| 58 | + "additionalProperties": false, |
| 59 | + "description": "Text colors for React Component Lens decorations.", |
| 60 | + "properties": { |
| 61 | + "clientComponent": { |
| 62 | + "type": "string", |
| 63 | + "format": "color", |
| 64 | + "default": "#14b8a6", |
| 65 | + "description": "CSS text color used for Client Component usages." |
| 66 | + }, |
| 67 | + "serverComponent": { |
| 68 | + "type": "string", |
| 69 | + "format": "color", |
| 70 | + "default": "#f59e0b", |
| 71 | + "description": "CSS text color used for Server Component usages." |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + } |
| 77 | + }, |
| 78 | + "scripts": { |
| 79 | + "build": "tsc -p ./tsconfig.json", |
| 80 | + "compile": "bun run build", |
| 81 | + "watch": "tsc -watch -p ./tsconfig.json", |
| 82 | + "lint": "oxlint .", |
| 83 | + "lint:fix": "oxlint . --fix", |
| 84 | + "test": "bun run build && node --test out/test/analyzer.test.js", |
| 85 | + "vscode:prepublish": "bun run build", |
| 86 | + "prepare": "husky" |
| 87 | + }, |
| 88 | + "dependencies": { |
| 89 | + "typescript": "5.9.3" |
| 90 | + }, |
| 91 | + "devDependencies": { |
| 92 | + "eslint-plugin-devup": "^2.0.17", |
| 93 | + "husky": "^9.1.7", |
| 94 | + "oxlint": "^1.55", |
| 95 | + "@types/node": "25.5.0", |
| 96 | + "@types/vscode": "1.110.0", |
| 97 | + "@vscode/vsce": "3.7.1", |
| 98 | + "globals": "17.4.0" |
| 99 | + } |
| 100 | +} |
0 commit comments