Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lerna/create-symlink

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/create-symlink - npm Package Compare versions

Comparing version 3.16.2 to 4.0.0

29

CHANGELOG.md

@@ -6,2 +6,31 @@ # Change Log

# [4.0.0](https://github.com/lerna/lerna/compare/v3.22.1...v4.0.0) (2021-02-10)
### Features
* **deps:** Bump dependencies ([affed1c](https://github.com/lerna/lerna/commit/affed1ce0fce91f01b0a9eafe357db2d985b974f))
* Consume named exports of sibling modules ([63499e3](https://github.com/lerna/lerna/commit/63499e33652bc78fe23751875d74017e2f16a689))
* Drop support for Node v6.x & v8.x ([ff4bb4d](https://github.com/lerna/lerna/commit/ff4bb4da215555e3bb136f5af09b5cbc631e57bb))
* Expose named export ([c1303f1](https://github.com/lerna/lerna/commit/c1303f13adc4cf15f96ff25889b52149f8224c0e))
* Remove default export ([e2f1ec3](https://github.com/lerna/lerna/commit/e2f1ec3dd049d2a89880029908a2aa7c66f15082))
* **deps:** @zkochan/cmd-shim -> cmd-shim@^4.0.2 ([179e2c3](https://github.com/lerna/lerna/commit/179e2c30b5734bb95f8f4005169987231992a525))
* **deps:** fs-extra@^9.0.1 ([2f6f4e0](https://github.com/lerna/lerna/commit/2f6f4e066d5a41b4cd508b3405ac1d0a342932dc))
### BREAKING CHANGES
* The default export has been removed, please use a named export instead.
* Node v6.x & v8.x are no longer supported. Please upgrade to the latest LTS release.
Here's the gnarly one-liner I used to make these changes:
```
npx lerna exec --concurrency 1 --stream -- 'json -I -f package.json -e '"'"'this.engines=this.engines||{};this.engines.node=">= 10.18.0"'"'"
```
(requires `npm i -g json` beforehand)
## [3.16.2](https://github.com/lerna/lerna/compare/v3.16.1...v3.16.2) (2019-07-22)

@@ -8,0 +37,0 @@

10

create-symlink.js
"use strict";
const cmdShim = require("@zkochan/cmd-shim");
const cmdShim = require("cmd-shim");
const fs = require("fs-extra");

@@ -8,3 +8,3 @@ const log = require("npmlog");

module.exports = createSymlink;
module.exports.createSymlink = createSymlink;

@@ -40,3 +40,3 @@ function createSymlink(src, dest, type) {

// If the src doesn't exist yet, create a shim shell script.
return fs.pathExists(src).then(exists => {
return fs.pathExists(src).then((exists) => {
if (exists) {

@@ -57,3 +57,3 @@ return createSymbolicLink(relativeSymlink, dest, type).then(() => fs.chmod(src, 0o755));

// If the src doesn't exist yet, create a temp src so cmd-shim doesn't explode.
return fs.pathExists(src).then(exists => {
return fs.pathExists(src).then((exists) => {
if (exists) {

@@ -69,3 +69,3 @@ return cmdShim(src, dest);

() => fs.remove(src),
err =>
(err) =>
fs.remove(src).then(() => {

@@ -72,0 +72,0 @@ // clean up, but don't swallow error

{
"name": "@lerna/create-symlink",
"version": "3.16.2",
"version": "4.0.0",
"description": "An internal Lerna tool",

@@ -20,3 +20,3 @@ "keywords": [

"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},

@@ -35,7 +35,7 @@ "publishConfig": {

"dependencies": {
"@zkochan/cmd-shim": "^3.1.0",
"fs-extra": "^8.1.0",
"cmd-shim": "^4.1.0",
"fs-extra": "^9.1.0",
"npmlog": "^4.1.2"
},
"gitHead": "d4b1a0e48d1ff241fafa268dbe57256e10f2cdc8"
"gitHead": "4582c476e07dddddd6b2e3ab6e7f52c1f9eed59a"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc