Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Dev: unstaged changes end up in commit in dist/ and lib/ #250

@andreasabel

Description

@andreasabel

I noticed that if I create or amend a commit while I also have unstaged changes, these will end up against intention in the auto-generated dist/ and lib/ parts of the commit.

module.exports = {
"**/!(*test).{ts,json}": [
"eslint --cache --fix",
() => "npm run bundle",
() => "git add setup/dist/ setup/lib/",
],
"**/*.ts": () => "tsc -p tsconfig.json",
"**/*.{js,ts,json,md}": "prettier --write",
};

Maybe a fix would be to auto-stash in the commit hook, so that the unstaged changes would not be considered when compiling the typescript. Presumably git stash --keep-index can do this (?): https://stackoverflow.com/questions/20028507/git-stash-uncached-how-to-put-away-all-unstaged-changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    re: devConcerning developer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions