Skip to content

Commit

Permalink
upgrade to yarn v3 (#545)
Browse files Browse the repository at this point in the history
* upgrade to yarn v3

* update scripts and cli commands

* fix: set version from sources

* refactor: remove unnecessary gitignores

* fix: follow yarn docs suggestion for gitignore
  • Loading branch information
sachinraja authored Aug 10, 2021
1 parent b398152 commit ae00918
Show file tree
Hide file tree
Showing 15 changed files with 16,004 additions and 11,404 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Hide .yarn from GitHub's language detection
/.yarn/** linguist-vendored
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: yarn install, lint, and test
run: |
yarn install --ignore-scripts
yarn prepublishOnly
yarn install --mode=skip-build
yarn prepack
env:
CI: true
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ a.js

.__fixtures
__fixtures/**/node_modules

# yarn
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
631 changes: 631 additions & 0 deletions .yarn/releases/yarn-sources.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nmMode: hardlinks-global

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-sources.cjs
7 changes: 0 additions & 7 deletions __tests__/__fixtures/babel/macro-gql/package.json

This file was deleted.

7 changes: 0 additions & 7 deletions __tests__/__fixtures/babel/macro-load/package.json

This file was deleted.

7 changes: 0 additions & 7 deletions __tests__/__fixtures/babel/plugin/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions __tests__/__fixtures/hmr/package.json

This file was deleted.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
"babel-plugin-macros"
],
"license": "MIT",
"bin": {
"graphql-let": "bin/graphql-let.js"
},
"bin": "bin/graphql-let.js",
"main": "index.js",
"files": [
"bin",
Expand Down Expand Up @@ -188,6 +186,7 @@
"clean": "rimraf dist",
"test": "jest",
"build": "yarn clean && yarn compile",
"prepublishOnly": "yarn lint && yarn typecheck && yarn build && yarn test"
}
"prepack": "yarn lint && yarn typecheck && yarn build && yarn test"
},
"packageManager": "yarn@3.0.0"
}
6 changes: 0 additions & 6 deletions src/__fixtures/gen/1_basic/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions src/__fixtures/gen/6_babel/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions src/__fixtures/gen/8_remove-obsolete/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions src/__fixtures/gen/9_use-types/package.json

This file was deleted.

Loading

0 comments on commit ae00918

Please sign in to comment.