Skip to content

Commit

Permalink
build: switch to yarn 3 with legacy node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohan Raj Rajamanickam committed May 2, 2022
1 parent cc06f2e commit 041242d
Show file tree
Hide file tree
Showing 4 changed files with 802 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ jspm_packages/
# Output of 'npm pack'
*.tgz

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Yarn Integrity file
.yarn-integrity

Expand Down Expand Up @@ -113,4 +121,4 @@ packages/dbaeumer*
.netlify

# Vscode History Extension
.history
.history
785 changes: 785 additions & 0 deletions .yarn/releases/yarn-3.2.0.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yarnPath: .yarn/releases/yarn-3.2.0.cjs
# Use legacy mode with node modules
nodeLinker: node-modules
npmRegistryServer: https://registry.yarnpkg.com
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "salesforcedx-vscode",
"name": "salesforcedx-vscode-mono-repo",
"repository": "forcedotcom/salesforcedx-vscode",
"license": "BSD-3-Clause",
"private": true,
Expand All @@ -10,10 +10,6 @@
"node": ">=16.13.0",
"yarn": ">=1.22.15"
},
"dependencies": {
"node": "^16.13.0",
"npm": "^8.1.2"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
Expand Down Expand Up @@ -49,7 +45,7 @@
"webpack-cli": "3.3.12"
},
"scripts": {
"postinstall": "lerna bootstrap --no-ci -- --no-package-lock && node scripts/reformat-with-prettier && npm run check:peer-deps && npm run check:typescript-project-references",
"postinstall": "node scripts/reformat-with-prettier && npm run check:peer-deps && npm run check:typescript-project-references",
"bootstrap": "lerna bootstrap --no-ci -- --no-package-lock && node scripts/reformat-with-prettier",
"circleci:artifacts": "node scripts/download-vsix-from-circleci.js",
"commit-init": "commitizen init cz-conventional-changelog --save-dev --save-exact --force",
Expand Down Expand Up @@ -101,5 +97,6 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
},
"packageManager": "[email protected]"
}

0 comments on commit 041242d

Please sign in to comment.