1.2 KiB
1.2 KiB
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 directlytsx test/test.ts
- Run specific test filetstest test/test.some.ts --verbose
- Run specific test with verbose outputtsbuild check test/**/* --skiplibcheck
- Type check test files
Package Management
pnpm install
- Install dependenciespnpm install --save-dev <package>
- Install dev dependencypnpm add <package>
- Add production dependency
Git Commands (Linux)
git status
- Check repository statusgit diff
- View changesgit log
- View commit historygit mv <old> <new>
- Move/rename files preserving history
File System Commands (Linux)
ls
- List directory contentscd
- Change directoryfind
- Find filesgrep
- Search file contentscat
- Display file contents
CLI Usage
./cli.js
- Run the tspublish CLInode cli.js
- Alternative way to run CLI