Skip to content

Commit

Permalink
feat: package is now ESM (#237)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: package is now ESM
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
  • Loading branch information
renovate[bot] and oscard0m committed Mar 7, 2024
1 parent 22c9acd commit af106c0
Show file tree
Hide file tree
Showing 7 changed files with 212 additions and 95 deletions.
216 changes: 163 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"version": "0.0.0-development",
"description": "Convenience method to create/edit/delete a text file based on its current content",
"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": "https://github.com/octokit/plugin-create-or-update-text-file.js",
"keywords": [
Expand All @@ -19,11 +20,11 @@
"author": "Gregor Martynus (https://dev.to/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/request-error": "^5.0.0",
"@octokit/request-error": "^6.0.0",
"@octokit/types": "^12.0.0"
},
"devDependencies": {
"@octokit/core": "^5.0.0",
"@octokit/core": "^6.0.1",
"@octokit/tsconfig": "^3.0.0",
"@types/jest": "^29.5.2",
"@types/node": "^20.0.0",
Expand All @@ -38,14 +39,18 @@
"typescript": "^5.0.0"
},
"peerDependencies": {
"@octokit/core": ">= 5"
"@octokit/core": ">=6"
},
"jest": {
"extensionsToTreatAsEsm": [
".ts"
],
"transform": {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.test.json"
"tsconfig": "test/tsconfig.test.json",
"useESM": true
}
]
},
Expand All @@ -56,6 +61,9 @@
"functions": 100,
"lines": 100
}
},
"moduleNameMapper": {
"^(.+)\\.jsx?$": "$1"
}
},
"release": {
Expand Down

0 comments on commit af106c0

Please sign in to comment.