Skip to content

Commit

Permalink
Chore: Update dependencies (r0adkll#113)
Browse files Browse the repository at this point in the history
* Bump minor versions

* Fix error not having a type

* Remove jest-circus

* Bump ncc

* Remove ts-jest

* Drop googleapis for androidpublisher in particular
Way smaller compiled size, and way shorter compile time

* Bump jest

* Bring back ts-jest

* Bump @types/node
  • Loading branch information
boswelja authored Jun 15, 2022
1 parent cf500ad commit dd8dcab
Show file tree
Hide file tree
Showing 7 changed files with 3,928 additions and 10,254 deletions.
2 changes: 1 addition & 1 deletion __tests__/whatsnew.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as process from 'process'
import * as cp from 'child_process'
import * as path from 'path'
import {readLocalizedReleaseNotes} from "../src/whatsnew";
import {androidpublisher_v3} from "googleapis";
import {androidpublisher_v3} from "@googleapis/androidpublisher";
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;

test("read localized whatsnew files", async () => {
Expand Down
41 changes: 40 additions & 1 deletion lib/index.js

Large diffs are not rendered by default.

14,105 changes: 3,871 additions & 10,234 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^1.2.6",
"fast-glob": "^3.2.5",
"googleapis": "^68.0.0"
"@googleapis/androidpublisher": "^2.5.0",
"fast-glob": "^3.2.5"
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@types/node": "^14.14.37",
"@vercel/ncc": "^0.27.0",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"ts-jest": "^26.5.4",
"@types/jest": "^28.1.1",
"@types/node": "^17.0.43",
"@vercel/ncc": "^0.34.0",
"jest": "^28.1.1",
"ts-jest": "^28.0.5",
"typescript": "^4.2.3"
}
}
9 changes: 4 additions & 5 deletions src/edits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as core from '@actions/core';
import * as fs from "fs";
import {readFileSync} from "fs";

import {google} from 'googleapis';
import {androidpublisher_v3} from "googleapis";
import * as google from '@googleapis/androidpublisher';
import {androidpublisher_v3} from "@googleapis/androidpublisher";

import AndroidPublisher = androidpublisher_v3.Androidpublisher;
import AppEdit = androidpublisher_v3.Schema$AppEdit;
Expand All @@ -12,14 +12,13 @@ import Bundle = androidpublisher_v3.Schema$Bundle;
import Track = androidpublisher_v3.Schema$Track;
import InternalAppSharingArtifact = androidpublisher_v3.Schema$InternalAppSharingArtifact;
import {Compute} from "google-auth-library/build/src/auth/computeclient";
import {JWT} from "google-auth-library/build/src/auth/jwtclient";
import {UserRefreshClient} from "google-auth-library/build/src/auth/refreshclient";
import {JSONClient} from "google-auth-library/build/src/auth/googleauth"
import {readLocalizedReleaseNotes} from "./whatsnew";

const androidPublisher: AndroidPublisher = google.androidpublisher('v3');

export interface EditOptions {
auth: Compute | JWT | UserRefreshClient;
auth: Compute | JSONClient;
applicationId: string;
track: string;
inAppUpdatePriority: number;
Expand Down
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as core from '@actions/core';
import * as fs from "fs";
import fg from "fast-glob";
import { uploadToPlayStore } from "./edits";
const {google} = require('googleapis');
import {uploadToPlayStore} from "./edits";
import * as google from '@googleapis/androidpublisher';

const auth = new google.auth.GoogleAuth({
scopes: ['https://www.googleapis.com/auth/androidpublisher']
Expand Down Expand Up @@ -120,8 +120,8 @@ async function run() {
}, validatedReleaseFiles);

console.log(`Finished uploading to the Play Store: ${result}`)
} catch (error) {
core.setFailed(error.message)
} catch (error: any) {
core.setFailed(error.toString())
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/whatsnew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as core from '@actions/core';
import * as fs from "fs";
import * as path from "path";
import {readFileSync} from "fs";
import {androidpublisher_v3} from "googleapis";
import {androidpublisher_v3} from "@googleapis/androidpublisher";
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;

export async function readLocalizedReleaseNotes(whatsNewDir: string | undefined): Promise<LocalizedText[] | undefined> {
Expand Down

0 comments on commit dd8dcab

Please sign in to comment.