Skip to content

Commit 5a4c50c

Browse files
authored
Updated: Adding Missing prisma updates (#593)
1 parent 979460b commit 5a4c50c

File tree

3 files changed

+82
-5
lines changed

3 files changed

+82
-5
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ COPY . .
4242
# Prune dev dependencies from the packages
4343
RUN yarn install --frozen-lockfile --production=false --network-timeout 1000000 && \
4444
yarn build && \
45+
yarn copy-files && \
4546
yarn install --frozen-lockfile --production=true --network-timeout 1000000
4647

4748
##############################
@@ -64,4 +65,7 @@ COPY --from=build /app/node_modules ./node_modules
6465
COPY --from=build /app/src/prisma/* ./src/prisma/
6566
COPY --from=build /app/dist ./dist
6667

68+
# Replace the schema path in the package.json file
69+
RUN sed -i 's_"schema": "./src/prisma/schema.prisma"_"schema": "./dist/prisma/schema.prisma"_g' package.json
70+
6771
ENTRYPOINT [ "yarn", "start"]

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"start:docker-force-build": "docker compose --profile engine --env-file ./.env up --remove-orphans --build",
2323
"lint:fix": "eslint --fix 'src/**/*.ts'",
2424
"test:unit": "vitest",
25-
"test:coverage": "vitest run --coverage"
25+
"test:coverage": "vitest run --coverage",
26+
"copy-files": "copyfiles -u 2 ./src/prisma/* ./dist/prisma/ && copyfiles -u 3 ./src/prisma/migrations/**/*.sql ./dist/prisma/migrations/"
2627
},
2728
"dependencies": {
2829
"@aws-sdk/client-kms": "^3.398.0",
@@ -45,6 +46,7 @@
4546
"bullmq": "^5.7.8",
4647
"cookie": "^0.5.0",
4748
"cookie-parser": "^1.4.6",
49+
"copyfiles": "^2.4.1",
4850
"cron-parser": "^4.9.0",
4951
"crypto": "^1.0.1",
5052
"crypto-js": "^4.2.0",

yarn.lock

Lines changed: 75 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5644,6 +5644,19 @@ copy-anything@^3.0.2:
56445644
dependencies:
56455645
is-what "^4.1.8"
56465646

5647+
copyfiles@^2.4.1:
5648+
version "2.4.1"
5649+
resolved "https://registry.yarnpkg.com/copyfiles/-/copyfiles-2.4.1.tgz#d2dcff60aaad1015f09d0b66e7f0f1c5cd3c5da5"
5650+
integrity sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==
5651+
dependencies:
5652+
glob "^7.0.5"
5653+
minimatch "^3.0.3"
5654+
mkdirp "^1.0.4"
5655+
noms "0.0.0"
5656+
through2 "^2.0.1"
5657+
untildify "^4.0.0"
5658+
yargs "^16.1.0"
5659+
56475660
core-util-is@~1.0.0:
56485661
version "1.0.3"
56495662
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
@@ -7134,6 +7147,18 @@ glob@^10.4.1:
71347147
package-json-from-dist "^1.0.0"
71357148
path-scurry "^1.11.1"
71367149

7150+
glob@^7.0.5:
7151+
version "7.2.3"
7152+
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
7153+
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
7154+
dependencies:
7155+
fs.realpath "^1.0.0"
7156+
inflight "^1.0.4"
7157+
inherits "2"
7158+
minimatch "^3.1.1"
7159+
once "^1.3.0"
7160+
path-is-absolute "^1.0.0"
7161+
71377162
glob@^8.0.0:
71387163
version "8.1.0"
71397164
resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
@@ -7717,6 +7742,11 @@ is64bit@^2.0.0:
77177742
dependencies:
77187743
system-architecture "^0.1.0"
77197744

7745+
isarray@0.0.1:
7746+
version "0.0.1"
7747+
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
7748+
integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==
7749+
77207750
isarray@^1.0.0, isarray@~1.0.0:
77217751
version "1.0.0"
77227752
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
@@ -8469,7 +8499,7 @@ minimalistic-crypto-utils@^1.0.1:
84698499
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
84708500
integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==
84718501

8472-
minimatch@^3.0.5, minimatch@^3.1.2:
8502+
minimatch@^3.0.3, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
84738503
version "3.1.2"
84748504
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
84758505
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
@@ -8747,6 +8777,14 @@ node-libs-browser@2.2.1:
87478777
util "^0.11.0"
87488778
vm-browserify "^1.0.1"
87498779

8780+
noms@0.0.0:
8781+
version "0.0.0"
8782+
resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859"
8783+
integrity sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==
8784+
dependencies:
8785+
inherits "^2.0.1"
8786+
readable-stream "~1.0.31"
8787+
87508788
normalize-path@^3.0.0, normalize-path@~3.0.0:
87518789
version "3.0.0"
87528790
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
@@ -9001,6 +9039,11 @@ path-exists@^4.0.0:
90019039
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
90029040
integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
90039041

9042+
path-is-absolute@^1.0.0:
9043+
version "1.0.1"
9044+
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
9045+
integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
9046+
90049047
path-key@^3.1.0:
90059048
version "3.1.1"
90069049
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
@@ -9648,7 +9691,7 @@ react-style-singleton@^2.2.1:
96489691
invariant "^2.2.4"
96499692
tslib "^2.0.0"
96509693

9651-
readable-stream@^2.0.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@^2.3.8:
9694+
readable-stream@^2.0.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@^2.3.8, readable-stream@~2.3.6:
96529695
version "2.3.8"
96539696
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b"
96549697
integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==
@@ -9681,6 +9724,16 @@ readable-stream@^4.0.0:
96819724
process "^0.11.10"
96829725
string_decoder "^1.3.0"
96839726

9727+
readable-stream@~1.0.31:
9728+
version "1.0.34"
9729+
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
9730+
integrity sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==
9731+
dependencies:
9732+
core-util-is "~1.0.0"
9733+
inherits "~2.0.1"
9734+
isarray "0.0.1"
9735+
string_decoder "~0.10.x"
9736+
96849737
readdirp@~3.6.0:
96859738
version "3.6.0"
96869739
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
@@ -10196,6 +10249,11 @@ string_decoder@^1.0.0, string_decoder@^1.1.1, string_decoder@^1.3.0:
1019610249
dependencies:
1019710250
safe-buffer "~5.2.0"
1019810251

10252+
string_decoder@~0.10.x:
10253+
version "0.10.31"
10254+
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
10255+
integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==
10256+
1019910257
string_decoder@~1.1.1:
1020010258
version "1.1.1"
1020110259
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
@@ -10410,6 +10468,14 @@ three@^0.146.0:
1041010468
resolved "https://registry.yarnpkg.com/three/-/three-0.146.0.tgz#fd80f0d128ab4bb821a02191ae241e4e6326f17a"
1041110469
integrity sha512-1lvNfLezN6OJ9NaFAhfX4sm5e9YCzHtaRgZ1+B4C+Hv6TibRMsuBAM5/wVKzxjpYIlMymvgsHEFrrigEfXnb2A==
1041210470

10471+
through2@^2.0.1:
10472+
version "2.0.5"
10473+
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"
10474+
integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==
10475+
dependencies:
10476+
readable-stream "~2.3.6"
10477+
xtend "~4.0.1"
10478+
1041310479
tildify@2.0.0:
1041410480
version "2.0.0"
1041510481
resolved "https://registry.yarnpkg.com/tildify/-/tildify-2.0.0.tgz#f205f3674d677ce698b7067a99e949ce03b4754a"
@@ -10668,6 +10734,11 @@ unstorage@^1.9.0:
1066810734
ofetch "^1.3.3"
1066910735
ufo "^1.4.0"
1067010736

10737+
untildify@^4.0.0:
10738+
version "4.0.0"
10739+
resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b"
10740+
integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==
10741+
1067110742
untun@^0.1.3:
1067210743
version "0.1.3"
1067310744
resolved "https://registry.yarnpkg.com/untun/-/untun-0.1.3.tgz#5d10dee37a3a5737ff03d158be877dae0a0e58a6"
@@ -11318,7 +11389,7 @@ xmlcreate@^2.0.4:
1131811389
resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-2.0.4.tgz#0c5ab0f99cdd02a81065fa9cd8f8ae87624889be"
1131911390
integrity sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==
1132011391

11321-
xtend@^4.0.0, xtend@^4.0.1:
11392+
xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1:
1132211393
version "4.0.2"
1132311394
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
1132411395
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
@@ -11388,7 +11459,7 @@ yargs@^15.3.1:
1138811459
y18n "^4.0.0"
1138911460
yargs-parser "^18.1.2"
1139011461

11391-
yargs@^16.2.0:
11462+
yargs@^16.1.0, yargs@^16.2.0:
1139211463
version "16.2.0"
1139311464
resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"
1139411465
integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==

0 commit comments

Comments
 (0)