forked from stoplightio/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuse-local-elements.sh
More file actions
14 lines (10 loc) · 844 Bytes
/
use-local-elements.sh
File metadata and controls
14 lines (10 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
example=$1
cd ./examples-dev/$example
npx json -I -f package.json -e "this.resolutions=this.resolutions || {}"
npx json -I -f package.json -e "this.resolutions[\"@stoplight/elements\"]=\"file:../../packages/elements/dist\""
npx json -I -f package.json -e "this.resolutions[\"@stoplight/elements-dev-portal\"]=\"file:../../packages/elements-dev-portal/dist\""
npx json -I -f package.json -e "this.resolutions[\"@stoplight/elements-core\"]=\"file:../../packages/elements-core/dist\""
npx json -I -f package.json -e "this.dependencies[\"@stoplight/elements\"]=\"file:../../packages/elements/dist\""
npx json -I -f package.json -e "this.dependencies[\"@stoplight/elements-dev-portal\"]=\"file:../../packages/elements-dev-portal/dist\""
npx json -I -f package.json -e "this.scripts.reinstall=\"rm -rf node_modules && yarn install\""