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
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [main]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -9,10 +13,11 @@ concurrency:
jobs:
test:
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }})
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
matrix:
nodejs: [18, 20]
nodejs: [22, 24]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
steps:
Expand All @@ -29,11 +34,14 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Format
run: pnpm format -- --no-write
- name: Build
run: pnpm build

- name: Lint
run: pnpm lint -- --no-fix
run: pnpm lint --no-fix

- name: Format
run: pnpm format --no-write --check

- name: Typecheck
run: pnpm typecheck
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/node_modules/
/coverage/
/dist/
*.tsbuildinfo
out/
/out/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@tomer/eslint-config'
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-2024 Tomer Aberbach
Copyright (c) 2021-2025 Tomer Aberbach

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
47 changes: 25 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"bugs": {
"url": "https://github.com/TomerAberbach/src2img/issues"
},
"funding": {
"url": "https://github.com/sponsors/TomerAberbach"
},
"license": "MIT",
"files": [
"dist",
Expand All @@ -27,36 +30,36 @@
"type": "module",
"sideEffects": false,
"engines": {
"node": ">= 18"
"node": ">= 22"
},
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"scripts": {
"prepare": "tomer install",
"format": "tomer format",
"lint": "tomer lint",
"typecheck": "tomer typecheck",
"build": "tomer build",
"clean": "tomer clean dist",
"prepublishOnly": "tomer build"
"format": "prettier --cache --write .",
"lint": "eslint --cache --cache-location node_modules/.cache/eslint/ --fix .",
"typecheck": "tsc --noEmit",
"build": "tsdown",
"prepublishOnly": "pnpm build"
},
"prettier": "tomer/prettier",
"prettier": "@tomer/prettier-config",
"dependencies": {
"http-shutdown": "^1.2.2",
"prismjs": "^1.29.0",
"puppeteer": "^22.6.4"
"prismjs": "^1.30.0",
"puppeteer": "^24.18.0"
},
"devDependencies": {
"@types/prismjs": "^1.26.3",
"eslint": "^8",
"prettier": "^3.2.5",
"tomer": "^3.1.4",
"typescript": "^5.4.5"
"@tomer/eslint-config": "^4.1.1",
"@tomer/prettier-config": "^4.0.0",
"@types/prismjs": "^1.26.5",
"eslint": "^9.34.0",
"prettier": "^3.6.2",
"publint": "^0.3.12",
"tsdown": "^0.14.2",
"typescript": "^5.9.2"
}
}
Loading
Loading