Renames the addon from zammad-addon-media-verify to zammad-addon-proofmode and removes all cdr_ prefixes from file names and class names per project naming convention. - Package: @link-stack/zammad-addon-proofmode (displayName: Proofmode) - Classes: ProofmodeVerify, ProofmodeVerifyJob - Files: proofmode_verify.rb, proofmode_verify_job.rb - Settings: proofmode_verify_enabled - Migration dir: db/addon/proofmode/ https://claude.ai/code/session_01GJYbRCFFJCJDAEcEVbD36N
18 lines
602 B
JavaScript
18 lines
602 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { promises as fs } from "fs";
|
|
import { createZPM } from "@link-stack/zammad-addon-common/build";
|
|
|
|
const log = (msg: string, data?: Record<string, any>) => {
|
|
console.log(JSON.stringify({ msg, ...data, timestamp: new Date().toISOString() }));
|
|
};
|
|
|
|
const main = async () => {
|
|
const packageJSON = JSON.parse(await fs.readFile("./package.json", "utf-8"));
|
|
const { name: fullName, displayName, version } = packageJSON;
|
|
log('Building addon', { displayName, version });
|
|
const name = fullName.split("/").pop();
|
|
await createZPM({ name, displayName, version });
|
|
};
|
|
|
|
main();
|