@n8n/scan-community-package 因憑證檔名而失敗

嗨各位,很遺憾我在creator portal上提交package時無法通過@n8n/scan-community-package的自動檢查。

描述問題/錯誤/疑問

問題出在某些Lint規則上,在本地通過是因為檔案名稱具有正確的ts延伸名。但當我部署時,它會針對dist資料夾檢查相同的lint規則。而dist資料夾中沒有ts檔案。
如果我找到了正確的程式碼庫,我認為問題在這裡:eslint-plugin-n8n-nodes-base/lib/rules/cred-filename-against-convention.ts at master · ivov/eslint-plugin-n8n-nodes-base · GitHub

錯誤訊息是什麼(如果有的話)?

$ npx @n8n/scan-community-package @ambriel-io/n8n-nodes-ambriel

 1:2  error  Rename file to AmbrielApi.credentials.ts [non-autofixable]  n8n-nodes-base/cred-filename-against-convention

✖ 1 problem (1 error, 0 warnings)

該class的匯出如下。dist/credentials/AmbrielApi.credentials.js

"use strict";
Object.defineProperty(exports, "\__esModule", { value: true });
exports.AmbrielApi = void 0;
class AmbrielApi {
     constructor() {
     this.name = 'ambrielApi';
     this.displayName = 'Ambriel API';
....

dist/credentials/AmbrielApi.credentials.d.ts的內容

import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
export declare class AmbrielApi implements ICredentialType {
    name: string;
    displayName: string;
    icon: Icon;
    documentationUrl: string;
    properties: INodeProperties[];
    authenticate: IAuthenticateGeneric;
    test: ICredentialTestRequest;
}

n8n設定的相關資訊

  • n8n版本: 2.31.4
  • 資料庫(預設:SQLite): 預設
  • n8n EXECUTIONS_PROCESS設定(預設:own, main): own
  • 執行n8n的方式(Docker、npm、n8n cloud、desktop app): npm
  • 作業系統: macos

我們已查看此問題,似乎可能已在最近的版本中修復。請更新並查看您是否仍遇到相同問題。

只是更新上面的內容 @bencagri 你能試著執行…

npx @n8n/scan-community-package@beta @ambriel-io/n8n-nodes-ambriel

標籤版本有問題,明早會解決,使用 beta 版本會是最好的選擇,它將執行最新的 lints 和檢查。

你好 Jon,感謝更新。

的確,@beta 標籤在我的本機上可以運作。然後我在等待更新後在創作者入口網站上重新提交。

祝好。
C

你可以在入口網站上提交,那邊也應該是使用測試版。