Skip to content

Commit 62b616e

Browse files
committed
add agents
1 parent a4b2188 commit 62b616e

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# AGENTS.md
2+
3+
## Package Manager
4+
5+
Use `pnpm` from the repo root. The workspace is configured in `pnpm-workspace.yaml`
6+
and includes `packages/*`.
7+
8+
Common checks:
9+
10+
```bash
11+
pnpm install
12+
pnpm -r test
13+
pnpm -r types
14+
pnpm -r build
15+
```
16+
17+
For focused package checks, prefer filters:
18+
19+
```bash
20+
pnpm --filter markdown-magic test
21+
pnpm --filter @davidwells/dx-args test
22+
pnpm --filter @davidwells/dx-args types
23+
```
24+
25+
## Publishing
26+
27+
This repo publishes packages with Lerna in independent-version mode. Use the
28+
local Lerna binary from the repo root.
29+
30+
First inspect which packages Lerna thinks changed:
31+
32+
```bash
33+
./node_modules/.bin/lerna changed
34+
```
35+
36+
Then publish with:
37+
38+
```bash
39+
./node_modules/.bin/lerna publish
40+
```
41+
42+
`lerna.json` configures:
43+
44+
- independent package versions
45+
- `pnpm` as the npm client
46+
- conventional commits for publish
47+
- release commit message: `chore(release): publish`
48+
49+
If publishing a scoped package manually, include public access:
50+
51+
```bash
52+
cd packages/dx-args
53+
pnpm publish --access public
54+
```
55+
56+
## Current Parser Package
57+
58+
The forgiving CLI parser lives in `packages/dx-args` and is published as
59+
`@davidwells/dx-args`. The executable bin remains `dx-args`.
60+
61+
Markdown Magic core keeps compatibility wrappers in:
62+
63+
- `packages/core/src/argparse/argparse.js`
64+
- `packages/core/src/argparse/splitOutsideQuotes.js`
65+
- `packages/core/src/globparse.js`
66+
67+
Do not reintroduce parser implementation code into core; import from
68+
`@davidwells/dx-args` instead.

0 commit comments

Comments
 (0)