import { execSync } from 'child_process'; const file = process.argv[2] if (file !== undefined && file.length === 0) { throw new Error("引数不正") } if (!file.endsWith('customize-manifest.json')) { throw new Error("ファイル名不正 customize-manifest.jsonを指定してください") } console.log('\nuploading... ', file); const command = `npx kintone-customize-uploader `; const result = execSync(command + file); console.log('\n' + result);