Skip to content

Commit

Permalink
feat(esm): migrate to pure ESM (#5)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: require Node.js 14.16+
  • Loading branch information
rbardini authored Jan 16, 2023
1 parent 5c33c67 commit 42a1a68
Show file tree
Hide file tree
Showing 15 changed files with 2,646 additions and 17,137 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
name: Lint, test and build
name: Test and build
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,11 +24,8 @@ jobs:
- name: Install and build
run: npm install

- name: Lint
run: npm run lint

- name: Test
run: npm test -- --ci --coverage --maxWorkers=2
run: npm test -- --coverage

- name: Coverage
uses: codecov/codecov-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,ts}": ["dts lint --fix", "dts test --bail --findRelatedTests"],
"*.{json,md,yml}": "prettier --write"
"*.ts": "vitest related",
"*": "prettier --ignore-unknown --write"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Resumed

[![npm package version](https://img.shields.io/npm/v/resumed)](https://www.npmjs.com/package/resumed)
[![Build status](https://img.shields.io/github/workflow/status/rbardini/resumed/Main)](https://github.com/rbardini/resumed/actions)
[![Build status](https://img.shields.io/github/actions/workflow/status/rbardini/resumed/main.yml)](https://github.com/rbardini/resumed/actions)
[![Code coverage](https://img.shields.io/codecov/c/github/rbardini/resumed.svg)](https://codecov.io/gh/rbardini/resumed)
[![Dependencies status](https://img.shields.io/librariesio/release/npm/resumed)](https://libraries.io/npm/resumed)

Expand Down
3 changes: 2 additions & 1 deletion bin/resumed.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env node
require('../dist').cli.parse(process.argv)
import { cli } from '../dist/resumed.js'
cli.parse(process.argv)
Loading

0 comments on commit 42a1a68

Please sign in to comment.