I'm getting this when upgrading to typescript3 (trying to upgrade someone elses repo - so I'm pretty unfamiliar with rollup)
> rollup -c
src/index.ts → dist/index.cjs.js, dist/index.esm.js...
[!] (typescript plugin) Error: Cannot write file 'dist/geoFire/geoCallbackRegistration.d.ts' because it would overwrite input file.
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
src/index.ts
Error: Cannot write file 'dist/geoFire/geoCallbackRegistration.d.ts' because it would overwrite input file.
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
at error (/Users/chadbr/dev/github/geofire-js/node_modules/rollup/dist/rollup.js:3460:30)
at Object.error (/Users/chadbr/dev/github/geofire-js/node_modules/rollup/dist/rollup.js:21251:17)
at printDiagnostics (/Users/chadbr/dev/github/geofire-js/node_modules/rollup-plugin-typescript3/index.js:61:25)
at Object.transform (/Users/chadbr/dev/github/geofire-js/node_modules/rollup-plugin-typescript3/index.js:119:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! geofire@4.1.2 build: `rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the geofire@4.1.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chadbr/.npm/_logs/2018-12-03T13_23_45_170Z-debug.log
I'm getting this when upgrading to typescript3 (trying to upgrade someone elses repo - so I'm pretty unfamiliar with rollup)
Is this the same issue as https://github.com/mohd-akram/rollup-plugin-typescript/issues/1 ?
If so, could you clarify what you meant by:
Thanks!