-
Notifications
You must be signed in to change notification settings - Fork 23
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
7 changed files
with
165 additions
and
190 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
|
@@ -3,14 +3,15 @@ | |
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"type": "module", | ||
"version": "0.0.0-development", | ||
"description": "Octokit plugin to paginate REST API endpoint responses", | ||
"scripts": { | ||
"build": "node scripts/build.mjs && tsc -p tsconfig.json", | ||
"lint": "prettier --check '{src,test,scripts}/**/*' '!scripts/generated/*' README.md package.json", | ||
"lint:fix": "prettier --write '{src,test,scripts}/**/*' '!scripts/generated/*' README.md package.json", | ||
"pretest": "npm run -s lint", | ||
"test": "jest --coverage", | ||
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --coverage", | ||
"test:ts": "npx tsc --noEmit --declaration --noUnusedLocals --allowImportingTsExtensions test/validate-typescript.ts", | ||
"update-endpoints": "npm-run-all update-endpoints:*", | ||
"update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json", | ||
|
@@ -28,17 +29,17 @@ | |
"@octokit/types": "^12.6.0" | ||
}, | ||
"peerDependencies": { | ||
"@octokit/core": "5" | ||
"@octokit/core": ">=6" | ||
}, | ||
"devDependencies": { | ||
"@octokit/core": "^5.1.0", | ||
"@octokit/plugin-rest-endpoint-methods": "^10.4.0", | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@octokit/core": "^6.0.1", | ||
"@octokit/plugin-rest-endpoint-methods": "^11.0.1", | ||
"@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]", | ||
"github-openapi-graphql-query": "^4.0.0", | ||
"glob": "^10.2.5", | ||
"jest": "^29.0.0", | ||
|
@@ -49,11 +50,15 @@ | |
"typescript": "^5.0.0" | ||
}, | ||
"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 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