{"action":"created","issue":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/373","repository_url":"https://api.github.com/repos/ivogabe/gulp-typescript","labels_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/373/comments","events_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/373/events","html_url":"https://github.com/ivogabe/gulp-typescript/issues/373","id":162502966,"number":373,"title":"Files being cached and new changes not compiled","user":{"login":"k-may","id":3956757,"avatar_url":"https://avatars.githubusercontent.com/u/3956757?v=3","gravatar_id":"","url":"https://api.github.com/users/k-may","html_url":"https://github.com/k-may","followers_url":"https://api.github.com/users/k-may/followers","following_url":"https://api.github.com/users/k-may/following{/other_user}","gists_url":"https://api.github.com/users/k-may/gists{/gist_id}","starred_url":"https://api.github.com/users/k-may/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-may/subscriptions","organizations_url":"https://api.github.com/users/k-may/orgs","repos_url":"https://api.github.com/users/k-may/repos","events_url":"https://api.github.com/users/k-may/events{/privacy}","received_events_url":"https://api.github.com/users/k-may/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/labels/Needs%20More%20Info","name":"Needs More Info","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-27T17:17:35Z","updated_at":"2016-09-27T12:43:22Z","closed_at":"2016-09-27T12:43:22Z","body":"<!--\r\n\r\n-->\r\nVery strange, seems that my .ts files are being cached somewhere. While using watch, if I delete the compiled files, change the source .ts and look at the newly compiled files, my changes aren't reflected. In fact the compiled files still reflect the same out dated code and only compiles as expected when I re-run the task.  Somehow, my old files must be being cached somewhere? \r\n\r\n**gulpfile**\r\n\r\n```javascript\r\n\r\nvar tsProject = ts.createProject('tsconfig.json', {\r\n    declarationFiles: true\r\n});\r\n\r\ngulp.task('ts', function () {\r\n\r\n    gulp.watch(\"src/**/*.ts\", function () {\r\n        var tsResult = tsProject.src()\r\n            .pipe(sourcemaps.init())\r\n            .pipe(ts(tsProject));\r\n\r\n\r\n        merge(tsResult.js\r\n                .pipe(sourcemaps.write('.'))\r\n                .pipe(gulp.dest('.'))\r\n                .pipe(debug({title: \"compile\"})),\r\n            tsResult.dts\r\n                .pipe(gulp.dest('.'))\r\n                .pipe(debug({title: \"compile\"}))\r\n        )\r\n\r\n    });\r\n\r\n});\r\n```\r\n\r\n**tsconfig.json**\r\n\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"module\": \"system\",\r\n    \"target\": \"es5\",\r\n    \"sourceMap\": true,\r\n    \"outFile\": \"./bin/OrderForm.js\",\r\n    \"watch\": true,\r\n    \"diagnostics\": true,\r\n    \"pretty\": true,\r\n    \"listFiles\": true,\r\n    \"rootDir\": \"OrderForm/\"\r\n  },\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"bin\",\r\n    \"lib\"\r\n  ],\r\n  \"files\" :[\r\n    \"src/OrderForm.ts\"\r\n  ]\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/comments/249853470","html_url":"https://github.com/ivogabe/gulp-typescript/issues/373#issuecomment-249853470","issue_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/373","id":249853470,"user":{"login":"ivogabe","id":4706418,"avatar_url":"https://avatars.githubusercontent.com/u/4706418?v=3","gravatar_id":"","url":"https://api.github.com/users/ivogabe","html_url":"https://github.com/ivogabe","followers_url":"https://api.github.com/users/ivogabe/followers","following_url":"https://api.github.com/users/ivogabe/following{/other_user}","gists_url":"https://api.github.com/users/ivogabe/gists{/gist_id}","starred_url":"https://api.github.com/users/ivogabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivogabe/subscriptions","organizations_url":"https://api.github.com/users/ivogabe/orgs","repos_url":"https://api.github.com/users/ivogabe/repos","events_url":"https://api.github.com/users/ivogabe/events{/privacy}","received_events_url":"https://api.github.com/users/ivogabe/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T12:43:22Z","updated_at":"2016-09-27T12:43:22Z","body":"Great!"}}
{"actor":{"display_login":"ivogabe"}}