* Update to yarn 4, and pin the version

* Use yarn to invoke prettier, as yarn 4 is not setting +x

* Fix a few peer dependency warnings
This commit is contained in:
Damien Elmes 2025-01-26 14:40:17 +11:00 committed by GitHub
parent 2ef46afb48
commit 7884edfd3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7297 additions and 4661 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ node_modules
/extra
yarn-error.log
ts/.svelte-kit
.yarn

1
.yarnrc.yml Normal file
View file

@ -0,0 +1 @@
nodeLinker: node-modules

View file

@ -214,10 +214,11 @@ pub struct Prettier {
impl BuildAction for Prettier {
fn command(&self) -> &str {
"$prettier --cache $mode $pattern"
"$yarn prettier --cache $mode $pattern"
}
fn files(&mut self, build: &mut impl build::FilesHandle) {
build.add_inputs("yarn", inputs![":yarn:bin"]);
build.add_inputs("prettier", inputs![":node_modules:prettier"]);
build.add_inputs("", &self.inputs);
build.add_variable("pattern", r#""**/*.svelte""#);

View file

@ -30,14 +30,14 @@
"@types/jqueryui": "^1.12.13",
"@types/lodash-es": "^4.17.4",
"@types/marked": "^5.0.0",
"@types/node": "^16.10.2",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"caniuse-lite": "^1.0.30001431",
"cross-env": "^7.0.2",
"diff": "^5.0.0",
"dprint": "^0.47.2",
"esbuild": "^0.18.10",
"esbuild": "^0.19.10",
"esbuild-sass-plugin": "^2",
"esbuild-svelte": "^0.8.1",
"eslint": "^8.44.0",
@ -89,5 +89,6 @@
"Chrome 77",
"iOS 14.5"
],
"type": "module"
"type": "module",
"packageManager": "yarn@4.6.0"
}

11946
yarn.lock

File diff suppressed because it is too large Load diff