Skip to content

Commit 45979e0

Browse files
authored
Merge pull request #81 from duneanalytics/development-aid
remove dotenv and add cursor rules
2 parents d714ba2 + e3159f8 commit 45979e0

File tree

3 files changed

+49
-10
lines changed

3 files changed

+49
-10
lines changed

.cursor/development.mdx

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Development Guide
2+
3+
This project uses **pnpm** as its package manager. Always use pnpm commands for development tasks.
4+
5+
## Setup
6+
7+
```bash
8+
pnpm install
9+
```
10+
11+
## Development Commands
12+
13+
### Building
14+
15+
```bash
16+
# Build both ESM and CJS outputs
17+
pnpm build
18+
19+
# Build ESM only
20+
pnpm build:esm
21+
22+
# Build CJS only
23+
pnpm build:cjs
24+
```
25+
26+
### Testing
27+
28+
```bash
29+
# Run all tests
30+
pnpm test
31+
```
32+
33+
### Code Quality
34+
35+
```bash
36+
# Format code
37+
pnpm fmt
38+
39+
# Lint code
40+
pnpm lint
41+
```
42+
43+
## Important Notes
44+
45+
- This project builds to both CommonJS (`dist/cjs/`) and ES Modules (`dist/esm/`)
46+
- Always use `pnpm` instead of `npm` or `yarn`
47+
- Tests are located in the `tests/` directory (both e2e and unit tests)
48+
- E2E tests require `BASIC_API_KEY` and `PLUS_API_KEY` environment variables to be set
49+

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"@types/node": "^22.5.2",
2828
"@typescript-eslint/eslint-plugin": "^8",
2929
"@typescript-eslint/parser": "^8",
30-
"dotenv": "^16.0.3",
3130
"eslint": "^8.57.0",
3231
"eslint-config-prettier": "^9.1.0",
3332
"jest": "^29.7.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)