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
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"patch"
],
"enabled": false
},
{
"description": "Keep @types/node on the lowest supported Node major (engines.node)",
"matchPackageNames": [
"@types/node"
],
"allowedVersions": "<23"
}
]
}
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
strategy:
matrix:
node-version:
- 22
- lts/*
- latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
node-version: 26
registry-url: https://registry.npmjs.org
# Trusted publishing requires npm >= 11.5
- run: npm install -g npm@latest
Expand Down
180 changes: 30 additions & 150 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dist/**/*"
],
"engines": {
"node": "^18.18.0 || >=20.0.0"
"node": ">=22.0.0"
},
"scripts": {
"build": "pine build",
Expand All @@ -41,12 +41,12 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@pinefile/pine": "^3.0.0",
"@types/node": "^25.9.9",
"@tsconfig/node22": "^22.0.6",
"@types/node": "^22.20.5",
"esbuild": "^0.28.2",
"eslint": "^10.12.0",
"is-ci": "^4.1.0",
"prettier": "^3.9.10",
"rimraf": "^6.1.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.71.2",
"vitest": "^5.0.4"
Expand Down
4 changes: 2 additions & 2 deletions pinefile.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { run, log, series } from '@pinefile/pine';
import isCI from 'is-ci';
import { build } from 'esbuild';
import { copyFileSync, readFileSync, writeFileSync } from 'fs';
import { copyFileSync, readFileSync, rmSync, writeFileSync } from 'fs';

const buildOptions = (format: 'cjs' | 'esm') => ({
entryPoints: ['./src/index.ts'],
Expand All @@ -16,7 +16,7 @@ const buildOptions = (format: 'cjs' | 'esm') => ({

export default {
build: async () => {
await run('rimraf dist');
rmSync('./dist', { recursive: true, force: true });

log.info('Building types');
await run('tsc --emitDeclarationOnly');
Expand Down
Loading
Loading