Files
v10/packages/compiler/package.json
T
Rahim b01a051744 feat(compiler): add @videojs/compiler package
Introduce the build-time compiler for constrained-JSX skins, rebased onto
current main as a clean, additive package. Provides:

- core pipeline: parse, compile, generate, JSX runtime, define-component
- transforms: import rewriting, replace/wrap, drop-unused locals/imports
- matchers + react lowering (add-prop, child-as-prop)
- styles className analyzer
- tailwind subsystem: design-system loader, decompose, evaluator,
  deriveClassName, emitCss, tailwindPlugin (three targets)

Self-contained: the integration smoke test now reads a vendored skin
fixture instead of the skins package, so the compiler builds and tests
green independently. 158 tests pass.

Wiring: register the project reference (tsconfig), commitlint scope,
CI test-matrix entry, and lockfile entries (lightningcss, tailwindcss).

The skin migration that consumes this compiler is parked separately —
its token refactor conflicts with skin work that landed on main; see the
follow-up commit and .claude/plans/compiler-rebase-audit.md.
2026-06-17 17:13:40 -07:00

75 lines
1.8 KiB
JSON

{
"name": "@videojs/compiler",
"type": "module",
"description": "Compiler for Video.js",
"license": "Apache-2.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/videojs/v10",
"directory": "packages/compiler"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./jsx-runtime": {
"types": "./dist/jsx-runtime.d.ts",
"default": "./dist/jsx-runtime.js"
},
"./jsx-dev-runtime": {
"types": "./dist/jsx-dev-runtime.d.ts",
"default": "./dist/jsx-dev-runtime.js"
},
"./vite": {
"types": "./dist/plugins/vite.d.ts",
"default": "./dist/plugins/vite.js"
},
"./matchers": {
"types": "./dist/matchers/index.d.ts",
"default": "./dist/matchers/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"default": "./dist/react/index.js"
},
"./styles": {
"types": "./dist/styles/index.d.ts",
"default": "./dist/styles/index.js"
},
"./tailwind": {
"types": "./dist/tailwind/index.d.ts",
"default": "./dist/tailwind/index.js"
},
"./tsconfig.preset.json": "./tsconfig.preset.json"
},
"bin": {
"vjs": "./dist/cli.js"
},
"files": [
"dist",
"tsconfig.preset.json"
],
"scripts": {
"build": "tsdown",
"build:watch": "tsdown --watch ./src --no-clean",
"dev": "pnpm run build:watch",
"test": "vitest run",
"test:watch": "vitest",
"clean": "rimraf --glob dist types '*.tsbuildinfo'"
},
"dependencies": {
"@videojs/utils": "workspace:*",
"lightningcss": "^1.32.0",
"tailwindcss": "^4.2.1",
"typescript": "^6.0.2"
},
"devDependencies": {
"@videojs/core": "workspace:*",
"tsdown": "^0.21.4",
"vitest": "^4.1.0"
}
}