cyclejs-community / cyclic-router

Router Driver built for Cycle.js
MIT License
109 stars 25 forks source link

TypeScript warnings #139

Closed ricochet1k closed 7 years ago

ricochet1k commented 7 years ago

When using Typescript with webpack, I get a several warnings from cyclic-router like this:

WARNING in ./~/cyclic-router/lib/index.js
Cannot find source file '../src/index.ts': Error: Cannot resolve 'file' or 'directory' ../src/index.ts in /web-cycle/node_modules/cyclic-router/lib

Can you include the typescript files in the npm package?

TylorS commented 7 years ago

They are distributed via NPM

https://github.com/cyclejs-community/cyclic-router/blob/master/package.json#L6

If you could provide more information perhaps it'd be easier to know how to help

ricochet1k commented 7 years ago

Source maps in webpack seem to want the original src/ files, which are being ignored by your .npmignore.

Some examples:

ricochet1k commented 7 years ago

Thanks for looking into this by the way.

TylorS commented 7 years ago

Okay, I'll remove the src/ directory from the .npmignore later tonight

kylecordes commented 7 years ago

I think this is fixed and can be closed.