Skip to content

Put lifecyle scripts to the top of scripts #401

@zanminkian

Description

@zanminkian

Input:

{
  "scripts": {
    "install": "npm run build",
    "prepare": "husky",
    "build": "tsc",
    "lint": "eslint .",
    "test": "vitest run"
  }
}

Expted:

{
  "scripts": {
    "install": "npm run build",
    "prepare": "husky",
    "build": "tsc",
    "lint": "eslint .",
    "test": "vitest run"
  }
}

Actual:

{
  "scripts": {
    "build": "tsc",
    "install": "npm run build",
    "lint": "eslint .",
    "prepare": "husky",
    "test": "vitest run"
  }
}

Lifecycle scripts: https://docs.npmjs.com/cli/v8/using-npm/scripts#life-cycle-scripts

Related: #353 #171

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions