forked from microsoft/lage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* yarn 4 * husky reinit * bumping lint-staged * fixing up the yarn 4 dlx jest * fix script for prettier * use auto line ending * point to exact yarn path * escape yarn path as well * filter out the line that says "Done ..."
- Loading branch information
Showing
22 changed files
with
9,743 additions
and
5,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ lib | |
coverage | ||
.idea/ | ||
**/.docusaurus/ | ||
profile*.json | ||
profile*.json | ||
.yarn/* | ||
!.yarn/releases/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
"files": "*.json5", | ||
"options": { "parser": "json" } | ||
} | ||
] | ||
], | ||
"endOfLine": "auto" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarnPath: .yarn/releases/yarn-4.4.1.cjs | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/cache-github-actions", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/cache", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/format-hrtime", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/globby", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/hasher", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "lage", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/logger", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/reporters", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
}, | ||
{ | ||
"type": "patch", | ||
"comment": "yarn 4", | ||
"packageName": "@lage-run/scheduler", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,9 @@ | |
"docs:build": "yarn --cwd docs build", | ||
"docs:test": "yarn --cwd docs build", | ||
"gh-pages": "gh-pages", | ||
"format": "prettier --write .", | ||
"format": "prettier --write . --", | ||
"format:check": "prettier --check .", | ||
"prepare": "husky install", | ||
"prepare": "husky", | ||
"postinstall": "patch-package" | ||
}, | ||
"devDependencies": { | ||
|
@@ -37,22 +37,24 @@ | |
"beachball": "^2.37.0", | ||
"fast-glob": "3.3.1", | ||
"gh-pages": "^5.0.0", | ||
"husky": "^8.0.3", | ||
"husky": "^9.1.5", | ||
"lage-npm": "npm:[email protected]", | ||
"lint-staged": "^13.2.0", | ||
"lint-staged": "^15.2.10", | ||
"patch-package": "^6.5.1", | ||
"prettier": "^2.8.6", | ||
"syncpack": "^9.0.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "~5.0.3" | ||
}, | ||
"lint-staged": { | ||
"*": "prettier --write" | ||
"*.{ts,js}": "eslint --fix", | ||
"*.{ts,json,md}": "prettier --write" | ||
}, | ||
"syncpack": { | ||
"dependencyTypes": [ | ||
"dev", | ||
"prod" | ||
] | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ export class Monorepo { | |
} | ||
|
||
fs.cpSync(path.resolve(__dirname, "..", "..", "yarn"), path.dirname(this.yarnPath), { recursive: true }); | ||
execa.sync("yarn", ["install"], { cwd: this.root }); | ||
execa.sync(`"${process.execPath}"`, [`"${this.yarnPath}"`, "install"], { cwd: this.root, shell: true }); | ||
} | ||
|
||
generateRepoFiles() { | ||
|
@@ -65,6 +65,7 @@ export class Monorepo { | |
devDependencies: { | ||
lage: path.resolve(__dirname, "..", "..", "..", "lage"), | ||
}, | ||
packageManager: "[email protected]", | ||
}, | ||
"lage.config.js": `module.exports = { | ||
pipeline: { | ||
|
@@ -147,7 +148,7 @@ export class Monorepo { | |
} | ||
|
||
run(command: string, args?: string[], silent?: boolean) { | ||
return execa.sync("yarn", [...(silent === true ? ["--silent"] : []), command, ...(args || [])], { | ||
return execa.sync(`"${process.execPath}"`, [`"${this.yarnPath}"`, ...(silent === true ? ["--silent"] : []), command, ...(args || [])], { | ||
cwd: this.root, | ||
shell: true, | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.