-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
updateDeps.sh
executable file
·43 lines (30 loc) · 1.09 KB
/
updateDeps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
#npm i -g dts-bundle-generator
cd front
rm -fr ./node_modules || echo
rm -fr pnpm-lock.yaml
pnpm i
(cd ./node_modules/mongodb/ && dts-bundle-generator ./mongodb.d.ts && cp -fr mongodb.d.d.ts ../../../../../src/assets/libs/mongo.d.ts)
(cd ./node_modules/bson/ && dts-bundle-generator ./bson.d.ts && cp -fr bson.d.d.ts ../../../../../src/assets/libs/bson.d.ts)
(cd ./node_modules/@ngneat/falso/ && dts-bundle-generator --no-check ./src/index.d.ts --external-inlines=@ngneat/falso && cp -fr ./src/index.d.d.ts ../../../../../../src/assets/libs/falso.d.ts)
(cd ./node_modules/@faker-js/faker/ && dts-bundle-generator --no-check ./dist/types/index.d.ts --external-inlines=@faker-js/faker && cp -fr ./dist/types/index.d.d.ts ../../../../../../src/assets/libs/faker.d.ts)
cd ../
###############
cd back
rm -fr ./node_modules || echo
rm -fr package-lock.json
npm i
cd ../
###############
cd compatibility
rm -fr ./node_modules || echo
rm -fr package-lock.json
npm i
cd ../
###############
cd static/world-populator
rm -fr ./node_modules || echo
rm -fr package-lock.json
npm i
cd ../../
###############