-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
chore: remove @astrojs/parser
#2845
Conversation
|
I'm not 100% sure we're ready to do this yet, since our prettier extension is still using the old parser. I'll let @natemoo-re answer tho |
I think we're ready to deprecate and remove it. We won't be creating any new releases of this package and the Prettier plugin is almost ready to be moved. |
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.
Looks good other than some package.json
changes that we don't need in this PR!
packages/astro/package.json
Outdated
"@astrojs/markdown-remark": "workspace:^0.7.0-next.0", | ||
"@astrojs/prism": "workspace:^0.4.0", | ||
"@astrojs/webapi": "workspace:^0.11.0", |
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.
These workspace:*
specifiers seemed to have snuck in here...
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 don't know if this was expected, but when I did pnpm install
, this happened inside the lockfile:
- '@astrojs/markdown-remark': link:../markdown/remark
- '@astrojs/prism': link:../astro-prism
- '@astrojs/webapi': link:../webapi
+ '@astrojs/markdown-remark': 0.7.0-next.0
+ '@astrojs/prism': 0.4.0
+ '@astrojs/webapi': 0.11.0
That's why I added them
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.
Hmm, I wonder if you did the install from packages/astro
rather than the root? Our .npmrc
file has the following, which should prevent this.
# Important! Never install `astro` even when new version is in registry
prefer-workspace-packages=true
link-workspace-packages=true
save-workspace-protocol=false # This prevents the examples to have the `workspace:` prefix
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.
Hmm, I wonder if you did the install from packages/astro rather than the root?
That was the problem. I pushed a fix
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.
Approved! Thanks for cleaning this up
* Removed parser from astro * Removed parser files * Updated changeset config * Removed from license
Changes
Removed the deprecated
@astrojs/parser
. Also,@astrojs/parser
should be tagged as "deprecated" in NPM.Testing
Docs