Skip to content

Commit a72efaa

Browse files
Native ESM tweaks and dependency updates
- Removed redundant artefacts from generated npm packages - Test coverage for public exports - CI update - Use ava logger adapater package - `just-extend` type refinements
1 parent 3ae174e commit a72efaa

11 files changed

Lines changed: 229 additions & 304 deletions

.github/workflows/ci.yml

Lines changed: 40 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,40 @@
1-
{
2-
"name": "Continuous Integration",
3-
"on": {
4-
# Every push
5-
"push": {},
6-
"schedule": [
7-
{
8-
# Every Monday and Thursday at 12PM UTC
9-
"cron": "0 12 * * 1,4"
10-
}
11-
]
12-
},
13-
"jobs": {
14-
"test": {
15-
"strategy": {
16-
"matrix": {
17-
"os": [
18-
"ubuntu-latest",
19-
"macos-latest",
20-
"windows-latest"
21-
],
22-
"node-version": [
23-
"^12.17.0",
24-
"^13",
25-
"^14"
26-
]
27-
}
28-
},
29-
"runs-on": "${{ matrix.os }}",
30-
"steps": [
31-
{
32-
"name": "Checkout",
33-
"uses": "actions/checkout@v1"
34-
},
35-
{
36-
"name": "Setup node",
37-
"uses": "actions/setup-node@v1",
38-
"with": {
39-
"node-version": "${{ matrix.node-version }}"
40-
}
41-
},
42-
{
43-
"name": "Install dependencies",
44-
"run": "npm ci"
45-
},
46-
{
47-
"name": "Run tests",
48-
"run": "npm test"
49-
},
50-
{
51-
"name": "Push coverage to Codecov",
52-
"uses": "codecov/codecov-action@v1",
53-
"with": {
54-
"token": "${{ secrets.CODECOV_UPLOAD_TOKEN }}"
55-
}
56-
}
57-
]
58-
},
59-
"release-readiness": {
60-
"runs-on": "ubuntu-latest",
61-
"steps": [
62-
{
63-
"name": "Checkout",
64-
"uses": "actions/checkout@v1"
65-
},
66-
{
67-
"name": "Setup node",
68-
"uses": "actions/setup-node@v1",
69-
"with": {
70-
"node-version": "13.x"
71-
}
72-
},
73-
{
74-
"name": "Install cspell",
75-
"run": "npm i -g cspell"
76-
},
77-
{
78-
"name": "Check spelling",
79-
"run": "cspell '**'"
80-
},
81-
{
82-
"name": "Install package dependencies",
83-
"run": "npm ci"
84-
},
85-
{
86-
"name": "Build",
87-
"run": "./node_modules/.bin/tsc"
88-
},
89-
{
90-
"name": "Check for unconfirmed API changes",
91-
"run": "./node_modules/.bin/api-extractor run"
92-
}
93-
]
94-
}
95-
}
96-
}
1+
name: Continuous Integration
2+
on:
3+
# Every push
4+
push:
5+
schedule:
6+
# Every Monday and Thursday at 12PM UTC
7+
- cron: '0 12 * * 1,4'
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
platform: [ ubuntu-latest, macos-latest, windows-latest ]
14+
node-version: [ ^12.17.0, ^13.0.0, ^14.0.0 ]
15+
runs-on: ${{ matrix.platform }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: npm ci
22+
- run: ./node_modules/.bin/c8 --reporter=lcovonly npm test
23+
- uses: codecov/codecov-action@v1
24+
with:
25+
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
26+
release-readines:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions/setup-node@v1
31+
with:
32+
node-version: ^14.0.0
33+
- name: Install cspell
34+
run: npm i -g cspell
35+
- name: Check spelling
36+
run: cspell '**'
37+
- run: npm ci
38+
- run: ./node_modules/.bin/tsc
39+
- name: Check for unconfirmed API changes
40+
run: ./node_modules/.bin/api-extractor run

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
!dist/
22
.editorconfig
33
.gitattributes
4-
.nyc_output/
4+
coverage/
55
.travis.yml
66
**/*.test.d.ts
77
**/*.test.js
@@ -14,3 +14,4 @@ temp/
1414
test-data/
1515
tsconfig.json
1616
.github
17+
.dependabot

0 commit comments

Comments
 (0)