Skip to content

npm package v1.0.3 fails to install — published as raw TypeScript, missing openclaw.hooks #2

@michaelarutyunov

Description

@michaelarutyunov

I followed the official integration docs at https://docs.brightdata.com/integrations/openclaw and ran:

openclaw plugins install @brightdata/brightdata-plugin

Expected behavior: Plugin installs successfully.

Actual behavior: Installation fails with two errors:
Plugin manifest id "brightdata" differs from npm package name "@brightdata/brightdata-plugin"; using manifest id as the config key. Downloading @brightdata/brightdata-plugin… Extracting /tmp/openclaw-hook-pack-eaPbtt/brightdata-brightdata-plugin-1.0.3.tgz… package install requires compiled runtime output for TypeScript entry ./index.ts: expected ./dist/index.js, ./dist/index.mjs, ./dist/index.cjs, ./index.js, ./index.mjs, ./index.cjs Also not a valid hook pack: Error: package.json missing openclaw.hooks

Root cause (from inspecting the published tarball):
package.json has "main": "index.ts" — the npm package contains raw TypeScript source with no compiled dist/ output.
package.json contains "openclaw": { "extensions": ["./index.ts"] } but no openclaw.hooks field, which the OpenClaw installer requires for hook pack validation.

Environment:
OpenClaw version: 2026.5.4
OS: OpenCloudOS (Tencent Cloud VM)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions