chore: bump version to 2.0.12 and add plugin build infra
Add build:plugin-env script to bake the PostHog key into the plugin at pack time.
This commit is contained in:
parent
c4ee320994
commit
135fa3608a
3
.gitignore
vendored
3
.gitignore
vendored
@ -110,3 +110,6 @@ dist/protocol.schema.json
|
||||
.cursor/skills/
|
||||
|
||||
.npmrc.deploy
|
||||
|
||||
# Generated at build time (bakes POSTHOG_KEY into the plugin)
|
||||
extensions/posthog-analytics/lib/build-env.js
|
||||
|
||||
1
extensions/posthog-analytics/lib/build-env.ts
Normal file
1
extensions/posthog-analytics/lib/build-env.ts
Normal file
@ -0,0 +1 @@
|
||||
export const POSTHOG_KEY = "";
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "denchclaw",
|
||||
"version": "2.0.9",
|
||||
"version": "2.0.12",
|
||||
"description": "Fully Managed OpenClaw Framework for managing your CRM, Sales Automation and Outreach agents. The only local productivity tool you need.",
|
||||
"keywords": [],
|
||||
"homepage": "https://github.com/DenchHQ/DenchClaw#readme",
|
||||
@ -37,13 +37,14 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"build:plugin-env": "node scripts/build-plugin-env.mjs",
|
||||
"check": "pnpm format:check && pnpm lint",
|
||||
"denchclaw": "node denchclaw.mjs",
|
||||
"dev": "node denchclaw.mjs",
|
||||
"format": "oxfmt --write",
|
||||
"format:check": "oxfmt --check",
|
||||
"lint": "oxlint --type-aware",
|
||||
"prepack": "pnpm build && pnpm web:build && pnpm web:prepack",
|
||||
"prepack": "pnpm build:plugin-env && pnpm build && pnpm web:build && pnpm web:prepack",
|
||||
"start": "node denchclaw.mjs",
|
||||
"test": "pnpm test:cli && pnpm --dir apps/web test",
|
||||
"test:cli": "vitest run --config vitest.unit.config.ts src/cli/run-main.test.ts src/cli/bootstrap-external.test.ts src/cli/bootstrap-external.bootstrap-command.test.ts src/cli/workspace-seed.test.ts src/cli/web-runtime.test.ts src/cli/web-runtime-command.test.ts src/cli/flatten-standalone-deps.test.ts",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dench",
|
||||
"version": "2.0.9",
|
||||
"version": "2.0.12",
|
||||
"description": "Shorthand alias for denchclaw — AI-powered CRM platform CLI",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
@ -16,7 +16,7 @@
|
||||
],
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"denchclaw": "^2.0.9"
|
||||
"denchclaw": "^2.0.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
|
||||
7
scripts/build-plugin-env.mjs
Normal file
7
scripts/build-plugin-env.mjs
Normal file
@ -0,0 +1,7 @@
|
||||
import { writeFileSync } from "node:fs";
|
||||
|
||||
const key = process.env.POSTHOG_KEY || "";
|
||||
writeFileSync(
|
||||
"extensions/posthog-analytics/lib/build-env.js",
|
||||
`export const POSTHOG_KEY = ${JSON.stringify(key)};\n`,
|
||||
);
|
||||
Loading…
x
Reference in New Issue
Block a user