Skip to content

Commit 9643bee

Browse files
authored
Merge pull request #5 from microlinkhq/monorepo
build: refactor into a monorepo
2 parents a2e5124 + 9aba194 commit 9643bee

28 files changed

Lines changed: 1093 additions & 1274 deletions

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
- package-ecosystem: 'github-actions'
8+
directory: '/'
9+
schedule:
10+
# Check for updates to GitHub Actions every weekday
11+
interval: 'daily'

.github/workflows/test.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
name: test
2+
13
on:
24
push:
35
branches:
4-
- master
6+
- master
57
pull_request:
68
branches:
7-
- master
8-
9-
env:
10-
CI: true
9+
- master
1110

1211
jobs:
1312
test:
14-
name: Test
1513
runs-on: ubuntu-latest
1614
steps:
1715
- name: Checkout
@@ -20,7 +18,10 @@ jobs:
2018
uses: actions/setup-node@v2
2119
with:
2220
node-version: lts/*
23-
- name: Install
24-
run: npm install --no-package-lock
21+
- name: Setup PNPM
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: latest
25+
run_install: true
2526
- name: Test
2627
run: npm test

CHANGELOG.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ To run the previous code as **Microlink Function**, all you need to do is wrap t
7575
```js
7676
const microlink = require('@microlink/function')
7777

78-
const ping = microlink({ response }) => statusCode
79-
? response.status()
80-
: response.statusText()
78+
const ping = microlink(({ response }) =>
79+
statusCode ? response.status() : response.statusText()
8180
)
8281
```
8382

0 commit comments

Comments
 (0)