Skip to content

Commit

Permalink
fix: correct pattern for tsbuildinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 18, 2023
1 parent 22596b8 commit 0533c33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion files/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ docs
node_modules
.wireit
.eslintcache
.tsbuildinfo
*.tsbuildinfo

# --
# put files here you don't want cleaned with sf-clean
Expand Down
2 changes: 1 addition & 1 deletion utils/sf-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PACKAGE_DEFAULTS = {
compile: {
command: 'tsc --build --pretty ',
files: ['src/**/*.ts', 'tsconfig.json'],
output: ['lib/**', '.tsbuildinfo'],
output: ['lib/**', '*.tsbuildinfo'],
clean: 'if-file-deleted',
},
format: {
Expand Down
2 changes: 1 addition & 1 deletion utils/standardize-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function writeGitignore(targetDir) {
} else {
// Add the default clean-all entries if they don't exist.
let needsWrite = false;
for (const entry of ['.wireit', '.eslintcache', '.tsbuildinfo']) {
for (const entry of ['.wireit', '.eslintcache', '*.tsbuildinfo']) {
if (!original.includes(entry)) {
original = original.replace('# -- CLEAN ALL', `# -- CLEAN ALL\n${entry}`);
needsWrite = true;
Expand Down

0 comments on commit 0533c33

Please sign in to comment.