-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: package is now ESM
- Loading branch information
Showing
6 changed files
with
96 additions
and
94 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -4,13 +4,14 @@ | |
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"type": "module", | ||
"description": "Automatic retry plugin for octokit", | ||
"scripts": { | ||
"build": "node scripts/build.mjs && tsc -p tsconfig.json", | ||
"lint": "prettier --check '{src,test}/**/*' README.md package.json", | ||
"lint:fix": "prettier --write '{src,test}/**/*' README.md package.json", | ||
"pretest": "npm run -s lint", | ||
"test": "jest --coverage" | ||
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --coverage" | ||
}, | ||
"repository": "github:octokit/plugin-retry.js", | ||
"author": "Simon Grondin (http://github.com/SGrondin)", | ||
|
@@ -21,16 +22,16 @@ | |
"bottleneck": "^2.15.3" | ||
}, | ||
"peerDependencies": { | ||
"@octokit/core": ">=5" | ||
"@octokit/core": ">=6" | ||
}, | ||
"devDependencies": { | ||
"@octokit/core": "^5.0.0", | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@octokit/core": "^6.0.0", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@types/fetch-mock": "^7.3.1", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^20.0.0", | ||
"esbuild": "^0.20.0", | ||
"fetch-mock": "^9.0.0", | ||
"fetch-mock": "npm:@gr2m/[email protected]", | ||
"glob": "^10.2.6", | ||
"jest": "^29.0.0", | ||
"prettier": "3.2.5", | ||
|
@@ -40,11 +41,15 @@ | |
}, | ||
"jest": { | ||
"preset": "ts-jest", | ||
"extensionsToTreatAsEsm": [ | ||
".ts" | ||
], | ||
"transform": { | ||
"^.+\\.(ts|tsx)$": [ | ||
"ts-jest", | ||
{ | ||
"tsconfig": "test/tsconfig.test.json" | ||
"tsconfig": "test/tsconfig.test.json", | ||
"useESM": true | ||
} | ||
] | ||
}, | ||
|
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 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