mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Unpin Node.js version for Prettier E2E test (#17027)
* Unpin Node.js version for Prettier E2E test * Remove outdated modifications
This commit is contained in:
@@ -99,12 +99,6 @@ jobs:
|
||||
path: /tmp
|
||||
- name: Unpack published packages
|
||||
run: tar -C /tmp -xf /tmp/verdaccio-workspace.tar
|
||||
# Remove this step when https://github.com/prettier/prettier/issues/16930 is resolved
|
||||
- name: Use Node.js 22.11 for prettier test
|
||||
if: matrix.project == 'prettier'
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22.11"
|
||||
- name: Test
|
||||
run: ./scripts/integration-tests/e2e-${{ matrix.project }}.sh
|
||||
env:
|
||||
|
||||
@@ -93,11 +93,5 @@ jobs:
|
||||
path: /tmp
|
||||
- name: Unpack published packages
|
||||
run: tar -C /tmp -xf /tmp/verdaccio-workspace.tar
|
||||
# Remove this step when https://github.com/prettier/prettier/issues/16930 is resolved
|
||||
- name: Use Node.js 22.11 for prettier test
|
||||
if: matrix.project == 'prettier'
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22.11"
|
||||
- name: Test
|
||||
run: ./scripts/integration-tests/e2e-${{ matrix.project }}.sh
|
||||
|
||||
@@ -26,10 +26,6 @@ if [ "$BABEL_8_BREAKING" = true ] ; then
|
||||
sed -i 's/const getChalk = () => chalk/default (code) => code/' scripts/build/shims/babel-highlight.js
|
||||
sed -i 's/const generate = babelGenerator.default/const generate = babelGenerator/' scripts/build/transform/index.js
|
||||
rm tests/unit/__snapshots__/visitor-keys.js.snap
|
||||
# Update recordAndTuple usage
|
||||
sed -i 's/\["recordAndTuple", { syntaxType: "hash" }\]/"recordAndTuple"/' src/language-js/parse/babel.js
|
||||
# Use new import assertions plugin
|
||||
sed -i 's/\["importAttributes", { deprecatedAssertSyntax: true }\]/"deprecatedImportAssert"/' src/language-js/parse/babel.js
|
||||
# https://github.com/babel/babel/pull/16733
|
||||
rm -r tests/format/flow/mapped-types
|
||||
rm tests/format/typescript/conditional-types/conditonal-types.ts
|
||||
|
||||
Reference in New Issue
Block a user