Skip to content

Commit d95450d

Browse files
committed
feat: Force usage of local dependencies instead of global
1 parent 109e20e commit d95450d

4 files changed

Lines changed: 20 additions & 6 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
# Yarn
2+
node_modules/
3+
14
# Build files
25

36
/build/
47
.downloads/
58
tmp/
69
retype.manifest
710

11+
# SDK's files
12+
813
SDK's/*
914
!SDK's/index.md
1015
!SDK's/index.yaml

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"dev": "retype start",
66
"get-sdks": "./scripts/get-sdks.sh",
77
"clean": "./scripts/clean.sh"
8+
},
9+
"devDependencies": {
10+
"retypeapp": "^3.0.3"
811
}
912
}

scripts/build-docs.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ echo
4141
echo "${blue}Script: ${green}$0"
4242
echo
4343

44-
## Check requisites
45-
if ! type retype; then
46-
echo "${cyan}[$0] ${red}<retype> command not found!"
47-
exit 1
48-
fi
44+
## Install requisites
45+
yarn install
46+
yarn add retypeapp --dev
4947

5048
# Clean
5149

@@ -61,7 +59,7 @@ if ! $skip_sdks; then
6159
fi
6260

6361
# Build
64-
retype build
62+
yarn retype build
6563

6664
# Update website colors
6765
node scripts/js/update-colors.mjs

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
retypeapp@^3.0.3:
6+
version "3.0.3"
7+
resolved "https://registry.yarnpkg.com/retypeapp/-/retypeapp-3.0.3.tgz#2d3b33bc56087a11804e29ab0519b8b23daf8e67"
8+
integrity sha512-W5gNDz+a5uYvckyujfUytu6IjqX0t+Wih9cR7Mf2U8PQBdvcq0X+Dmda2kUut3dSqfeefgS9ffOVJgf58ZRQbw==

0 commit comments

Comments
 (0)