videogular2 icon indicating copy to clipboard operation
videogular2 copied to clipboard

NPM package folder structure broken in 7.0.0

Open sliceofbytes opened this issue 6 years ago • 4 comments

Description

Latest release breaks expected build folders. Compiled files should output to the base directory for the release. (my fault likely).

Expected Behavior

Compiled file output is the base directory for the npm package.

Actual Behavior

Compiled files are being output in a compiled folder

Attachments

Folder Structure Difference
(https://i.imgur.com/ti5E8Fj.png)
Differences in package layout between 6.4.0 and 7.0.0

Quickfix is to copy the files in the node_modules/videogular2/compiled folder out into the base directory of node_modules/videogular2. I'm still trying to track down the issue. Running npm pack locally gives me the expected output.

I've also confirmed that compiled folder is still included in the .gitignore and the .npmignore

sliceofbytes avatar Jul 09 '19 19:07 sliceofbytes

Hello,

What is the status about this one, maybe we should just move the files then ?

jderboven avatar Jul 15 '19 09:07 jderboven

For code consuming the library are we fine to just use import { VgCoreModule } from 'videogular2/compiled/core'; (and similar for other Vg modules)?

Seems to work ok locally, just wondering if there are any caveats to that? If we see issues on our test site I'll update this (although I imagine this might be fixed before we get there).

jgbpercy avatar Jul 16 '19 09:07 jgbpercy

@jgbpercy in my opinion it would be better to keep the actual folder structure as is ... Imagine how painful migrating might be for some users

jderboven avatar Jul 18 '19 07:07 jderboven

@jgbpercy in my opinion it would be better to keep the actual folder structure as is ... Imagine how painful migrating might be for some users

Yes, I agree. Sorry my reply wasn't clear - I meant if we are using 7.0.0 until the fix is done, will importing from compiled work (temporarily) or are there deeper issues that anyone knows of?

jgbpercy avatar Jul 18 '19 13:07 jgbpercy