Skip to content

Commit

Permalink
perf: up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Sep 22, 2022
1 parent c29f45a commit ccb7c96
Show file tree
Hide file tree
Showing 9 changed files with 703 additions and 512 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@types/find-cache-dir": "^3.2.1",
"@types/fs-extra": "^9.0.13",
"@types/lodash-es": "^4.17.6",
"@types/semver": "^7.3.11",
"@types/semver": "^7.3.12",
"@types/yarnpkg__lockfile": "^1.1.5",
"@yarnpkg/lockfile": "^1.1.0",
"chalk": "^5.0.1",
Expand All @@ -81,30 +81,30 @@
"globby": "^13.1.2",
"js-yaml": "^4.1.0",
"lodash-es": "^4.17.21",
"pkg-dir": "^6.0.1",
"pkg-dir": "^7.0.0",
"semver": "^7.3.7",
"synp": "^1.9.10",
"tslib": "^2.4.0"
},
"devDependencies": {
"@jest/globals": "^29.0.0",
"@jest/globals": "^29.0.3",
"@qiwi/libdefkit": "^4.0.8",
"@qiwi/npm-run-all": "^4.1.7",
"@types/jest": "^29.0.0",
"@types/jest": "^29.0.3",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.7.1",
"cpy-cli": "^4.1.0",
"eslint": "^8.21.0",
"@types/node": "^18.7.18",
"cpy-cli": "^4.2.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-qiwi": "^1.17.5",
"jest": "^29.0.0",
"eslint-config-qiwi": "^1.17.6",
"jest": "^29.0.3",
"mkdirp": "^1.0.4",
"npm": "^8.17.0",
"npm": "^8.19.2",
"prettier": "^2.7.1",
"terser": "^5.14.2",
"ts-jest": "^28.0.7",
"tsc-esm-fix": "^2.20.0",
"typedoc": "^0.23.10",
"terser": "^5.15.0",
"ts-jest": "^29.0.1",
"tsc-esm-fix": "^2.20.4",
"typedoc": "^0.23.15",
"typescript": "4.8.3"
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion src/main/ts/cli.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env node

import { Command, Option } from 'commander'
import process from 'node:process'

import { Command, Option } from 'commander'

import { run } from './runner'

const env = process.env
Expand Down
3 changes: 2 additions & 1 deletion src/main/ts/lockfile/v1.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { SpawnSyncReturns } from 'node:child_process'

import lf from '@yarnpkg/lockfile'
import { keyBy } from 'lodash-es'
import { SpawnSyncReturns } from 'node:child_process'

import {
TAuditEntry,
Expand Down
3 changes: 2 additions & 1 deletion src/main/ts/runner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import chalk from 'chalk'
import { join } from 'node:path'

import chalk from 'chalk'

import { getFlow } from './flows'
import { TContext, TFlags, TFlow, TStage } from './ifaces'
import { getSelfManifest, getTemp, normalizeFlags, readJson } from './util'
Expand Down
3 changes: 2 additions & 1 deletion src/main/ts/stages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from 'fs-extra'
import { dirname, join, relative } from 'node:path'

import fs from 'fs-extra'
import semver from 'semver'
import synp from 'synp'

Expand Down
13 changes: 7 additions & 6 deletions src/main/ts/util.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import type { StdioOptions } from 'node:child_process'
import crypto from 'node:crypto'
import { createRequire } from 'node:module'
import { dirname, join, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'

import chalk from 'chalk'
import findCacheDir from 'find-cache-dir'
import { findUpSync, pathExistsSync } from 'find-up'
import fse, { SymlinkType } from 'fs-extra'
import { globbySync as glob, Options as GlobbyOptions } from 'globby'
import yaml from 'js-yaml'
import { reduce } from 'lodash-es'
import type { StdioOptions } from 'node:child_process'
import crypto from 'node:crypto'
import { createRequire } from 'node:module'
import { dirname, join, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { packageDirectorySync } from 'pkg-dir'

import { TFlags, TFlagsMapping } from './ifaces'
Expand All @@ -19,7 +20,7 @@ const cp = createRequire(import.meta.url)('child_process')
const { ensureDirSync, readFileSync } = fse
const __dirname = dirname(fileURLToPath(import.meta.url))

export const pkgDir = (cwd: string): string => packageDirectorySync({ cwd })
export const pkgDir = (cwd: string): string => packageDirectorySync({ cwd }) as string

export const invoke = (
cmd: string,
Expand Down
3 changes: 2 additions & 1 deletion src/test/ts/runner.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { jest } from '@jest/globals'
import { createRequire } from 'node:module'
import { basename, dirname, join, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'

import { jest } from '@jest/globals'

import type { TContext, TFlow } from '../../main/ts/ifaces'

jest.mock('child_process')
Expand Down
3 changes: 2 additions & 1 deletion src/test/ts/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Command } from 'commander'
import { dirname, join, resolve } from 'node:path'

import { Command } from 'commander'
import { fileURLToPath } from 'url'

import type { TFlags, TFlagsMapping } from '../../main/ts'
Expand Down
Loading

0 comments on commit ccb7c96

Please sign in to comment.