Files
zeekayandHanzo Dev 57f9435929 Keep every package in one directory
The workspace declared pkg/* and pkgs/* both, so one repo had two names
for one concept and a package's home was a coin toss. The shared build
tooling already lived in pkg/ui/scripts and pkgs reached back into it
two levels up; now it is a sibling. hanzo.yml gates on pkg/ui, so the
published library stays where CI already looks and the rest joins it.

The publish glob follows: one root, one pattern, nothing invisible to it.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-08 23:50:28 -07:00

87 lines
2.3 KiB
JSON

{
"name": "@hanzo/annotate",
"version": "0.1.2",
"description": "The build-time half of @hanzo/observe \u2014 annotates every component's root element with its own name (data-observe=\"ComponentName\") so a production build keeps the semantic hierarchy React's dev-only fiber owner would have given you. Parses with TypeScript and splices text, so line numbers and formatting are untouched. Ships a webpack/Next loader and a Vite plugin.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"scope": "@hanzo"
},
"author": "Hanzo AI <[email protected]>",
"license": "MIT",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoai/ui.git",
"directory": "pkg/annotate"
},
"keywords": [
"observability",
"analytics",
"autocapture",
"session-replay",
"babel",
"webpack",
"vite",
"hanzo"
],
"scripts": {
"prepublishOnly": "node ../../scripts/guard-publish.mjs",
"build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node ../../scripts/dts.mjs",
"dev": "tsup --watch",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"clean": "rm -rf dist"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./webpack": {
"require": {
"types": "./dist/webpack.d.cts",
"default": "./dist/webpack.cjs"
},
"import": {
"types": "./dist/webpack.d.ts",
"default": "./dist/webpack.mjs"
}
},
"./vite": {
"import": {
"types": "./dist/vite.d.ts",
"default": "./dist/vite.mjs"
},
"require": {
"types": "./dist/vite.d.cts",
"default": "./dist/vite.cjs"
}
}
},
"peerDependencies": {
"typescript": ">=7.0.2"
},
"devDependencies": {
"@types/node": "catalog:",
"tsup": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
}
}