tynd plugin check
tynd plugin checktynd plugin check --cwd ./my-plugintynd plugin check --jsonUse the standalone native validator before publishing a plugin.
Checked contract
Section titled “Checked contract”Every package is checked for:
- valid
package.json; - package name shaped as
plugin-nameor@scope/plugin-name; - semantic
version, non-empty license, andtype: "module"; peerDependencies.@tynd/core;- a
tyndobject, when present, holding onlykind("host"or"standalone"; omitted by community plugins),apis(known host API names),native(object), andbackend(boolean); any other key fails; - existing targets for
.and./clientexports; ./backendwhentynd.backend: true.
When tynd.native is declared, the command also checks:
- only the
path,crateName, andfeatureskeys; - a package-contained native directory and
Cargo.toml; - a valid
crateName: a lowercase Cargo package name (my-plugin) whose Rust identifier (my_plugin) is not a keyword; - valid declared Cargo feature names;
[lib] crate-typecontainingrlib;- a
tynd-plugin-sdkdependency; - plugin registration through
#[plugin]+#[plugin_impl], orregister_plugin!+impl TyndPlugin; src/bin/gen-types.rs(warning when absent).
Flags and result
Section titled “Flags and result”| Flag | Effect |
|---|---|
--cwd <dir> |
Plugin package directory (default .) |
--json |
Emit { ok, fails, warns, issues } |
Each issue contains name, status, detail, and an optional hint. Failed checks produce a non-zero exit; warnings do not.
- name: Validate plugin package run: bunx @tynd/cli plugin check --cwd ./plugins/example