refactor: add cwd constant

This commit is contained in:
Innei
2022-03-27 15:11:23 +08:00
parent c8d957271f
commit b89897aafc
13 changed files with 85 additions and 45 deletions

14
pnpm-lock.yaml generated
View File

@@ -36,6 +36,7 @@ specifiers:
'@types/cache-manager': 3.4.3
'@types/cron': 1.7.3
'@types/ejs': 3.1.0
'@types/fs-extra': 9.0.13
'@types/get-image-colors': 4.0.1
'@types/html-minifier': 4.0.2
'@types/ioredis': 4.28.10
@@ -71,6 +72,7 @@ specifiers:
fastify-cookie: 5.6.0
fastify-multipart: 5.3.1
fastify-swagger: 5.0.0
fs-extra: '*'
get-image-colors: 4.0.1
html-minifier: 4.0.0
husky: 7.0.4
@@ -158,6 +160,7 @@ dependencies:
fastify-cookie: 5.6.0
fastify-multipart: 5.3.1
fastify-swagger: 5.0.0
fs-extra: 10.0.1
get-image-colors: 4.0.1
html-minifier: 4.0.0
image-size: 1.0.1
@@ -204,6 +207,7 @@ devDependencies:
'@types/cache-manager': 3.4.3
'@types/cron': 1.7.3
'@types/ejs': 3.1.0
'@types/fs-extra': 9.0.13
'@types/get-image-colors': 4.0.1
'@types/html-minifier': 4.0.2
'@types/ioredis': 4.28.10
@@ -1832,6 +1836,12 @@ packages:
'@types/serve-static': 1.13.10
dev: true
/@types/fs-extra/9.0.13:
resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==}
dependencies:
'@types/node': 16.11.26
dev: true
/@types/get-image-colors/4.0.1:
resolution: {integrity: sha512-SJw1xtewG0w9btZqeG8evQpvSvo7Hp12cPRUi5XouM7sfe/CcvkSk8x8u2XDLwc2UIW2D7qrf/iffv9dJmSVsQ==}
dependencies:
@@ -4338,7 +4348,6 @@ packages:
graceful-fs: 4.2.9
jsonfile: 6.1.0
universalify: 2.0.0
dev: true
/fs-minipass/2.1.0:
resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}
@@ -4538,7 +4547,6 @@ packages:
/graceful-fs/4.2.9:
resolution: {integrity: sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==}
dev: true
/har-schema/2.0.0:
resolution: {integrity: sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=}
@@ -5741,7 +5749,6 @@ packages:
universalify: 2.0.0
optionalDependencies:
graceful-fs: 4.2.9
dev: true
/jsonwebtoken/8.5.1:
resolution: {integrity: sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==}
@@ -8065,7 +8072,6 @@ packages:
/universalify/2.0.0:
resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==}
engines: {node: '>= 10.0.0'}
dev: true
/upper-case/1.1.3:
resolution: {integrity: sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=}