Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed May 10, 2024
1 parent 4d3493e commit b0aa3b8
Show file tree
Hide file tree
Showing 7 changed files with 365 additions and 524 deletions.
17 changes: 0 additions & 17 deletions nodemon.json

This file was deleted.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.61.0",
"scripts": {
"prepare": "husky",
"dev": "APP_ENV=dev nodemon",
"dev": "APP_ENV=dev node -r ts-node/register --watch ./src/test/server/server.ts",
"docs-serve": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev docs",
"docs-build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs",
"deploy-gae": "yarn tsn ./src/bin/deploy-gae.ts",
Expand Down Expand Up @@ -36,15 +36,14 @@
"yargs": "^17.0.0"
},
"devDependencies": {
"@naturalcycles/bench-lib": "^2.0.0",
"@naturalcycles/bench-lib": "^3.0.0",
"@naturalcycles/dev-lib": "^13.0.0",
"@sentry/node": "^7.0.0",
"@types/ejs": "^3.0.0",
"@types/node": "^20.1.0",
"@types/yargs": "^16.0.0",
"fastify": "^4.0.0",
"jest": "^29.0.1",
"nodemon": "^3.0.1"
"jest": "^29.0.1"
},
"files": [
"dist",
Expand Down
6 changes: 2 additions & 4 deletions scripts/consoleVSProcessBench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ const data = _range(10).map(n => _inspect({ a: 'b', n }))

runBenchScript({
fns: {
consoleLog: done => {
consoleLog: () => {
const out = data.map(s => console.log(s))
done.resolve()
},
processWrite: done => {
processWrite: () => {
const out = data.map(s => process.stdout.write(s + '\n'))
done.resolve()
},
},
runs: 2,
Expand Down
4 changes: 2 additions & 2 deletions src/deploy/deploy.util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { _assert, _mapValues, _merge, _truncate, localTimeNow } from '@naturalcycles/js-lib'
import { _assert, _mapValues, _merge, _truncate, localTime } from '@naturalcycles/js-lib'
import { dimGrey, fs2, white } from '@naturalcycles/nodejs-lib'
import { BackendCfg } from './backend.cfg.util'
import { AppYaml, DeployInfo } from './deploy.model'
Expand Down Expand Up @@ -40,7 +40,7 @@ export async function createDeployInfo(
const simpleGit = require('simple-git') // lazy load
const git = simpleGit('.')

const now = localTimeNow()
const now = localTime.now()
const gitBranch = overrideBranch || (await git.status()).current!
const gitRev = (await git.revparse(['HEAD'])).slice(0, 7)

Expand Down
4 changes: 2 additions & 2 deletions src/server/serverStatusMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { _filterNullishValues, localTime, localTimeNow } from '@naturalcycles/js-lib'
import { _filterNullishValues, localTime } from '@naturalcycles/js-lib'
import { memoryUsageFull, processSharedUtil } from '@naturalcycles/nodejs-lib'
import { getDeployInfo } from './deployInfo.util'
import { BackendRequestHandler } from './server.model'
Expand Down Expand Up @@ -40,6 +40,6 @@ export function getServerStatusData(
}

function getStartedStr(): string {
const started = localTimeNow().minus(process.uptime(), 'second')
const started = localTime.now().minus(process.uptime(), 'second')
return `${started.toPretty()} (${started.fromNow()})`
}
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
},
"include": ["src"],
"exclude": ["**/__exclude"],
"ts-node": {
"transpileOnly": true,
},
}
Loading

0 comments on commit b0aa3b8

Please sign in to comment.