[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

fix: handle line duplication bug with proper line wrapping

Nate Moore (Mar 5, 2023, 10:13 AM -0600) b33541b7 5c340532

-91
-7
packages/logger/build.config.ts
··· 1 - import { defineBuildConfig } from 'unbuild'; 2 - 3 - // @see https://github.com/unjs/unbuild 4 - export default defineBuildConfig({ 5 - preset: '../../build.preset', 6 - entries: ['src/index'], 7 - });
-62
packages/logger/package.json
··· 1 - { 2 - "name": "@clack/logger", 3 - "version": "0.0.0", 4 - "type": "module", 5 - "main": "./dist/index.cjs", 6 - "module": "./dist/index.mjs", 7 - "exports": { 8 - ".": { 9 - "types": "./dist/index.d.ts", 10 - "import": "./dist/index.mjs", 11 - "require": "./dist/index.cjs" 12 - }, 13 - "./package.json": "./package.json" 14 - }, 15 - "types": "./dist/index.d.ts", 16 - "repository": { 17 - "type": "git", 18 - "url": "https://github.com/natemoo-re/clack", 19 - "directory": "packages/logger" 20 - }, 21 - "bugs": { 22 - "url": "https://github.com/natemoo-re/clack/issues" 23 - }, 24 - "homepage": "https://github.com/natemoo-re/clack/tree/main/packages/logger#readme", 25 - "files": [ 26 - "dist", 27 - "CHANGELOG.md" 28 - ], 29 - "keywords": [ 30 - "ask", 31 - "clack", 32 - "cli", 33 - "command-line", 34 - "command", 35 - "input", 36 - "interact", 37 - "interface", 38 - "menu", 39 - "prompt", 40 - "prompts", 41 - "stdin", 42 - "ui" 43 - ], 44 - "author": { 45 - "name": "Nate Moore", 46 - "email": "nate@natemoo.re", 47 - "url": "https://twitter.com/n_moore" 48 - }, 49 - "license": "MIT", 50 - "packageManager": "pnpm@7.6.0", 51 - "scripts": { 52 - "build": "unbuild" 53 - }, 54 - "dependencies": { 55 - "@clack/core": "workspace:*", 56 - "easta": "^7.0.0", 57 - "eastasianwidth": "^0.2.0" 58 - }, 59 - "devDependencies": { 60 - "unbuild": "^1.1.1" 61 - } 62 - }
-19
packages/logger/src/index.ts
··· 1 - import color from 'picocolors'; 2 - export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent'; 3 - const levels: Record<LogLevel, number> = { 4 - debug: 20, 5 - info: 30, 6 - warn: 40, 7 - error: 50, 8 - silent: 90, 9 - } 10 - 11 - // export interface LogOptions { 12 - // dest: LogWritable<LogMessage>; 13 - // level: LoggerLevel; 14 - // } 15 - 16 - // export const log = (chunk) => { 17 - // process.stdout.write('' + chunk + "\n"); 18 - // } 19 -
-3
packages/logger/tsconfig.json
··· 1 - { 2 - "extends": "../../tsconfig.json" 3 - }