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
Open
@sosoba

Description

@sosoba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0