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

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

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm run lint
- run: pnpm run check-types
- run: pnpm run test
- run: pnpm run build
24 changes: 7 additions & 17 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
import baseConfig from "@vllnt/eslint-config/nodejs";
import tsparser from "@typescript-eslint/parser";
import { fileURLToPath } from "node:url";
import { dirname, resolve } from "node:path";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export default [
{
ignores: ["node_modules/**", "dist/**", "eslint.config.js", "*.config.*"],
ignores: [
"node_modules/**",
"dist/**",
"eslint.config.js",
"*.config.*",
"tests/**",
],
},
...baseConfig,
{
files: ["src/**/*.ts"],
languageOptions: {
parser: tsparser,
parserOptions: {
project: resolve(__dirname, "./tsconfig.json"),
tsconfigRootDir: __dirname,
},
},
},
];
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vllnt/logger",
"version": "1.0.0",
"version": "0.1.0",
"type": "module",
"description": "Structured logging for the @vllnt ecosystem",
"license": "MIT",
Expand Down Expand Up @@ -48,10 +48,13 @@
"@types/node": "^22.15.3",
"@vllnt/eslint-config": "^1.0.0",
"@vllnt/typescript": "^1.0.0",
"eslint": "^9.39.4",
"prettier": "^3.8.1",
"tsup": "^8.4.0",
"typescript": "^5.9.3",
"vitest": "^3.1.1"
},
"packageManager": "pnpm@10.28.2",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
Expand Down
Loading