bored-art-40741
05/16/2016, 8:44 PM# TODO(Chris Pesto): Preserve compatibility with normal package.json files by dropping existing
# dependency fields. This lets Pants accept working package.json files from standalone projects
# that can be "npm install"ed without Pants. Taking advantage of this means expressing
# dependencies in package.json and BUILD, though. In the future, work to make
# Pants more compatible with package.json to eliminate duplication if you still want your
# project to "npm install" through NPM by itself.
dependenciesToRemove = [
'dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'
]
for dependencyType in dependenciesToRemove:
package.pop(dependencyType, None)
package['dependencies'] = dependencies
bored-art-40741
05/16/2016, 8:44 PMbored-art-40741
05/16/2016, 8:45 PMbright-dinner-81701
05/16/2016, 8:46 PMbright-dinner-81701
05/16/2016, 8:46 PMbored-art-40741
05/16/2016, 8:46 PMbright-dinner-81701
05/16/2016, 8:46 PMbored-art-40741
05/16/2016, 8:46 PMbored-art-40741
05/16/2016, 8:46 PMbright-dinner-81701
05/16/2016, 8:47 PMbored-art-40741
05/16/2016, 8:47 PMbored-art-40741
05/16/2016, 8:47 PMdependencies
and devDependencies
already expressed in my package.json?witty-crayon-22786
05/16/2016, 8:48 PMpip freeze
and ruby lock
, etcbored-art-40741
05/16/2016, 8:48 PMbored-art-40741
05/16/2016, 8:48 PMbored-art-40741
05/16/2016, 8:48 PMbright-dinner-81701
05/16/2016, 8:52 PMbright-dinner-81701
05/16/2016, 8:52 PMbored-art-40741
05/16/2016, 8:53 PMbright-dinner-81701
05/16/2016, 8:53 PMbored-art-40741
05/16/2016, 8:53 PMbright-dinner-81701
05/16/2016, 8:54 PMbored-art-40741
05/16/2016, 8:55 PMbored-art-40741
05/16/2016, 8:55 PMbright-dinner-81701
05/16/2016, 8:55 PMbright-dinner-81701
05/16/2016, 8:55 PMbright-dinner-81701
05/16/2016, 8:55 PMbored-art-40741
05/16/2016, 8:55 PMnpm install
bare in the target's directory, do I need to do something to tell it about package.json, or to choose dependencies
rather than devDependencies
?bright-dinner-81701
05/16/2016, 8:55 PMbright-dinner-81701
05/16/2016, 8:56 PM