You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agent/skills/npm-package-creator/SKILL.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: npm-package-creator
3
-
description: Guide for creating new npm packages in Gracefullight's TypeScript package monorepo. Use when creating new packages in pnpm workspace environment using TypeScript, Biome, tsup, and Vitest with standardized package structure.
3
+
description: Guide for creating new npm packages in Gracefullight's TypeScript package monorepo. Use when creating new packages in bun workspace environment using TypeScript, Biome, tsup, and Vitest with standardized package structure.
4
4
license: MIT
5
5
---
6
6
@@ -11,8 +11,8 @@ This skill provides guidance for creating new TypeScript npm packages in the Gra
11
11
## Overview
12
12
13
13
Create standardized npm packages that follow existing project structure:
14
-
-**Monorepo**: pnpm workspace
15
-
-**Runtime**: Node.js 24, pnpm 10
14
+
-**Monorepo**: bun workspace
15
+
-**Runtime**: Node.js 24, bun 10
16
16
-**Language**: TypeScript (ES2023)
17
17
-**Linter/Formatter**: Biome
18
18
-**Build**: tsup (ESM output)
@@ -123,7 +123,7 @@ See [README template](#reference-templates).
123
123
124
124
```bash
125
125
cd ../../
126
-
pnpm install
126
+
bun install
127
127
```
128
128
129
129
## Phase 8: Build and Test
@@ -132,21 +132,21 @@ pnpm install
132
132
cd packages/your-package
133
133
134
134
# Build
135
-
pnpm build
135
+
bun build
136
136
137
137
# Test
138
-
pnpmtest
138
+
buntest
139
139
140
140
# Lint
141
-
pnpm lint
141
+
bun lint
142
142
143
143
# Type check
144
-
pnpm typecheck
144
+
bun typecheck
145
145
```
146
146
147
147
## Phase 9: Verify Workspace Registration
148
148
149
-
`pnpm-workspace.yaml` has `packages/*` pattern, so automatic inclusion. No manual action required.
149
+
`package.json` has `packages/*` pattern, so automatic inclusion. No manual action required.
150
150
151
151
---
152
152
@@ -220,12 +220,12 @@ Verify all items before publishing:
220
220
-[ ] Test files written (optional)
221
221
222
222
## Build and Test
223
-
-[ ]`pnpm build` succeeds
223
+
-[ ]`bun build` succeeds
224
224
-[ ]`dist/` directory created
225
225
-[ ]`.d.ts` type definitions generated
226
-
-[ ]`pnpm test` passes
227
-
-[ ]`pnpm lint` passes
228
-
-[ ]`pnpm typecheck` passes
226
+
-[ ]`bun test` passes
227
+
-[ ]`bun lint` passes
228
+
-[ ]`bun typecheck` passes
229
229
230
230
## Documentation
231
231
-[ ]`README.md` exists
@@ -241,39 +241,39 @@ Verify all items before publishing:
0 commit comments