wc-mixin/package.json
Buddy 8865b49f4e Add examples page with a context manager
DSD, open/closed template, and light-DOM components that talk through
<main-context>: children register on… callbacks and share updates as events.
Served by Vite via npm run examples; examples/ is linted, formatted and
typechecked.
2026-11-10 09:59:09 -08:00

46 lines
1.2 KiB
JSON

{
"name": "wc-mixin",
"version": "0.1.0",
"description": "Web Component Mixin",
"license": "MIT",
"author": "Buddy Sandidge",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist",
"src",
"README.md",
"LICENSE"
],
"scripts": {
"examples": "vite examples",
"build": "rm -rf dist && tsc",
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
"lint": "oxlint --type-aware src test examples",
"format": "oxfmt '*.md' '*.ts' 'src/**/*.ts' 'test/**/*.ts' 'examples/**/*.ts'",
"format:check": "oxfmt --check '*.md' '*.ts' 'src/**/*.ts' 'test/**/*.ts' 'examples/**/*.ts'",
"test": "vitest run",
"test:watch": "vitest",
"prepublishOnly": "npm run format:check && npm run lint && npm run typecheck && npm run test && npm run build"
},
"devDependencies": {
"@vitest/browser-playwright": "^5.1.0",
"oxfmt": "^0.77.0",
"oxlint": "^1.92.0",
"oxlint-tsgolint": "^7.0.2006",
"playwright": "^1.65.0",
"typescript": "^7.0.2",
"vite": "^8.3.6",
"vitest": "^5.1.0"
}
}