Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '22'
node-version: '18.17.0'
- name: Extract branch name
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '22'
node-version: '18.17.0'
- name: Install project dependencies
run: |
echo "Starting npm ci with a 10-minute timeout"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~reusable_e2e_by_OS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '22'
node-version: '18.17.0'
- name: Install project dependencies (Linux)
if: ${{ inputs.OS == 'ubuntu-22.04' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~reusable_public_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '22'
node-version: '18.17.0'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/~reusable_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "22"
node-version: "18.17.0"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: |
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"docs": "./bin/docs-generator.js",
"lint": "lerna run lint",
"lint:fix": "lerna run lint:fix",
"preinstall": "npm install npm-force-resolutions --location=global",
"postbootstrap": "npm run build",
"postinstall": "npm run bootstrap",
"prepare": "husky install",
Expand Down Expand Up @@ -59,7 +58,6 @@
"lerna": "^5.6.2",
"lerna-audit": "^1.3.3",
"markdown-toc": "^1.2.0",
"npm-force-resolutions": "^0.0.10",
"nyc": "^15.1.0",
"ts-jest": "^27.0.0",
"typescript": "4.3.5",
Expand Down
24 changes: 24 additions & 0 deletions packages/plugin-flex/bin/preinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -e

if [ -d ~/.twilio-cli ]; then
echo "Pre-installing cheerio version 1.0.0-rc.12 to avoid yarn issues with the latest version"
cat >> ~/.twilio-cli/yarn.lock << EOL

cheerio@^1.0.0-rc.3:
version "1.0.0-rc.12"
resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.12.tgz#788bf7466506b1c6bf5fae51d24a2c4d62e47683"
integrity sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==
dependencies:
cheerio-select "^2.1.0"
dom-serializer "^2.0.0"
domhandler "^5.0.3"
domutils "^3.0.1"
htmlparser2 "^8.0.1"
parse5 "^7.0.0"
parse5-htmlparser2-tree-adapter "^7.0.0"

EOL

fi
1 change: 1 addition & 0 deletions packages/plugin-flex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"package.json"
],
"scripts": {
"preinstall": "./bin/preinstall",
"prebuild": "npm run clean",
"build": "cd ../.. && tsc -p \"packages/plugin-flex/tsconfig.json\"",
"clean": "rm -rf dist",
Expand Down
Loading