Skip to content

Commit

Permalink
chore: adopt new style/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed Jul 3, 2023
1 parent 8ea90bb commit fdbcdaa
Show file tree
Hide file tree
Showing 10 changed files with 8,733 additions and 2,504 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ name: CI

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
nodejs: [12, 14]
os: [ubuntu-latest, windows-latest, macOS-latest]
nodejs: [16, 18]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}

Expand All @@ -25,5 +29,14 @@ jobs:
- name: Install dependencies
run: pnpm install

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

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

- name: Typecheck
run: pnpm typecheck

- name: Test
run: pnpm test
run: pnpm test -- --coverage
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
.eslintcache
coverage
dist
/node_modules/
/coverage/
/dist/
*.tsbuildinfo
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

21 changes: 14 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"src/index.d.ts"
],
"type": "module",
"sideEffects": false,
"engines": {
"node": ">= 12.17"
},
Expand All @@ -42,15 +43,21 @@
"types": "./src/index.d.ts",
"scripts": {
"prepare": "tomer install",
"lint": "tomer lint -g",
"format": "tomer format",
"lint": "tomer lint",
"test": "tomer test",
"build": "tomer build -f \"esm,cjs\" src/index.js",
"prepublishOnly": "pnpm run build"
"build": "tomer build",
"clean": "tomer clean dist",
"prepublishOnly": "tomer build"
},
"prettier": "tomer/prettier",
"devDependencies": {
"ava": "3.15.0",
"c8": "7.9.0",
"tomer": "0.0.17",
"tsd": "0.17.0"
"@types/jest": "^29.5.2",
"@types/node": "^20.3.3",
"eslint": "^8.44.0",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"tomer": "^2.0.7",
"typescript": "^5.1.6"
}
}
Loading

0 comments on commit fdbcdaa

Please sign in to comment.