Skip to content

Commit 0c58222

Browse files
committed
build(cli): add a pnpm run dev command
Add a `pnpm run dev` command to make testing/development easier.
1 parent a2eee2e commit 0c58222

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

packages/cli/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,8 @@ updated:
7373
$ mermaid-chart pull ./path/to/my/mermaid-digram.mmd
7474
❌ - ./path/to/my/mermaid-digram.mmd would be updated
7575
```
76+
77+
## Contributing
78+
79+
For local development and testing, you can `pnpm dev` to run the CLI,
80+
`pnpm run lint` to run linting, and `pnpm test` to run unit tests.

packages/cli/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"node": "^18.18.0 || ^20.0.0"
1313
},
1414
"scripts": {
15+
"dev": "tsx src/cli.ts",
1516
"lint": "eslint src/ && prettier --check src/",
1617
"lint:fix": "eslint --fix src/ && prettier --write src/",
1718
"prepare": "tsc --build tsconfig.json",
@@ -45,6 +46,7 @@
4546
"@typescript-eslint/eslint-plugin": "^6.11.0",
4647
"@typescript-eslint/parser": "^6.11.0",
4748
"eslint": "^8.54.0",
49+
"tsx": "^3.12.8",
4850
"typescript": "^5.2.2",
4951
"vitest": "^0.34.6"
5052
},

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)