Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dependency without triggering lifecycle script (yarn 4) #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enableScripts: false
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"scripts": {
"test": "echo ok"
},
"dependencies": {
"yuge-slow-npm-pkg": "git+https://github.com/legobeat/yuge-slow-npm-pkg#light"
},
"packageManager": "yarn@4.1.1"
}
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@ __metadata:
"yarn-test-repo@workspace:.":
version: 0.0.0-use.local
resolution: "yarn-test-repo@workspace:."
dependencies:
yuge-slow-npm-pkg: "git+https://github.com/legobeat/yuge-slow-npm-pkg#light"
languageName: unknown
linkType: soft

"yuge-slow-npm-pkg@git+https://github.com/legobeat/yuge-slow-npm-pkg#light":
version: 1.0.0
resolution: "yuge-slow-npm-pkg@https://github.com/legobeat/yuge-slow-npm-pkg.git#commit=6940e29e44922456ab581090aab8015c23b55be0"
checksum: 10c0/1afc62a979afc6ea42a644b3e0527b1381c66ecff6e34b64e99145d866aacad5af68ede2dcb203e8e2605a832abd56c654191758b7af354fdcd9873382e7092a
languageName: node
linkType: hard