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

installed packages do not seem to be included in output #181

Closed
jackboberg opened this issue Apr 15, 2016 · 8 comments
Closed

installed packages do not seem to be included in output #181

jackboberg opened this issue Apr 15, 2016 · 8 comments

Comments

@jackboberg
Copy link
Contributor

Trying to track down errors we are seeing in deploys on Modulus. Here is an example that shows that maybe meteor build is not honoring the root package.json dependencies...?

[~/sample-apps/meteor]
› meteor create simple-todos
Created a new Meteor app in 'simple-todos'.

To run your new app:
  cd simple-todos
  meteor

If you are new to Meteor, try some of the learning resources here:
  https://www.meteor.com/learn


[~/sample-apps/meteor]
› cd simple-todos

[~/sample-apps/meteor/simple-todos]
› meteor npm i left-pad
left-pad@1.0.2 node_modules/left-pad

[~/sample-apps/meteor/simple-todos]
› cat package.json
{
  "name": "simple-todos",
  "private": true,
  "scripts": {
    "start": "meteor run"
  },
  "dependencies": {
    "left-pad": "~1.0.2",
    "meteor-node-stubs": "~0.2.0"
  }
}

[~/sample-apps/meteor/simple-todos]
› demeteorizer
Demeteorizing application...

WARNING: The output directory is under your source tree.
         Your generated files may get interpreted as source code!
         Consider building into a different directory instead
         meteor build ../output

Demeteorization complete.

[~/sample-apps/meteor/simple-todos]
› cd .demeteorized

[~/sample-apps/meteor/simple-todos/.demeteorized]
› ag left-pad

left-pad is nowhere to be found in my output...

@fiveisprime
Copy link
Collaborator

It's very likely that the issue is that the CLI is skipping the node_modules directory. Try deploying with the --include-modules or -m flag.

@theworkflow
Copy link
Contributor

Even though our meteor build image respects the root package.json, wouldn't this still be a problem with the meteor build command?

@jackboberg
Copy link
Contributor Author

@fiveisprime This is all local. I'm trying to demonstrate that the node_modules directory produced by meteor build (and therefore demeteorizer) does not take into account the root package.json.

@theworkflow
Copy link
Contributor

Does XervoIO/docker-build-meteor#12 resolve this issue? Since we can't really force the meteor build command to do anything, we added the logic in the build image.

@theworkflow
Copy link
Contributor

@jackboberg @fiveisprime I don't see this as an issue anymore. Do we want to close this?

@jackboberg
Copy link
Contributor Author

@theworkflow How is it resolved? We made changes to the Modulus build servers to mitigate this, but the issue still exists, no?

@theworkflow
Copy link
Contributor

I wouldn't think so because this is only a wrapper around the meteor build command. Per their documentation, they don't even install the root dependencies. If we want this module to handle that then we can make that happen. I just thought it was outside of what the meteor build command does.

@jackboberg
Copy link
Contributor Author

this entire project is about wrapping meteor build to make it more safe and consistent..this issue seems like exactly the kind of thing demeteorizer should handle IMO.

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

No branches or pull requests

3 participants