-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output ESM instead of CommonJS (#225)
Co-authored-by: Sindre Sorhus <[email protected]>
- Loading branch information
1 parent
f1c83bb
commit 0288f6a
Showing
69 changed files
with
841 additions
and
795 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -12,12 +12,13 @@ | |
"email": "[email protected]", | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"scripts": { | ||
"test": "xo && nyc ava", | ||
"test": "xo && c8 ava", | ||
"docs": "typedoc source/index.ts", | ||
"build": "del-cli dist && tsc", | ||
"prepare": "npm run build", | ||
|
@@ -61,15 +62,15 @@ | |
"@types/lodash.isequal": "^4.5.5", | ||
"@types/node": "^16.10.2", | ||
"@types/vali-date": "^1.0.0", | ||
"ava": "^2.4.0", | ||
"ava": "^3.15.0", | ||
"c8": "^7.10.0", | ||
"del-cli": "^4.0.0", | ||
"expect-type": "^0.12.0", | ||
"gh-pages": "^3.2.3", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^10.2.1", | ||
"ts-node": "^10.4.0", | ||
"typedoc": "^0.22.5", | ||
"typescript": "^4.4.3", | ||
"xo": "^0.38.2" | ||
"typescript": "^4.5.0-beta", | ||
"xo": "^0.46.4" | ||
}, | ||
"browser": { | ||
"./dist/utils/infer-label.js": "./dist/utils/infer-label.browser.js" | ||
|
@@ -93,25 +94,26 @@ | |
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"import/no-anonymous-default-export": "off" | ||
"@typescript-eslint/no-unused-vars": "off" | ||
} | ||
}, | ||
"ava": { | ||
"babel": false, | ||
"compileEnhancements": false, | ||
"nonSemVerExperiments": { | ||
"configurableModuleFormat": true | ||
}, | ||
"nodeArguments": [ | ||
"--loader=ts-node/esm", | ||
"--experimental-specifier-resolution=node" | ||
], | ||
"files": [ | ||
"test/**", | ||
"!test/fixtures/**" | ||
], | ||
"extensions": [ | ||
"ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
] | ||
"extensions": { | ||
"ts": "module" | ||
} | ||
}, | ||
"nyc": { | ||
"c8": { | ||
"reporter": [ | ||
"text", | ||
"lcov" | ||
|
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
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
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
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
Oops, something went wrong.