1.1.7 • Published 5 years ago

npm-self-link v1.1.7

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

npm-self-link

CLI tool to bootstrap a node package, allowing it to depend on itself.

Bootstrapping is the concept of building something using the thing itself as a part of the process. npm packages can't literally add dependencies on themselves, but npm-self-link makes use of npm link to allow them to do so.

installation

# using yarn
yarn add --dev npm-self-link

# using npm
npm install --save-dev npm-self-link

usage

Simply run the command in your terminal:

npm-self-link

Note: you must run the command again after each npm install, which does not preserve package links.

or add it to an npm script in your package.json:

{
  "scripts": {
    "pretest": "npm-self-link",
    "test": "node tests.js"
  }
}

Generally you should run npm-self-link prior to any process where your package will import (or require) itself.

see also

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago