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
5 changes: 5 additions & 0 deletions .changeset/migrate-toolchain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@labdigital/mock-dynamodb": patch
---

Migrate toolchain: tsup to tsdown, ESLint to Biome 2.x, update all dependencies
24 changes: 0 additions & 24 deletions .eslintrc.cjs

This file was deleted.

61 changes: 23 additions & 38 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true
uses: labd/gh-actions-typescript/pnpm-install@4d7a6c7088328753fdbacbb9204aae4e2b9b00e2 # 1.0.0

- name: Lint
run: pnpm lint
Expand All @@ -33,25 +24,17 @@ jobs:
needs: lint
strategy:
matrix:
node: ["18.x", "20.x"]
os: [ubuntu-latest]
node: ["22.x", "24.x"]
os: [ubuntu-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
- name: Set up Node.js
uses: labd/gh-actions-typescript/pnpm-install@4d7a6c7088328753fdbacbb9204aae4e2b9b00e2 # 1.0.0
with:
node-version: ${{ matrix.node }}
cache: "pnpm"

- name: Test
run: pnpm run test:ci
Expand All @@ -63,33 +46,35 @@ jobs:
timeout-minutes: 15
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
environment: release
needs: build
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2.4.0
name: Install pnpm
id: pnpm-install
- name: Set up Node.js
uses: labd/gh-actions-typescript/pnpm-install@4d7a6c7088328753fdbacbb9204aae4e2b9b00e2 # 1.0.0
with:
version: 8
run_install: true
node-version: 24.x

- name: Install node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Run build
run: pnpm build

- name: Upgrade npm for trusted publishing
run: npm i -g npm@11.12.1

- name: Create and publish versions
uses: changesets/action@v1
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
title: "Release new version"
commit: "update version"
publish: pnpm publish:ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/*
**/node_modules/*
coverage/*
dist/*
.claude/
30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.12/schema.json",
"files": {
"includes": ["src/**", "*.config.ts", "*.json", ".github/**"]
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"indentWidth": 2
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
},
"correctness": {
"noUnusedImports": "error"
}
}
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
43 changes: 21 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,41 @@
"author": "Lab Digital <opensource@labdigital.nl>",
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"build": "tsdown",
"publish:ci": "pnpm build && pnpm changeset publish",
"format": "prettier --write src/",
"lint": "eslint src/*.ts",
"format": "biome format --write .",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"test": "pnpm vitest run",
"test:ci": "pnpm vitest run --coverage",
"tsc": "tsc"
},
"dependencies": {
"nock": "^13.3.2"
"nock": "14.0.12"
},
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.386.0",
"@changesets/cli": "^2.26.2",
"@types/express": "^4.17.17",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@vitest/coverage-v8": "^0.34.1",
"dynalite": "^3.2.2",
"eslint": "^8.46.0",
"eslint-plugin-unused-imports": "^3.0.0",
"tsup": "^7.2.0",
"tsx": "^3.12.7",
"typescript": "^5.1.6",
"vitest": "^0.34.1"
}
"@aws-sdk/client-dynamodb": "3.1030.0",
"@biomejs/biome": "2.4.12",
"@changesets/cli": "2.30.0",
"@types/express": "5.0.6",
"@vitest/coverage-v8": "4.1.4",
"dynalite": "4.0.0",
"tsdown": "0.21.8",
"tsx": "4.21.0",
"typescript": "6.0.2",
"vitest": "4.1.4"
},
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
}
Loading
Loading