Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
environment: npm
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: 24

Expand All @@ -37,11 +37,11 @@ jobs:
run: pnpm install

- name: Publish
uses: JS-DevTools/npm-publish@v3
uses: JS-DevTools/npm-publish@0f450656e71cb782526639ec9e3158e109122ac7
with:
token: empty

- name: Create GitHub Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd
with:
generateReleaseNotes: 'true'
4 changes: 2 additions & 2 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
fetch-depth: 10

- name: Install Pnpm
run: corepack enable

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
git config --system core.longpaths true

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
fetch-depth: 10

- name: Install Pnpm
run: corepack enable

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
Expand Down
38 changes: 38 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# AGENTS.md

## Stack

- Node.js via the repository CI matrix.
- pnpm for dependency management.
- Rslib builds dual ESM and CommonJS package output.
- Rstest runs unit and package behavior tests.
- Rslint and Prettier handle linting and formatting.

## Commands

```bash
# setup
corepack enable && pnpm install

# checks
pnpm lint
pnpm test

# build / package validation
pnpm run build
npm pack --dry-run
```

## Project Structure

```text
src/ # package source and unit tests
e2e/ # package behavior tests
dist/ # generated build output
```

## Code Style

- Use single quotes and existing Prettier conventions.
- Keep TypeScript strict-safe; avoid `any`.
- Naming: camelCase for functions/files and PascalCase for types/classes.
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"sideEffects": false,
Comment thread
SoonIter marked this conversation as resolved.
"files": [
"dist",
"README.md",
Expand All @@ -48,22 +49,19 @@
"pre-commit": "pnpm run lint:write"
},
"devDependencies": {
"rsbuild-plugin-publint": "^0.3.4",
"@microsoft/api-extractor": "^7.48.0",
"@rslib/core": "0.18.6",
"@rslint/core": "^0.5.0",
"@rstest/adapter-rslib": "0.2.1",
"@rstest/core": "0.9.2",
"@microsoft/api-extractor": "^7.58.9",
"@rslib/core": "0.23.0",
Comment thread
SoonIter marked this conversation as resolved.
"@rslint/core": "^0.6.2",
"@rstest/adapter-rslib": "0.10.6",
"@rstest/core": "0.10.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.10.1",
"execa": "9.5.1",
"fs-extra": "11.2.0",
"@typescript/native-preview": "7.0.0-dev.20260623.1",
"lodash-es": "^4.17.21",
"prettier": "^3.8.3",
"semver": "7.6.3",
"prettier": "^3.8.4",
"rsbuild-plugin-publint": "^1.0.0",
"simple-git-hooks": "^2.11.1",
"slash": "5.1.0",
"typescript": "^5.7.2",
"typescript": "^6.0.3",
"upath": "^2.0.1"
},
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
Expand Down
Loading
Loading