-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require Node.js 18.20 and move to ESM
- Loading branch information
1 parent
624749c
commit 8d668e6
Showing
4 changed files
with
11 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ console.log(jsTypes); | |
*/ | ||
declare const jsTypes: readonly string[]; | ||
|
||
export = jsTypes; | ||
export default jsTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
'use strict'; | ||
import jsTypes from './js-types.json' with {type: 'json'}; | ||
|
||
module.exports = require('./js-types.json'); | ||
export default jsTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,18 @@ | |
"email": "[email protected]", | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=18" | ||
"node": ">=18.20" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava && tsc index.d.ts" | ||
"//test": "xo && ava && tsc index.d.ts", | ||
"test": "ava && tsc index.d.ts" | ||
}, | ||
"files": [ | ||
"index.js", | ||
|
@@ -38,14 +41,8 @@ | |
"json" | ||
], | ||
"devDependencies": { | ||
"ava": "^1.4.1", | ||
"typescript": "^5.2.2", | ||
"xo": "^0.24.0" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"import/extensions": "off", | ||
"unicorn/import-index": "off" | ||
} | ||
"ava": "^6.1.2", | ||
"typescript": "^5.4.5", | ||
"xo": "^0.58.0" | ||
} | ||
} |