Skip to content

Avoid Modifying require.paths #16

Open
@fernandoacorreia

Description

@fernandoacorreia

example/Jakefile.js and lib/templates/Jakefile.js.ejs modify require.paths. This was not advised and has been deprecated as of v0.5.4.

See http://nodejs.org/docs/v0.4.8/api/all.html#loading_from_the_require.paths_Folders

require.paths may disappear in a future release.

While it seemed like a good idea at the time, and enabled a lot of useful experimentation, in practice a mutable require.paths list is often a troublesome source of confusion and headaches.

Also see http://nodejs.org/docs/v0.5.4/api/all.html#loading_from_the_global_folders

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions