diff --git a/.npmrc b/.npmrc index 2db70f9..09cd59b 100644 --- a/.npmrc +++ b/.npmrc @@ -1,7 +1,2 @@ -# Prevent post-install scripts from executing malicious code. -# CI runs `npm run build` explicitly before `npm publish`, -# so prepublishOnly being skipped is not an issue. -ignore-scripts=true - # Ensure newly added deps are always pinned to exact versions. save-exact=true diff --git a/package.json b/package.json index 5b5a82a..50215a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mimo-3/slack-cli", - "version": "0.22.0", + "version": "0.22.1", "description": "A command-line tool for sending messages to Slack", "main": "dist/index.js", "bin": { @@ -20,6 +20,7 @@ "format:check": "biome check .", "check": "biome check .", "check:fix": "biome check --write .", + "prepare": "npm run build", "prepublishOnly": "npm run build" }, "keywords": ["slack", "cli", "command-line", "messaging", "api"], diff --git a/src/commands/download.ts b/src/commands/download.ts index 0833099..584ffab 100644 --- a/src/commands/download.ts +++ b/src/commands/download.ts @@ -19,7 +19,10 @@ export function setupDownloadCommand(): Command { .description('Download a file from Slack') .option('-u, --url ', 'File URL (url_private or url_private_download from message)') .option('-i, --id ', 'Slack file ID (e.g. F0BFXAEP1UZ)') - .option('-o, --output ', 'Output file path (defaults to original filename in current dir)') + .option( + '-o, --output ', + 'Output file path (defaults to original filename in current dir)' + ) .option('--format ', 'Output format: table, simple, json', 'table') .option('--profile ', 'Use specific workspace profile') .hook( diff --git a/src/utils/slack-client-service.ts b/src/utils/slack-client-service.ts index d77bdbf..8f09e76 100644 --- a/src/utils/slack-client-service.ts +++ b/src/utils/slack-client-service.ts @@ -28,10 +28,7 @@ import type { import { createSlackClientContext } from './slack-operations/base-client'; import { CanvasOperations } from './slack-operations/canvas-operations'; import { ChannelOperations } from './slack-operations/channel-operations'; -import type { - DownloadFileOptions, - UploadFileOptions, -} from './slack-operations/file-operations'; +import type { DownloadFileOptions, UploadFileOptions } from './slack-operations/file-operations'; import { FileOperations } from './slack-operations/file-operations'; import { MessageOperations } from './slack-operations/message-operations'; import { PinOperations } from './slack-operations/pin-operations';