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
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,15 @@ jobs:
- name: Build
run: nr build

- name: Test
run: nr test
- name: Test with Coverage
run: nr test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: true
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 Anthony Fu <https://github.com/antfu>
Copyright (c) 2021 Oluwasetemi <https://github.com/Oluwasetemi>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
A Fork [@antfu/utils](https://github.com/antfu/utils)

[![NPM version](https://img.shields.io/npm/v/@setemiojo/utils?color=a1b858&label=)](https://www.npmjs.com/package/@setemiojo/utils)
[![codecov](https://codecov.io/gh/oluwasetemi/utils/branch/main/graph/badge.svg)](https://codecov.io/gh/oluwasetemi/utils)
[![Docs](https://img.shields.io/badge/docs-green)](https://www.jsdocs.io/package/@setemiojo/utils)

Opinionated collection of common JavaScript / TypeScript utils by [@oluwasetemi](https://github.com/oluwasetemi) forked from [Anthony Fu](https://github.com/antfu)
Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@
],
"sideEffects": false,
"exports": {
".": "./dist/index.mjs"
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"dist"
],
"engines": {
"node": ">=20"
},
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
Expand All @@ -36,13 +41,15 @@
"release": "bumpp",
"start": "tsx src/index.ts",
"typecheck": "tsc --noEmit",
"test": "vitest"
"test": "vitest",
"test:coverage": "vitest run --coverage"
},
"devDependencies": {
"@antfu/ni": "^26.0.1",
"@setemiojo/eslint-config": "5.4.3",
"@types/node": "^24.5.2",
"@types/throttle-debounce": "^5.0.2",
"@vitest/coverage-v8": "^3.2.4",
"bumpp": "^10.2.3",
"eslint": "^9.36.0",
"p-limit": "^7.1.1",
Expand Down
Loading