Fix bug where obsolete strings were not removed when --clean was used. Closes #29
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "@biesbjerg/ngx-translate-extract", | ||||
|   "version": "2.2.0", | ||||
|   "version": "2.2.1", | ||||
|   "description": "Extract strings from projects using ngx-translate", | ||||
|   "main": "dist/index.js", | ||||
|   "typings": "dist/index.d.ts", | ||||
|   | ||||
| @@ -104,7 +104,7 @@ export class ExtractTask implements TaskInterface { | ||||
|  | ||||
| 				if (this._options.clean) { | ||||
| 					const collectionCount = processedCollection.count(); | ||||
| 					processedCollection = processedCollection.intersect(processedCollection); | ||||
| 					processedCollection = processedCollection.intersect(collection); | ||||
| 					const removeCount = collectionCount - processedCollection.count(); | ||||
| 					if (removeCount > 0) { | ||||
| 						this._out(chalk.dim('- removed %d obsolete strings'), removeCount); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user