connect-deps
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,4 +0,13 @@ | ||
## 0.0.1 (2019-07-11) | ||
## [0.0.2](https://github.com/hugomrdias/connect-deps/compare/v0.0.1...v0.0.2) (2019-07-11) | ||
### Bug Fixes | ||
* move cache folder outside node_modules ([0a52bff](https://github.com/hugomrdias/connect-deps/commit/0a52bff)) | ||
## [0.0.1](https://github.com/hugomrdias/connect-deps/compare/2a809c5...v0.0.1) (2019-07-11) | ||
### Features | ||
@@ -5,0 +14,0 @@ |
@@ -158,3 +158,3 @@ #!/usr/bin/env node | ||
all.push(del(path.join(cwd, '.connect-deps.json'))); | ||
all.push(del(path.join(value.path, 'node_modules/.connect-deps-cache'), { force: true })); | ||
all.push(del(path.join(value.path, '.connect-deps-cache'), { force: true })); | ||
} | ||
@@ -179,5 +179,5 @@ | ||
console.log(`Connecting ${config.name}...`); | ||
const name = `./node_modules/.connect-deps-cache/${config.name}-${config.version}-${Date.now()}.tgz`; | ||
const name = `./.connect-deps-cache/${config.name}-${config.version}-${Date.now()}.tgz`; | ||
fs.mkdirSync(path.join(config.path, 'node_modules/.connect-deps-cache'), { recursive: true }); | ||
fs.mkdirSync(path.join(config.path, '.connect-deps-cache'), { recursive: true }); | ||
try { | ||
@@ -184,0 +184,0 @@ await execa('yarn', ['pack', '--filename', name], { cwd: config.path }); |
{ | ||
"name": "connect-deps", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "My astonishing module", | ||
@@ -5,0 +5,0 @@ "repository": "hugomrdias/connect-deps", |
@@ -5,2 +5,9 @@ # connect-deps [![NPM Version](https://img.shields.io/npm/v/connect-deps.svg)](https://www.npmjs.com/package/connect-deps) [![NPM Downloads](https://img.shields.io/npm/dt/connect-deps.svg)](https://www.npmjs.com/package/connect-deps) [![NPM License](https://img.shields.io/npm/l/connect-deps.svg)](https://www.npmjs.com/package/connect-deps) [![Build Status](https://travis-ci.org/hugomrdias/connect-deps.svg?branch=master)](https://travis-ci.org/hugomrdias/connect-deps) [![codecov](https://codecov.io/gh/hugomrdias/connect-deps/badge.svg?branch=master)](https://codecov.io/gh/hugomrdias/connect-deps?branch=master) | ||
When you do a yarn/npm link in the current repo, it creates a symlink to the dependency in your machine and this gives you the wrong dependency tree, because node_modules inside the linked dependency will be the one already in the there not the one that you would get from a clean yarn install in the current repo. | ||
This can became problematic in some cases, to solve this problem this package "links" (we call it connect) a dependency by running `yarn pack` in the connected dependency and `yarn add file:/path/to/pack.tgz` in the current repo. | ||
> NOTICE: yarn support only, PRs welcome for npm support! | ||
## Usage | ||
@@ -11,3 +18,3 @@ | ||
connect-deps link ../package-linkded | ||
# after you can `connect` to stay linked | ||
# after, you can `connect` to stay in sync | ||
connect-deps connect | ||
@@ -14,0 +21,0 @@ # or use watch mode to listen to changes and update the current repo |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11547
57