8000 [prettier-plugin-pkg] "pre" and "post" scripts · Issue #403 · un-ts/prettier · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[prettier-plugin-pkg] "pre" and "post" scripts #403

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

Open
sosoba opened this issue Jan 3, 2025 · 1 comment
Open

[prettier-plugin-pkg] "pre" and "post" scripts #403

sosoba opened this issue Jan 3, 2025 · 1 comment
La 8000 bels
enhancement New feature or request help wanted Extra attention is needed PR welcome

Comments

@sosoba
Copy link
sosoba commented Jan 3, 2025

Currently the plugin treats all scripts as independent and sorts them alphabetically. This does not well represent the idea of ​​npm where the prefix "before" and "after" have specific meanings. Ex.

"scripts": {
  "test": "node --test",
  "preversion" :"tsc && npm run test",
  "version": "npm publish",
  "postversion": "git push --tags"
}

has currently order that does not reflect reality:

"scripts": {
  "postversion": "git push --tags",
  "preversion" :"tsc && npm run test",
  "test": "node --test",
  "version": "npm publish"
}

I suggest to parameterizing this action.

@JounQin
Copy link
Member
JounQin commented Feb 20, 2025

I like this idea personally, PR welcome if you have time to contribute.

@JounQin JounQin added enhancement New feature or request help wanted Extra attention is needed PR welcome labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed PR welcome
Projects
None yet
Development

No branches or pull requests

2 participants
2AD7
0