17.11.1 • Published 2 years ago

@ogre-tools/linkable v17.11.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Linkable

A substitute for $ npm link which extends library yalc with ability to link to multiple modules using wildcard-paths.

Reinventing $ npm link is necessary, because it stumbles when symlinks created by it lead to places which have their local node_modules, which will unnaturally take precedence over peerDependencies causing poisonous multiple instances in runtime.

The downside of linkable is that, unlike npm link, linkable requires linkable-push to "refresh" the targets of linking to those linking.

Usage

  1. In linking source:
    1. $ npm install --save-dev @ogre-tools/linkable
    2. Add scripts: { "postinstall": "linkable" } to package.json.
    3. Add lines to .gitignore for new stuff related only for local development:
      1. .linkable.json
      2. .yalc
      3. yalc.lock
    4. Create a configuration file: .linkable.json to project root with your preference of paths to local module directories under development, eg.:
[
  "../some-module",
  "/some-monorepo/packages/**"
]
  1. In linking target:

    1. Also $ npm install --save-dev @ogre-tools/linkable
    2. Add scripts: { "postbuild": "linkable-push" } to package.json.
    3. $ npm build
  2. $ npm install in linking source will now create "live" yalc-links to packages defined in .linkable.json. When the target packages are linkable-push:ed as result from being built, the source(s) will pick up the changes.

18.0.1

2 years ago

18.0.0

2 years ago

17.10.0

2 years ago

17.11.0

2 years ago

17.11.1

2 years ago

17.7.0

2 years ago

17.6.0

2 years ago

17.9.0

2 years ago

17.8.0

2 years ago

17.3.0

2 years ago

17.2.0

2 years ago

17.1.1

2 years ago

17.5.0

2 years ago

17.1.0

2 years ago

17.0.0

2 years ago

15.9.0

2 years ago

15.8.1

2 years ago

15.8.0

2 years ago

17.5.1

2 years ago

16.1.1

2 years ago

16.1.0

2 years ago

16.0.0

2 years ago

16.1.2

2 years ago

15.7.0

2 years ago

15.6.1

2 years ago

15.6.0

2 years ago