Skip to content

Commit

Permalink
Update dependencies (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibdex authored Apr 9, 2022
1 parent 37def88 commit 59c42b1
Show file tree
Hide file tree
Showing 6 changed files with 431 additions and 702 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright (c) 2021 Thibault Derousseaux <tibdex@gmail.com>
Copyright (c) 2022 Thibault Derousseaux <tibdex@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
{
"name": "auto-update",
"version": "2.1.3",
"version": "2.1.4",
"license": "MIT",
"type": "module",
"files": [
"action.yml",
"dist"
],
"scripts": {
"prebuild": "tsc --build",
"build": "ncc build src/index.ts --minify --target es2021 --v8-cache",
"prettier": "prettier --ignore-path .gitignore \"./**/*.{cjs,js,json,md,ts,yml}\"",
"xo": "xo"
},
"devDependencies": {
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/github": "^5.0.0",
"@actions/github": "^5.0.1"
},
"devDependencies": {
"@octokit/openapi-types": "^11.2.0",
"@octokit/webhooks-definitions": "^3.67.3",
"@types/node": "^16.11.11",
"@vercel/ncc": "^0.33.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"@vercel/ncc": "^0.33.3",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-sort-destructure-keys": "^1.4.0",
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"prettier": "^2.5.1",
"prettier-plugin-packagejson": "^2.2.15",
"typescript": "^4.5.2",
"xo": "^0.47.0",
"yarn-deduplicate": "^3.1.0"
"prettier": "^2.6.2",
"prettier-plugin-packagejson": "^2.2.17",
"typescript": "^4.7.0-beta",
"xo": "^0.48.0",
"yarn-deduplicate": "^4.0.0"
}
}
8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
warning,
} from "@actions/core";
import { context, getOctokit } from "@actions/github";
import { GitHub } from "@actions/github/lib/utils";
import type { GitHub } from "@actions/github/lib/utils.js";
import type { components } from "@octokit/openapi-types";
import type { PushEvent } from "@octokit/webhooks-definitions/schema";
import type { PushEvent } from "@octokit/webhooks-definitions/schema.js";

const handleError = (
error: unknown,
Expand Down Expand Up @@ -125,10 +125,6 @@ const handlePullRequest = async (
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",
{
...context.repo,
// See https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls#update-a-pull-request-branch-preview-notices.
mediaType: {
previews: ["lydian"],
},
pull_number: pullRequest.number,
},
);
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"noEmitOnError": true,
"module": "nodenext",
"moduleResolution": "nodenext",
"noEmit": true,
"strict": true,
"target": "es2021",
"types": ["node"]
Expand Down
8 changes: 8 additions & 0 deletions xo.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ module.exports = {
// Named export are better for static analysis.
// See https://humanwhocodes.com/blog/2019/01/stop-using-default-exports-javascript-module/
"import/no-default-export": "error",
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: false,
optionalDependencies: false,
peerDependencies: false,
},
],
"import/no-namespace": "error",
"import/order": [
"error",
Expand Down
Loading

0 comments on commit 59c42b1

Please sign in to comment.