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

yarn-no-save

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-no-save - npm Package Compare versions

Comparing version 1.0.9 to 1.0.34

dist/index.js

57

package.json

@@ -6,19 +6,56 @@ {

"@babel/traverse": "^7.18.9",
"@babel/types": "^7.18.9"
"@babel/types": "^7.18.9",
"single-instance": "^0.0.1"
},
"name": "yarn-no-save",
"version": "1.0.9",
"description": "add --no-save option to yarn cli",
"sideEffects": false,
"version": "1.0.34",
"description": "Enabling --no-save/-N option to Yarn cli commands",
"keywords": [
"yarn",
"no-save",
"nosave",
"npm",
"yarn-no-save",
"yarn-add-no-save",
"yarn-nosave",
"yarn-add-nosave",
"package.json",
"save",
"save-dev"
],
"main": "./src/index.js",
"bin": {
"yarn-no-save": "./src/index.js",
"yns": "./src/index.js"
"yarn-no-save": "./dist/index.js",
"yns": "./dist/index.js",
"yarn-watcher": "./dist/watch.js"
},
"scripts": {
"test": "./src/index.js",
"postinstall": "node ./src/index.js"
"build": "node ./build.js",
"test": "node ./dist/index.js",
"test:watch": "node ./build.js && node ./dist/watch.js",
"test:install": "node ./build.js && node ./dist/install.js",
"prepublish": "node ./build.js",
"install": "node ./dist/index.js && node ./dist/install.js",
"pretest": "node ./build.js"
},
"repository": "git@github.com:shuangwhywhy/yarn-no-save.git",
"author": "qiangyizhou <qiangyizhou@bytedance.com>",
"license": "MIT"
"homepage": "https://github.com/shuangwhywhy/yarn-no-save#readme",
"repository": {
"type": "git",
"url": "https://github.com/shuangwhywhy/yarn-no-save.git"
},
"bugs": {
"url": "https://github.com/shuangwhywhy/yarn-no-save/issues",
"email": "qyz.yswy@hotmail.com"
},
"author": "qiangyizhou <qyz.yswy@hotmail.com>",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"babel-loader": "^8.2.5",
"fs-extra": "^10.1.0",
"webpack": "^5.74.0",
"webpack-shebang-plugin": "^1.1.8"
}
}
# yarn-no-save
add --no-save option to yarn cli
Enabling `--no-save` / `-N` option to **Yarn** cli commands. The option prevents saving to package.json when you do `yarn add` stuff.
# How to Use
1. install yarn
2. $ yarn global add yarn-no-save
3. $ yarn add --no-save xxxxxxxx
1. First you should have yarn installed globally. [https://classic.yarnpkg.com/en/docs/install#mac-stable](https://classic.yarnpkg.com/en/docs/install#mac-stable)
2. install **yarn-no-save** globally:
```bash
$ yarn global add yarn-no-save
```
3. Now you can use **Yarn** with `--no-save` / `-N` option in your command:
```bash
$ yarn add --no-save xxxxxxxx
```
# To Mention
1. The **--no-save / -N** option will be available in help message by typing "`yarn help add`" or "`yarn add --help`".
2. You are free to uninstall any packages installed with `--no-save` / `-N` option by executing "`yarn uninstall xxxxx`" (postuninstall scripts will be executed by doing this, while the same thing won't happen by just deleting the folders from node_modules).
3. You can reset **Yarn** to default at anytime by reinstall yarn:
```bash
$ npm i -g yarn
```
4. If you want `--no-save` option available again after reinstalling **Yarn**, just run the following command again:
```bash
$ yns
```
src/index.js
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