Browserify 需要主应用程序“;package.json“;

Browserify 需要主应用程序“;package.json“;,browserify,package.json,Browserify,Package.json,我正在制作一个小的web应用程序,它将通过npm和git回购提供服务 我想(通过Browserify)阅读主应用程序的“package.json”,它是: 通过Git fork: my-app |-package.json <-- there it is |-src |--app.js <-- ('require from ../package.json') 我的应用程序 |-package.json可能通过网页包?可能通过网页包? user-app |-package.json

我正在制作一个小的web应用程序,它将通过npm和git回购提供服务

我想(通过Browserify)阅读主应用程序的“package.json”,它是:

  • 通过Git fork:

    my-app
    |-package.json <-- there it is
    |-src
    |--app.js <-- ('require from ../package.json')
    
    我的应用程序
    
    |-package.json可能通过网页包?可能通过网页包?
    user-app
    |-package.json <-- it's still here
    |-node_modules
    |--my-module
    |---src
    |----app.js <-- but this guy is now too far ('require from ../../../package.json')