Skip to content

Commit 8225a01

Browse files
build: revert yarn usage and apply npm instead
1 parent 45fc1b4 commit 8225a01

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint-staged --allow-empty
4+
npm run lint-staged --allow-empty

.lintstagedrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"**/*.{js,jsx,md,mdx,json}": [
3-
"yarn lint"
3+
"npm run lint"
44
]
55
}

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"watch": "babel ./src/ --out-dir ./ --source-maps --watch",
88
"lint:eslint": "eslint \"./src/**/*.js\" --quiet --fix --color --ignore-path .gitignore",
99
"lint:prettier": "prettier \"./src/**/*.js\" --write --ignore-path .gitignore",
10-
"lint": "yarn lint:eslint && yarn lint:prettier",
11-
"test": "yarn lint",
12-
"prepare": "cross-env NODE_ENV=production yarn build",
13-
"validate": "yarn lint",
14-
"ci:validate": "rm -rf node_modules && npm ci && yarn validate",
15-
"prepublishOnly": "yarn ci:validate && yarn build"
10+
"lint": "npm run lint:eslint && npm run lint:prettier",
11+
"test": "npm run lint",
12+
"prepare": "cross-env NODE_ENV=production npm run build",
13+
"validate": "npm run lint",
14+
"ci:validate": "rm -rf node_modules && npm ci && npm run validate",
15+
"prepublishOnly": "npm run ci:validate && npm run build"
1616
},
1717
"homepage": "https://github.com/Epic-Design-Labs/gatsby-source-optimizely/blob/master/README.md",
1818
"repository": {
@@ -36,33 +36,33 @@
3636
"license": "MIT",
3737
"main": "index.js",
3838
"dependencies": {
39-
"axios": "0.27.2",
40-
"gatsby-source-filesystem": "^4.21.1",
39+
"axios": "1.1.3",
40+
"gatsby-source-filesystem": "^4.24.0",
4141
"micro": "^9.4.1",
4242
"qs": "^6.11.0",
4343
"sleep-promise": "^9.1.0",
44-
"winston": "^3.8.1"
44+
"winston": "^3.8.2"
4545
},
4646
"devDependencies": {
47-
"@babel/cli": "^7.18.10",
48-
"@babel/core": "^7.18.13",
49-
"@babel/eslint-parser": "^7.18.9",
50-
"@babel/plugin-transform-runtime": "^7.18.10",
51-
"@babel/runtime": "^7.18.9",
52-
"@commitlint/cli": "^17.1.1",
47+
"@babel/cli": "^7.19.3",
48+
"@babel/core": "^7.19.3",
49+
"@babel/eslint-parser": "^7.19.1",
50+
"@babel/plugin-transform-runtime": "^7.19.1",
51+
"@babel/runtime": "^7.19.4",
52+
"@commitlint/cli": "^17.1.2",
5353
"@commitlint/config-conventional": "^17.1.0",
54-
"babel-preset-gatsby-package": "^2.21.0",
54+
"babel-preset-gatsby-package": "^2.24.0",
5555
"babel-preset-minify": "^0.5.2",
5656
"commitizen": "^4.2.5",
5757
"cross-env": "^7.0.3",
5858
"cz-conventional-changelog": "^3.3.0",
59-
"eslint": "^8.23.0",
59+
"eslint": "^8.25.0",
6060
"eslint-config-prettier": "^8.5.0",
6161
"eslint-plugin-babel": "^5.3.1",
6262
"eslint-plugin-prettier": "^4.2.1",
63-
"eslint-plugin-react": "^7.31.1",
64-
"gatsby": "^4.21.1",
65-
"gatsby-core-utils": "^3.21.0",
63+
"eslint-plugin-react": "^7.31.10",
64+
"gatsby": "^4.24.4",
65+
"gatsby-core-utils": "^3.24.0",
6666
"husky": "^8.0.1",
6767
"lint-staged": "^13.0.3",
6868
"prettier": "^2.7.1",
@@ -92,7 +92,7 @@
9292
},
9393
"lint-staged": {
9494
"**/*.{js,jsx,md,mdx,json}": [
95-
"yarn lint",
95+
"npm run lint",
9696
"git add"
9797
]
9898
},
@@ -101,6 +101,6 @@
101101
},
102102
"volta": {
103103
"node": "18.11.0",
104-
"yarn": "1.22.19"
104+
"npm": "8.19.2"
105105
}
106106
}

0 commit comments

Comments
 (0)