@konvert7/klint 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konvert7/klint",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Architecture-as-Code linter for TypeScript. Enforce layer boundaries, import rules, and singleton patterns in YAML.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -60,6 +60,12 @@
60
60
  "yaml": "^2.9.0",
61
61
  "zod": "^4.4.3"
62
62
  },
63
+ "optionalDependencies": {
64
+ "@konvert7/klint-darwin-arm64": "*",
65
+ "@konvert7/klint-darwin-x64": "*",
66
+ "@konvert7/klint-linux-x64": "*",
67
+ "@konvert7/klint-win32-x64": "*"
68
+ },
63
69
  "devDependencies": {
64
70
  "@biomejs/biome": "2.4.7",
65
71
  "@commitlint/cli": "^20.5.3",
@@ -80,7 +80,7 @@ export async function publish(pluginConfig = {}, context) {
80
80
  if (result.stderr) process.stderr.write(result.stderr);
81
81
 
82
82
  if ((result.status ?? -1) !== 0) {
83
- if (isMissingPackagePublishFailure(result)) {
83
+ if (shouldSkipMissingPackagePublish(result)) {
84
84
  context.logger?.log(
85
85
  `Skipping ${nativePackage.name}: npm package is not available to this trusted publisher yet`
86
86
  );
@@ -106,7 +106,9 @@ function writePackageJson(dir, packageJson) {
106
106
  writeFileSync(join(dir, "package.json"), `${JSON.stringify(packageJson, null, 2)}\n`);
107
107
  }
108
108
 
109
- function isMissingPackagePublishFailure(result) {
109
+ function shouldSkipMissingPackagePublish(result) {
110
+ if (process.env.KLINT_SKIP_MISSING_NATIVE_PUBLISH !== "1") return false;
111
+
110
112
  const output = `${result.stdout ?? ""}\n${result.stderr ?? ""}`;
111
113
  return (
112
114
  output.includes("npm error code E404") ||