Skip to content

Commit 42a1a68

Browse files
authored
feat(esm): migrate to pure ESM (#5)
BREAKING CHANGE: require Node.js 14.16+
1 parent 5c33c67 commit 42a1a68

File tree

15 files changed

+2646
-17137
lines changed

15 files changed

+2646
-17137
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build:
12-
name: Lint, test and build
12+
name: Test and build
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
@@ -24,11 +24,8 @@ jobs:
2424
- name: Install and build
2525
run: npm install
2626

27-
- name: Lint
28-
run: npm run lint
29-
3027
- name: Test
31-
run: npm test -- --ci --coverage --maxWorkers=2
28+
run: npm test -- --coverage
3229

3330
- name: Coverage
3431
uses: codecov/codecov-action@v3

.lintstagedrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"*.{js,ts}": ["dts lint --fix", "dts test --bail --findRelatedTests"],
3-
"*.{json,md,yml}": "prettier --write"
2+
"*.ts": "vitest related",
3+
"*": "prettier --ignore-unknown --write"
44
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Resumed
22

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

bin/resumed.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/usr/bin/env node
2-
require('../dist').cli.parse(process.argv)
2+
import { cli } from '../dist/resumed.js'
3+
cli.parse(process.argv)

0 commit comments

Comments
 (0)