Skip to content

Commit

Permalink
style: migrate to ES modules
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the library is now using ES modules
  • Loading branch information
coderbyheart committed Oct 17, 2023
1 parent d3085fe commit d910085
Show file tree
Hide file tree
Showing 16 changed files with 4,884 additions and 9,893 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"

- name: Keep npm cache around to speed up installs
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-issue-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
uses: actions/checkout@v4

- name: Sync issue labels from docs repository
run: gh label clone NordicSemiconductor/asset-tracker-cloud-docs --force
4 changes: 2 additions & 2 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
- name: Authenticate with NPM registry
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- name: Keep npm cache around to speed up installs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-repo-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
uses: actions/checkout@v4

- name: Sync repository description
run:
Expand Down
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged && npx jest --onlyChanged
npx lint-staged
npm test
3 changes: 0 additions & 3 deletions .prettierrc.js

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

Loading

0 comments on commit d910085

Please sign in to comment.