Skip to content

Commit

Permalink
Require Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 23, 2023
1 parent 7d4846f commit b5297cc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
4 changes: 2 additions & 2 deletions filenamify-path.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Options} from './filenamify.js';
import {type Options} from './filenamify.js';

/**
Convert the filename in a path a valid filename and return the augmented path.
Expand All @@ -13,4 +13,4 @@ filenamifyPath('foo:bar');
*/
export default function filenamifyPath(path: string, options?: Options): string;

export {Options} from './filenamify.js';
export type {Options} from './filenamify.js';
4 changes: 2 additions & 2 deletions filenamify.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface Options {
export type Options = {
/**
String to use as replacement for reserved filename characters.
Expand All @@ -18,7 +18,7 @@ export interface Options {
@default 100
*/
readonly maxLength?: number;
}
};

/**
Convert a string to a valid filename.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"./browser": "./filenamify.js"
},
"engines": {
"node": ">=12.20"
"node": ">=16"
},
"scripts": {
"test": "xo && ava && tsd"
Expand Down Expand Up @@ -46,8 +46,8 @@
"filename-reserved-regex": "^3.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.18.0",
"xo": "^0.45.0"
"ava": "^5.2.0",
"tsd": "^0.28.1",
"xo": "^0.54.1"
}
}

0 comments on commit b5297cc

Please sign in to comment.