Skip to content

Commit f9449b4

Browse files
committed
chore: update yarn to v4
1 parent 02b0510 commit f9449b4

File tree

4 files changed

+3552
-2604
lines changed

4 files changed

+3552
-2604
lines changed

Diff for: .gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ dist/
33
.vscode/
44
package-lock.json
55
/pkg
6-
/pkg.tgz
6+
/pkg.tgz
7+
DEBUG-*
8+
/.yarn

Diff for: .yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

Diff for: package.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@
44
"main": "dist/index.js",
55
"type": "module",
66
"scripts": {
7-
"prepare": "husky install",
7+
"postinstall": "husky install",
88
"build": "rimraf dist && tsc -p tsconfig.build.json",
99
"build:main": "tsc -p tsconfig.build.json",
1010
"dev": "tsc -p tsconfig.build.json --watch",
11-
"lint:raw": "eslint --ext .ts --ext .js --ext .tsx --ext .jsx --ignore-pattern dist",
12-
"lint": "yarn lint:raw .",
13-
"lint-fix": "yarn lint --fix",
14-
"license-validate": "yarn sofie-licensecheck"
11+
"lint:raw": "run eslint --ext .ts --ext .js --ext .tsx --ext .jsx --ignore-pattern dist",
12+
"lint": "run lint:raw .",
13+
"lint-fix": "run lint --fix",
14+
"eslint": "./node_modules/.bin/eslint",
15+
"prettier": "./node_modules/.bin/prettier"
1516
},
1617
"author": "Peter Stather",
1718
"license": "MIT",
1819
"prettier": "@companion-module/tools/.prettierrc.json",
1920
"lint-staged": {
2021
"*.{css,json,md,scss}": [
21-
"prettier --write"
22+
"run prettier --write"
2223
],
2324
"*.{ts,tsx,js,jsx}": [
24-
"yarn lint:raw --fix"
25+
"run lint:raw --fix"
2526
]
2627
},
2728
"engines": {
@@ -41,5 +42,6 @@
4142
"lint-staged": "^13.0.4",
4243
"rimraf": "^3.0.2",
4344
"typescript": "~4.9"
44-
}
45+
},
46+
"packageManager": "[email protected]"
4547
}

0 commit comments

Comments
 (0)