34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
# Suggested Commands for TSPublish Development
|
|
|
|
## Build & Test Commands
|
|
- `pnpm build` - Build the TypeScript project (runs tsbuild --web --allowimplicitany)
|
|
- `pnpm test` - Run the test suite (runs tstest test/ --web)
|
|
- `pnpm buildDocs` - Generate documentation (runs tsdoc)
|
|
|
|
## Development Commands
|
|
- `tsx ts/index.ts` - Run the main entry point directly
|
|
- `tsx test/test.ts` - Run specific test file
|
|
- `tstest test/test.some.ts --verbose` - Run specific test with verbose output
|
|
- `tsbuild check test/**/* --skiplibcheck` - Type check test files
|
|
|
|
## Package Management
|
|
- `pnpm install` - Install dependencies
|
|
- `pnpm install --save-dev <package>` - Install dev dependency
|
|
- `pnpm add <package>` - Add production dependency
|
|
|
|
## Git Commands (Linux)
|
|
- `git status` - Check repository status
|
|
- `git diff` - View changes
|
|
- `git log` - View commit history
|
|
- `git mv <old> <new>` - Move/rename files preserving history
|
|
|
|
## File System Commands (Linux)
|
|
- `ls` - List directory contents
|
|
- `cd` - Change directory
|
|
- `find` - Find files
|
|
- `grep` - Search file contents
|
|
- `cat` - Display file contents
|
|
|
|
## CLI Usage
|
|
- `./cli.js` - Run the tspublish CLI
|
|
- `node cli.js` - Alternative way to run CLI |