mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 01:53:21 +08:00
fix: preserve the published CLI entry
This commit is contained in:
parent
5e90962b6d
commit
f8841da76f
2 changed files with 4 additions and 1 deletions
|
|
@ -104,6 +104,9 @@ for (const [name, version] of Object.entries(bundledBuildDependencies)) {
|
|||
if (lock.packages?.['node_modules/protobufjs']?.dev !== true) {
|
||||
throw new Error('protobufjs must remain build-only in the package lock');
|
||||
}
|
||||
if (manifest.bin?.['dsh-im'] !== 'bin/dsh-im.mjs') {
|
||||
throw new Error('package manifest must publish the dsh-im executable');
|
||||
}
|
||||
if (/(?:from\s*|import\s*\(|require\s*\()\s*["'](?:@larksuiteoapi\/node-sdk|protobufjs)(?:\/[^"']*)?["']/.test(host)) {
|
||||
throw new Error('host bundle must not import the Feishu SDK or protobufjs at runtime');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue