Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinked package.json not visible for JSPM #1597

Closed
TomiS opened this issue Mar 9, 2016 · 3 comments
Closed

Symlinked package.json not visible for JSPM #1597

TomiS opened this issue Mar 9, 2016 · 3 comments

Comments

@TomiS
Copy link

TomiS commented Mar 9, 2016

I have symlinked a package.json file to the project root from a subfolder of the project.

When I run jspm install in project root, I get:
Configuration file path/to/my/subfolder/config.js doesn't exist, create it? [yes]

Wouldn't it be more logical if JSPM would handle symlinks as if they were real files or is there a reasoning behind current behaviour? Now it seems it does not recognize their existence at all and searches subfolders for existing package.json. This happens even after I initialized config.js with . (dot) to get it stay in the root.

Tested with version 0.16.29

@guybedford
Copy link
Member

This would actually be a liftoff issue that it doesn't detected a symlinked package.json. Perhaps it's best just to create two package.json files?

@guybedford
Copy link
Member

(The liftoff issue queue is at https://github.com/js-cli/js-liftoff/issues)

@TomiS
Copy link
Author

TomiS commented Mar 10, 2016

Yep, two package.json files is my workaround, but it causes maintenance overhead. Anywhoo, thanks for answering. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants