Skip to content

Commit

Permalink
Run CI on Node 22 and ugprade devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 4, 2024
1 parent d5ad088 commit 884198c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 14
- 12
- 22
- 18
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface Options {
export type Options = {
/**
Use a custom environment variables object.
Expand All @@ -12,7 +12,7 @@ export interface Options {
Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform).
*/
readonly platform?: NodeJS.Platform;
}
};

/**
Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform.
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import process from 'node:process';

export default function pathKey(options = {}) {
const {
env = process.env,
platform = process.platform
platform = process.platform,
} = options;

if (platform !== 'win32') {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"windows"
],
"devDependencies": {
"@types/node": "^14.14.37",
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.38.2"
"@types/node": "^20.12.8",
"ava": "^6.1.2",
"tsd": "^0.31.0",
"xo": "^0.58.0"
}
}

0 comments on commit 884198c

Please sign in to comment.