diff --git a/contrib/building.md b/contrib/building.md index b42ee51adc..0cc80ffcf0 100644 --- a/contrib/building.md +++ b/contrib/building.md @@ -145,12 +145,13 @@ export PATH=/libexec:$PATH ## Cloning the repository -To clone the RealmJS repository and install git submodules: +To clone the RealmJS repository and install git submodules and dependencies. ```sh git clone https://github.com/realm/realm-js.git cd realm-js git submodule update --init --recursive +npm install ``` In order to improve the accuracy of `git blame` locally by ignoring commits in which the code was reformatted by an automated tool, run: `git config blame.ignoreRevsFile .gitignore-revs` from inside the repository. diff --git a/package.json b/package.json index 82d6d22db8..7170d351fb 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,7 @@ "lint": "wireit", "lint:fix": "wireit", "lint:cpp": "find src packages/realm/bindgen/src -name '*.cpp' -or -name '*.h' -or -name '*.hpp' | xargs clang-format --dry-run --Werror", - "lint:cpp:fix": "find src packages/realm/bindgen/src -name '*.cpp' -or -name '*.h' -or -name '*.hpp' | xargs clang-format -i", - "postinstall": "git submodule update --init --recursive" + "lint:cpp:fix": "find src packages/realm/bindgen/src -name '*.cpp' -or -name '*.h' -or -name '*.hpp' | xargs clang-format -i" }, "wireit": { "build": {