-
-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(estree-walker): bump estree-walker to v3 #1786
base: master
Are you sure you want to change the base?
Conversation
@@ -5774,6 +5780,8 @@ snapshots: | |||
|
|||
'@types/[email protected]': {} | |||
|
|||
'@types/[email protected]': {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some of these can be dedupe, but I only know one way which is to run pnpm dedupe
, but it gives lots of other unrelated changes too, so probably best do it centrally and not in this PR
let me know if there is a better way, happy to learn how to use pnpm in such cases
Thanks for the PR. Looks like this change set causes issues with CI. Please have a look. |
This is puzzling me. I tried this locally in different ways, not only with I also used the same pnpm as in the Actions Looks like |
bbdf37a
to
749c511
Compare
I figured |
@@ -66,7 +66,7 @@ export function dataToEsm(data: unknown, options?: DataToEsmOptions): string; | |||
* Extracts the names of all assignment targets based upon specified patterns. | |||
* @param param An `acorn` AST Node. | |||
*/ | |||
export function extractAssignedNames(param: BaseNode): string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fixes
packages/node-resolve prepare: created ./dist/cjs/index.js, ./dist/es/index.js in 3s
packages/pluginutils prepare: [!] (plugin typescript) Error: @rollup/plugin-typescript TS2345: Argument of type 'BaseNode' is not assignable to parameter of type 'Node'.
packages/pluginutils prepare: Property 'id' is missing in type 'BaseNode' but required in type 'VariableDeclarator'.
packages/pluginutils prepare: src/attachScopes.ts (64:8)
packages/pluginutils prepare:
packages/pluginutils prepare: 64 walk(ast, {
packages/pluginutils prepare: ~~~
packages/pluginutils prepare: ../../node_modules/.pnpm/@[email protected]/node_modules/@types/estree/index.d.ts:[255](https://github.com/rollup/plugins/actions/runs/11325212724/job/31590538305#step:9:256):5
packages/pluginutils prepare: 255 id: Pattern;
packages/pluginutils prepare: ~~
packages/pluginutils prepare: 'id' is declared here.
changes between BaseNode
to Node
seems to have a bit of history here
I saw a few issues and PRs addressing them, seemed like a back and forth
given recent change in Rich-Harris/estree-walker#34 that fixes Rich-Harris/estree-walker#28, using Node
seems to be the way, at least from the walker perspective
hope it's OK also for pluginutils
48e730b
to
0f5a468
Compare
Rollup Plugin Name:
commonjs
,dynamic-import-vars
,inject
,pluginutils
,strip
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers: none
Description