Skip to content

Commit 153b726

Browse files
committed
refactor: Replace yarn with npm
1 parent ea8b5ad commit 153b726

File tree

4 files changed

+15
-3560
lines changed

4 files changed

+15
-3560
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
save-exact=true

.yarnrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"typescript": "5.1.6"
2525
},
2626
"engines": {
27-
"node": ">= 10.9",
28-
"yarn": ">= 1"
27+
"node": ">= 10.9"
2928
},
3029
"files": [
3130
"dist",
@@ -46,24 +45,24 @@
4645
"changelog:commit": "git add CHANGELOG.md && git commit -m \"docs: updated CHANGELOG.md\"",
4746
"clean": "rimraf .nyc_output coverage dist",
4847
"debug": "node --inspect -r ts-node/register ./src/start.ts",
49-
"dist": "yarn clean && yarn build",
50-
"fix": "yarn fix:config && yarn fix:code",
51-
"fix:code": "yarn lint:code --fix --quiet",
52-
"fix:config": "yarn prettier --write",
53-
"lint": "yarn lint:code && yarn lint:config",
48+
"dist": "npm run clean && npm run build",
49+
"fix": "npm run fix:config && npm run fix:code",
50+
"fix:code": "npm run lint:code --fix --quiet",
51+
"fix:config": "npm run prettier --write",
52+
"lint": "npm run lint:code && npm run lint:config",
5453
"lint:code": "eslint --ignore-path .gitignore --ext .js,.jsx,.ts,.tsx --no-error-on-unmatched-pattern .",
55-
"lint:config": "yarn prettier --list-different",
54+
"lint:config": "npm run prettier --list-different",
5655
"postversion": "git push origin && git push origin --tags && npm publish --access public",
5756
"prettier": "prettier --ignore-path .gitignore --loglevel error .",
58-
"preversion": "git checkout main && git pull && yarn && yarn test && yarn dist",
59-
"release:major": "generate-changelog -M -x \"chore,test\" && yarn changelog:commit && npm version major",
60-
"release:minor": "generate-changelog -m -x \"chore,test\" && yarn changelog:commit && npm version minor",
61-
"release:patch": "generate-changelog -p -x \"chore,test\" && yarn changelog:commit && npm version patch",
57+
"preversion": "git checkout main && git pull && npm run && npm run test && npm run dist",
58+
"release:major": "generate-changelog -M -x \"chore,test\" && npm run changelog:commit && npm version major",
59+
"release:minor": "generate-changelog -m -x \"chore,test\" && npm run changelog:commit && npm version minor",
60+
"release:patch": "generate-changelog -p -x \"chore,test\" && npm run changelog:commit && npm version patch",
6261
"start": "ts-node ./src/start.ts",
63-
"test": "yarn test:types && yarn test:unit:coverage",
62+
"test": "npm run test:types && npm run test:unit:coverage",
6463
"test:types": "tsc --noEmit",
6564
"test:unit": "cross-env NODE_ENV=test jest ./src --passWithNoTests",
66-
"test:unit:coverage": "yarn test:unit --coverage"
65+
"test:unit:coverage": "npm run test:unit --coverage"
6766
},
6867
"version": "0.0.0"
6968
}

0 commit comments

Comments
 (0)