microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.11k stars 12.5k forks source link

.git directory installed in 3.3.333 #30122

Closed XCMP closed 5 years ago

XCMP commented 5 years ago

TypeScript Version: 3.3.333

Search Terms: 3.3.333 Not a git repository

Code

git init
npm install typescript
git add package-lock.json
git commit -m "init"
git clean -xdf

Expected behavior: clean node_module folder

Actual behavior: fatal: Not a git repository: /home/daniel/shared/TypeScript/.git/worktrees/TypeScript3 The .git file should not be included in release package.

Playground Link:

Related Issues:

j-oliveras commented 5 years ago

Duplicate of #30100, #30077 and fixed by #30078.