Skip to content

Commit e7288fc

Browse files
Update all dependencies
1 parent 0e52fcc commit e7288fc

File tree

7 files changed

+2272
-1076
lines changed

7 files changed

+2272
-1076
lines changed

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@
2323
},
2424
"scripts": {
2525
"cli": "node bin/index.js",
26-
"lint": "ts-standard src rollup.config.js --fix",
27-
"build": "rollup -c",
26+
"lint": "ts-standard src rollup.config.mjs --fix",
27+
"build": "rollup -c rollup.config.mjs",
2828
"prepublish": "yarn lint && yarn build"
2929
},
3030
"dependencies": {
31-
"archiver": "^5.3.0",
32-
"form-data": "^4.0.0",
33-
"open": "^8.2.1",
34-
"yargs": "^17.1.1"
31+
"archiver": "^7.0.1",
32+
"form-data": "^4.0.5",
33+
"open": "^11.0.0",
34+
"yargs": "^18.0.0"
3535
},
3636
"devDependencies": {
37-
"@babel/core": "^7.15.0",
38-
"@rollup/plugin-babel": "^5.3.0",
39-
"@rollup/plugin-json": "^4.1.0",
40-
"@rollup/plugin-node-resolve": "^13.0.4",
41-
"@types/archiver": "^5.1.1",
42-
"@types/yargs": "^17.0.2",
43-
"rollup": "^2.56.2",
44-
"rollup-plugin-typescript2": "^0.35.0",
45-
"ts-standard": "^10.0.0",
46-
"tslib": "^2.5.3",
47-
"typescript": "^4.4.2"
37+
"@babel/core": "^7.29.0",
38+
"@rollup/plugin-babel": "^6.1.0",
39+
"@rollup/plugin-json": "^6.1.0",
40+
"@rollup/plugin-node-resolve": "^16.0.3",
41+
"@types/archiver": "^7.0.0",
42+
"@types/yargs": "^17.0.35",
43+
"rollup": "^4.59.0",
44+
"rollup-plugin-typescript2": "^0.36.0",
45+
"ts-standard": "^12.0.2",
46+
"tslib": "^2.8.1",
47+
"typescript": "^5.9.3"
4848
},
4949
"engines": {
5050
"node": ">=12"
File renamed without changes.

src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function auth (force = false): Promise<Config> {
8787
return await new Promise<Config>((resolve, reject) => {
8888
const configDir = getConfigDir()
8989
const configPath = join(configDir, 'auth.json')
90-
let config: Config|undefined
90+
let config: Config | undefined
9191

9292
if (!force) {
9393
try {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createZip } from './zipfile'
66
import { postToP4D } from './p4d'
77
import { Config } from './config'
88

9-
async function upload (gameId: string, buildDir: string, filename: string, name: string, notes: string|undefined, makePublic: boolean, disableImageCompression: boolean): Promise<void> {
9+
async function upload (gameId: string, buildDir: string, filename: string, name: string, notes: string | undefined, makePublic: boolean, disableImageCompression: boolean): Promise<void> {
1010
await createZip(filename, buildDir)
1111

1212
const notesWithPostfix = ((notes ?? '') + '\n\nUploaded using poki-cli').trim()

src/p4d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Response {
1212
data: string
1313
}
1414

15-
async function doit (gameId: string, filename: string, name: string, notes: string|undefined, makePublic: boolean, disableImageCompression: boolean, config: Config): Promise<Response> {
15+
async function doit (gameId: string, filename: string, name: string, notes: string | undefined, makePublic: boolean, disableImageCompression: boolean, config: Config): Promise<Response> {
1616
return await new Promise<Response>((resolve, reject) => {
1717
if (config.access_token === undefined) {
1818
return reject(new Error('No access token found'))
@@ -84,7 +84,7 @@ interface P4dData {
8484
id: number
8585
}
8686

87-
export async function postToP4D (gameId: string, filename: string, name: string, notes: string|undefined, makePublic: boolean, disableImageCompression: boolean): Promise<P4dData> {
87+
export async function postToP4D (gameId: string, filename: string, name: string, notes: string | undefined, makePublic: boolean, disableImageCompression: boolean): Promise<P4dData> {
8888
let config = await auth()
8989
let response = await doit(gameId, filename, name, notes, makePublic, disableImageCompression, config)
9090

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"compilerOptions": {
33
"strict": true,
4-
"esModuleInterop": true
4+
"esModuleInterop": true,
5+
"moduleResolution": "node",
6+
"skipLibCheck": true
57
}
68
}

0 commit comments

Comments
 (0)