Skip to content

Commit

Permalink
vx: upgrade yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed May 10, 2023
1 parent 7ef6653 commit edc1c6d
Show file tree
Hide file tree
Showing 29 changed files with 16,360 additions and 11,133 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: bahmutov/npm-install@v1
- run: yarn install --immutable
- name: Test
run: yarn test
- name: Lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Jest coverage report
uses: ArtiomTr/jest-coverage-report-action@v2
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: bahmutov/npm-install@v1
- name: Install
run: yarn install --immutable
- name: Test
run: yarn test
- name: Lint
run: yarn lint
- name: Set npmrc
run: echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: NPM Identity
run: |
echo "npmAuthToken: $NPM_TOKEN" >> ~/.yarnrc.yml
- name: Release
run: yarn release
env:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,6 @@ dist
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*

.pnp.*

Empty file added .husky/_/husky.sh
Empty file.
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.5.1.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 @@
yarnPath: .yarn/releases/yarn-3.5.1.cjs

nodeLinker: node-modules

nmMode: hardlinks-local
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The structure of the repo is as follows

Before working on a big change on Vest’s codebase, it is a good idea to first discuss the change in an issue to make sure it fits the project’s goals and future plans.

This project uses `yarn`. When working on this project you should first clone it locally, install its dependencies and run the tests (`yarn test`) to make sure everything works. You should regularly run the tests during development to make sure they still pass and no functionality has been affected by your changes.
This project uses `yarn`. When working on this project you should first clone it locally, install its dependencies and run the tests (`vx test`) to make sure everything works. You should regularly run the tests during development to make sure they still pass and no functionality has been affected by your changes.

Vest’s functionality is fully documented and fully tested. Please make sure to update the documentation and tests when making a functional change.

Expand Down Expand Up @@ -57,20 +57,20 @@ The naming convention for a test file is `moduleName.test.ts`.

#### Running tests

To run tests, you need to run `yarn test`. This will run all tests in all packages. The tests are being run by jest.
To run tests, you need to run `vx test`. This will run all tests in all packages. The tests are being run by jest.

You can narrow it down by specifying the package name:

`yarn test -p vest`
`vx test vest`

Normal jest options can be passed to the test command.

`yarn test -p vest --watch someFileName`
`vx test --watch`

### Building your changes

To build your changes, you need to run `yarn build`. This will build all packages.
You can also run `yarn build -p packageName` to build only one package.
To build your changes, you need to run `vx build`. This will build all packages.
You can also run `vx build -p <packageName>` to build only one package.

This will generate all distribution files and type declarations.

Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"scripts": {
"build": "vx build",
"test": "vx prepare && jest",
"test": "vx test",
"release": "vx release",
"lint": "eslint . --ignore-path .gitignore",
"prepare": "husky install",
"dev": "vx dev",
"website:start": "yarn workspace website start",
"website:build": "yarn workspace website build",
"jest": "vx prepare && jest",
"postinstall": "vx build --buildSingle"
},
"prettier": {
Expand All @@ -35,18 +34,18 @@
"eslint-plugin-jest": "^27.1.5",
"husky": "^8.0.1",
"lodash": "^4.17.21",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.1",
"tsc": "^2.0.4",
"tslib": "^2.4.1",
"typescript": "^4.8.4",
"vx": "./vx",
"vx": "workspace:*",
"wait": "^0.4.2"
},
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/ealush/vest.git"
},
"version": "0.0.0"
"version": "0.0.0",
"packageManager": "[email protected]"
}
12 changes: 6 additions & 6 deletions packages/anyone/tsconfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/context/tsconfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/n4s/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.0.0",
"version": "4.100.100",
"license": "MIT",
"main": "./dist/cjs/n4s.js",
"types": "./types/n4s.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/n4s/src/runtime/runtimeRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type Rules<E = Record<string, unknown>> = n4s.EnforceCustomMatchers<
/* eslint-disable @typescript-eslint/no-namespace, @typescript-eslint/no-empty-interface */
declare global {
namespace n4s {
// @ts-ignore - interface is used for type inference
interface IRules<E> extends Rules<E> {}
}
}
96 changes: 48 additions & 48 deletions packages/n4s/tsconfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/vast/tsconfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit edc1c6d

Please sign in to comment.