Skip to content

Commit fd6bb68

Browse files
Merge pull request #994 from Availity/feature/build-updates
feat!: migrate to ESM and drop Node 20 support
2 parents 83b0b28 + d5d9144 commit fd6bb68

287 files changed

Lines changed: 8395 additions & 5576 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,34 @@ This monorepo is managed using [yarn](https://yarnpkg.com/getting-started) and [
44

55
## Installation
66

7-
Ensure you are running version 20, 22, or 24 of `node` and [yarn](https://classic.yarnpkg.com/en/docs/install#mac-stable) is installed. We recommend using [nvm](https://github.com/nvm-sh/nvm#readme) or [fnm](https://github.com/Schniz/fnm#readme) to manage your installation of `node`.
7+
Ensure you are running Node.js 22 or 24 (see `engines` in package.json). We recommend using [nvm](https://github.com/nvm-sh/nvm#readme) or [fnm](https://github.com/Schniz/fnm#readme) to manage your Node installation.
88

99
```bash
1010
node --version
11+
```
12+
13+
### Setting up Yarn
14+
15+
This repo uses Yarn 4 (defined in `packageManager` in package.json). You can set it up either way:
16+
17+
**Option A: Corepack (recommended)**
18+
19+
Corepack ships with Node.js and automatically uses the correct Yarn version:
20+
21+
```bash
22+
corepack enable
23+
```
24+
25+
**Option B: Direct install**
26+
27+
If you don't want to use corepack, install Yarn globally:
28+
29+
```bash
1130
npm install -g yarn
1231
```
1332

33+
### Installing dependencies
34+
1435
Install the dependencies with `yarn`. The first install might take a while. All subsequent installs should proceed more quickly.
1536

1637
```bash
@@ -55,7 +76,7 @@ The commit messages in this repository are important for two main reasons:
5576

5677
Commits should use the [Angular Commit Format](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type). Scope should be one of the un-prefixed names of the packages under `./packages/` or `docusaurus` for the docs. If a commit applies to multiple packages, leave out the scope.
5778

58-
For example, here is what the commit message would like when fixing a null-checking error in the [icon](../packages/icon) package:
79+
For example, here is what the commit message would look like when fixing a null-checking error in the env-var package:
5980

6081
```bash
6182
git commit -m "fix(env-var): check for null before doing the action"

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: ['javascript']
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37-
# Learn more:
38-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
language: ['javascript-typescript']
3936

4037
steps:
4138
- name: Checkout repository

.github/workflows/commitlint.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Lint Commit Messages
2-
# Set to pull_request when ready to turn on
3-
on: [never]
2+
on: [pull_request]
43

54
jobs:
65
commitlint:
@@ -15,16 +14,16 @@ jobs:
1514
- name: Setup Node
1615
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1716
with:
18-
node-version: 22
17+
node-version: 24
1918
cache: 'yarn'
2019
cache-dependency-path: 'yarn.lock'
2120

2221
- name: Install Dependencies
2322
run: yarn install --immutable
2423

2524
- name: Lint Commit Message
26-
uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5.5.1
25+
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
2726
env:
2827
NODE_PATH: ${{ github.workspace }}/node_modules
2928
with:
30-
configFile: ${{ github.workspace }}/commitlint.config.js
29+
configFile: ${{ github.workspace }}/commitlint.config.cjs

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ jobs:
5353
- name: Install Dependencies
5454
run: yarn install --immutable
5555

56+
- name: Restore Nx Cache
57+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
58+
with:
59+
path: .nx/cache
60+
key: nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.sha }}
61+
restore-keys: |
62+
nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-
63+
5664
- name: Lint Source Code
5765
run: yarn lint
5866

@@ -94,6 +102,14 @@ jobs:
94102
- name: Install Dependencies
95103
run: yarn install --immutable
96104

105+
- name: Restore Nx Cache
106+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
107+
with:
108+
path: .nx/cache
109+
key: nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.sha }}
110+
restore-keys: |
111+
nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-
112+
97113
- name: Build Packages
98114
run: yarn build
99115

.github/workflows/pr-build.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,17 @@ jobs:
3333
cache: 'yarn'
3434
cache-dependency-path: 'yarn.lock'
3535

36-
# - name: Get yarn cache directory path
37-
# id: yarn-cache-dir-path
38-
# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
39-
40-
# - name: Restore yarn cache
41-
# uses: actions/cache@v3
42-
# id: yarn-cache
43-
# with:
44-
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
45-
# key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('yarn.lock') }}
46-
# restore-keys: |
47-
# ${{ runner.os }}-${{ matrix.node }}-yarn-
48-
49-
# - name: Artifactory Check
50-
# run: yarn check:registry
51-
5236
- name: Install Dependencies
5337
run: yarn install --immutable
5438

39+
- name: Restore Nx Cache
40+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
41+
with:
42+
path: .nx/cache
43+
key: nx-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-${{ github.sha }}
44+
restore-keys: |
45+
nx-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-
46+
5547
- name: Lint
5648
run: yarn nx affected --target=lint
5749

.github/workflows/repo-metrics.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1616
with:
1717
fetch-depth: 0
18+
- name: Set Node Version
19+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
20+
with:
21+
node-version: 24
22+
cache: 'yarn'
23+
cache-dependency-path: 'yarn.lock'
1824
- name: Install Dependencies
1925
run: yarn install --immutable
2026
- name: Run Code Coverage Report

.husky/pre-push

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
yarn lint:affected
21
yarn test:affected
32
yarn check:registry
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)