From 3dc86708c523922dcb48dc5ad884b9dd55227e6c Mon Sep 17 00:00:00 2001 From: Will Binns-Smith Date: Mon, 2 Dec 2024 13:29:19 -0800 Subject: [PATCH] fixup! chore(turbo-tasks): improve ast-grep lint time --- .github/workflows/build_and_test.yml | 1 + package.json | 2 +- pnpm-lock.yaml | 66 ++++++++++++++-------------- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 8edda9ad20447..2cb49ee7d7d79 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -172,6 +172,7 @@ jobs: - name: ast-grep lint step uses: ast-grep/action@v1.5.0 with: + # Keep in sync with the next.js repo's root package.json version: 0.31.0 devlow-bench: diff --git a/package.json b/package.json index 09ca4af8dc4e1..b926131adcaa5 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ }, "devDependencies": { "@actions/core": "1.10.1", - "@ast-grep/cli": "0.26.1", + "@ast-grep/cli": "0.31.0", "@babel/core": "7.22.5", "@babel/eslint-parser": "7.22.5", "@babel/generator": "7.22.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38f58b7ac1e60..646511be753dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,8 +33,8 @@ importers: specifier: 1.10.1 version: 1.10.1 '@ast-grep/cli': - specifier: 0.26.1 - version: 0.26.1 + specifier: 0.31.0 + version: 0.31.0 '@babel/core': specifier: 7.22.5 version: 7.22.5 @@ -1805,50 +1805,50 @@ packages: '@ampproject/toolbox-validator-rules@2.8.0': resolution: {integrity: sha512-kbInwnzpEPVZkKigpKFkF/DQ2LsuZ5b8vrEFHjJ4P+meKVQg2QF/UWAQpIMMdjGe1AQBT+DWm91n9UyjgqfnWQ==} - '@ast-grep/cli-darwin-arm64@0.26.1': - resolution: {integrity: sha512-6GZx6zIoCdUqHUKSAL3oaOIdMcV8EfLXTqHjZa+FfpzpDr9wyIe1961KMvObMNddTd2qwRmb+0S16ePmUTuQjw==} + '@ast-grep/cli-darwin-arm64@0.31.0': + resolution: {integrity: sha512-6hQjv3JNMwECcbOEqn3dRAFOf0gsM4Q1/UzBW9mLfQVae935+zw+DIgBKjzKHQPdxr4XO+KJr8GcfeEhOLMbJw==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@ast-grep/cli-darwin-x64@0.26.1': - resolution: {integrity: sha512-G22bvENdALeSuE53mZJIYHT0dMksgsmpvVhG+7JgBR9LCCj9mIzxeJplf5RJ98fufhBAQYIjvKxoy2mqXAX47w==} + '@ast-grep/cli-darwin-x64@0.31.0': + resolution: {integrity: sha512-3HXzzgrcm4UA3iE+LpZ0jyODW2FBFligH6cuA5au087W8IYOGg9jeaBIt4rDpiLqVvmukr4EciYBPFi7k07Gww==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@ast-grep/cli-linux-arm64-gnu@0.26.1': - resolution: {integrity: sha512-UFAomHpk8iCB6wiQWiNW6nzS+UbPWqcyyNAATi57coeE9fhuaOoR6S9eU5PG49tLTfAvm7v9Ls9yH473XQIRxw==} + '@ast-grep/cli-linux-arm64-gnu@0.31.0': + resolution: {integrity: sha512-gXNEG4iN0xG9quisvIOyl35kFnuYxaJxYG6+QoP+jsxlqKK6arbOomNJvczS2RSXDbr9iIgOixuWPoTC4jP/Kw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@ast-grep/cli-linux-x64-gnu@0.26.1': - resolution: {integrity: sha512-/IYGghhzfA0vnRO/jxFDmjFCgX+n6/1rsg1PIa7yXyl8Aei8AZ5og7EvYdSSSp/ItyVkqsvEn5hApGqhAB6/EQ==} + '@ast-grep/cli-linux-x64-gnu@0.31.0': + resolution: {integrity: sha512-LqJpwTrEfOrV1+zMkBvYNmDTcMVAt4xZI5aIOVw4bau78jYTnu7gbwZnofx67ZdLKInnxlE2+oKKLVO/seNbgw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@ast-grep/cli-win32-arm64-msvc@0.26.1': - resolution: {integrity: sha512-eSMcmjHxArQTAIHEILNLGDGY6BV5zUsSUE8bvZ9vS6eMwnoh2t82qtlf5qtXQ/VYvSkfbWkplvtoQQTVDUysVA==} + '@ast-grep/cli-win32-arm64-msvc@0.31.0': + resolution: {integrity: sha512-rQWWEvpOMp11VoCyJIJgyB8xc/QbOXnJ+8bqHmOKdpK2gfwHevgQbwlPEMGDCah1rYyzt/2X8MSw0DtcRIrzvw==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@ast-grep/cli-win32-ia32-msvc@0.26.1': - resolution: {integrity: sha512-t/WBYZgdoSqq1rVqZCRqrA5X2+b1llN3fHv1655JrMe7b/JHBHoFaj8AjZH332I9ax/vW9++j/1NS/RoOIRrdg==} + '@ast-grep/cli-win32-ia32-msvc@0.31.0': + resolution: {integrity: sha512-CffVTpU+fS5crqEPjyUrMLoq7S4SzfO1K8HWWk/tFtOxNeF1M/ad+TbWkicLqDy9mQOYovP0iTP0Ywp/60TzUw==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] - '@ast-grep/cli-win32-x64-msvc@0.26.1': - resolution: {integrity: sha512-gmczvNE8OwVJJ3PXz7kxG+AKICwtUzBPOIm3D1kT53SAYpcIzaMLVQgmj1375MdWAhEUHEXe/uHkfgVqn+CJtA==} + '@ast-grep/cli-win32-x64-msvc@0.31.0': + resolution: {integrity: sha512-WoG3JxVLygR16EM0/rBdNn6Y/qWyTvE+uhUocO2KszkuuvRZKJ9o2zEN4pURbPnW4TMKaEJ0w+8FyBFEvHiLUA==} engines: {node: '>= 10'} cpu: [x64] os: [win32] - '@ast-grep/cli@0.26.1': - resolution: {integrity: sha512-Ye507D52sjG2v74X7fuhJn80e7lVOUMEh3YNyRVg14KLFJ20FwRVti/4SL4MC+RHUVqX7GGpQYjMWoeNRJ0oXA==} + '@ast-grep/cli@0.31.0': + resolution: {integrity: sha512-I/vUDVFiU4uFK8hyxlc1ssFReDRFTSjXrZbXCtt9EgvM83x+VuoejGJtLK7R3QA85/tHjiRerW+6XFJTQS7RXw==} engines: {node: '>= 12.0.0'} hasBin: true @@ -15492,38 +15492,38 @@ snapshots: dependencies: cross-fetch: 3.1.2 - '@ast-grep/cli-darwin-arm64@0.26.1': + '@ast-grep/cli-darwin-arm64@0.31.0': optional: true - '@ast-grep/cli-darwin-x64@0.26.1': + '@ast-grep/cli-darwin-x64@0.31.0': optional: true - '@ast-grep/cli-linux-arm64-gnu@0.26.1': + '@ast-grep/cli-linux-arm64-gnu@0.31.0': optional: true - '@ast-grep/cli-linux-x64-gnu@0.26.1': + '@ast-grep/cli-linux-x64-gnu@0.31.0': optional: true - '@ast-grep/cli-win32-arm64-msvc@0.26.1': + '@ast-grep/cli-win32-arm64-msvc@0.31.0': optional: true - '@ast-grep/cli-win32-ia32-msvc@0.26.1': + '@ast-grep/cli-win32-ia32-msvc@0.31.0': optional: true - '@ast-grep/cli-win32-x64-msvc@0.26.1': + '@ast-grep/cli-win32-x64-msvc@0.31.0': optional: true - '@ast-grep/cli@0.26.1': + '@ast-grep/cli@0.31.0': dependencies: detect-libc: 2.0.3 optionalDependencies: - '@ast-grep/cli-darwin-arm64': 0.26.1 - '@ast-grep/cli-darwin-x64': 0.26.1 - '@ast-grep/cli-linux-arm64-gnu': 0.26.1 - '@ast-grep/cli-linux-x64-gnu': 0.26.1 - '@ast-grep/cli-win32-arm64-msvc': 0.26.1 - '@ast-grep/cli-win32-ia32-msvc': 0.26.1 - '@ast-grep/cli-win32-x64-msvc': 0.26.1 + '@ast-grep/cli-darwin-arm64': 0.31.0 + '@ast-grep/cli-darwin-x64': 0.31.0 + '@ast-grep/cli-linux-arm64-gnu': 0.31.0 + '@ast-grep/cli-linux-x64-gnu': 0.31.0 + '@ast-grep/cli-win32-arm64-msvc': 0.31.0 + '@ast-grep/cli-win32-ia32-msvc': 0.31.0 + '@ast-grep/cli-win32-x64-msvc': 0.31.0 '@babel/cli@7.21.5(@babel/core@7.22.5)': dependencies: