Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit 21a7ed2

Browse files
committed
refactor: use yarn consistently
1 parent 3b5baab commit 21a7ed2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1. Create Release Notes
44
1. [Draft a new release on Github](https://github.com/prisma/graphqlgen/releases/new)
5-
2. `npm install -g git-release-notes`
5+
2. `yarn global add git-release-notes`
66
3. Get the release notes from executing `.github/make-release-notes.sh`
77
4. Separate them like [here](https://github.com/prisma/graphqlgen/releases/tag/0.5.0) by Features and Fixes and add them to the draft
88
5. Get feedback for the draft

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"scripts": {
33
"prepare": "gitbook install && cp -a node_modules/highlight.js/. ~/.gitbook/versions/3.2.3/node_modules/highlight.js/",
4-
"build": "npm run prepare && gitbook build && mv _book tmp && mkdir _book && mv tmp _book/graphqlgen",
5-
"start": "npm run prepare && gitbook serve"
4+
"build": "yarn prepare && gitbook build && mv _book tmp && mkdir _book && mv tmp _book/graphqlgen",
5+
"start": "yarn prepare && gitbook serve"
66
},
77
"devDependencies": {
88
"gitbook-cli": "2.3.2"

packages/create-graphqlgen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.6.0-rc3",
44
"main": "dist/index.js",
55
"scripts": {
6-
"prepare": "npm run build",
6+
"prepare": "yarn build",
77
"clean": "rimraf dist",
88
"build": "yarn clean && tsc --declaration",
99
"build:watch": "yarn clean && tsc --declaration --watch",

packages/graphqlgen-json-schema/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"dist"
88
],
99
"scripts": {
10-
"prepare": "npm run build",
10+
"prepare": "yarn build",
1111
"build": "rm -rf dist && tsc -d; cp src/schema.json dist",
12-
"test": "npm run build",
12+
"test": "yarn build",
1313
"t": "jest"
1414
},
1515
"devDependencies": {

packages/graphqlgen/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
},
1515
"scripts": {
1616
"clean": "rm -rf ./src/tests/**/tmp && rm -rf ./src/tests/**/generated",
17-
"prepublish": "rm -rf example/node_modules && npm test && npm run build",
17+
"prepublish": "rm -rf example/node_modules && yarn test && yarn build",
1818
"benchmarks": "ts-node benchmarks",
19-
"build": "npm run clean && npm run lint && tsc --declaration",
19+
"build": "yarn clean && yarn lint && tsc --declaration",
2020
"watch": "tsc -w",
2121
"lint": "tslint --project tsconfig.json {src,test}/**/*.ts",
2222
"test": "jest",
2323
"check:types": "yarn tsc --noEmit",
2424
"test:watch": "jest --watch",
25-
"test:ci": "npm run lint && jest --maxWorkers 4",
25+
"test:ci": "yarn lint && jest --maxWorkers 4",
2626
"gen": "ts-node --files src/index.ts"
2727
},
2828
"repository": {

0 commit comments

Comments
 (0)