link-tilde

2.0.0 • Public • Published

Link-Tilde

Link Tilde creates a symlink in node_modules/~ to your configured directory, so you don't have to do voodoo to get ESLint and Flowtype to get nicer import paths.

Installation

npm install --save link-tilde

Setup

Merge this into your package.json file

{
  "tildeDirectory": "./src",
  "scripts": {
    "postinstall": "link-tilde"
  }
}

and run npx link-tilde manually (first time).

Usage

After the setup, you can start requiring modules like ~/something in your project, and they should work without an issue.

License

The contents of this repository/package are licensed under the terms of the MIT License. See the LICENSE file for more info.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    0
  • 1.0.0
    313
  • 0.0.1
    0

Package Sidebar

Install

npm i link-tilde

Weekly Downloads

202

Version

2.0.0

License

MIT

Unpacked Size

5 kB

Total Files

5

Last publish

Collaborators

  • steelbrain