Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate lerna to latest #1120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
node_modules
packages/*/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}-${{ hashFiles('packages/*/package.json') }}
- name: Install & Bootstrap
run: yarn && yarn bootstrap --ci
- name: Install
run: yarn install --frozen-lockfile --non-interactive
- name: Build
run: yarn build
- uses: actions/cache/save@v3
Expand Down Expand Up @@ -162,12 +162,12 @@ jobs:
runs-on: ubuntu-latest
needs: [build-api-reference, send-coverage, lint]
if: |
github.event_name == 'push'
github.event_name == 'push'
&& (
github.ref == 'refs/heads/main'
|| github.ref == 'refs/heads/beta'
|| github.ref == 'refs/heads/alpha'
|| startsWith(github.ref, 'refs/heads/alpha-')
github.ref == 'refs/heads/main'
|| github.ref == 'refs/heads/beta'
|| github.ref == 'refs/heads/alpha'
|| startsWith(github.ref, 'refs/heads/alpha-')
|| startsWith(github.ref, 'refs/heads/beta-')
)
steps:
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [build-api-reference, send-coverage, lint]
steps:
- name: Setup Pages
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This project has been designed with scalability in mind to fit requirements from
## Installation

```
yarn install && yarn bootstrap
yarn install
```

## Who Uses Forest Admin
Expand Down
5 changes: 4 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
],
"version": "0.0.0"
}
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"husky": "^8.0.3",
"jest": "^29.3.1",
"jest-extended": "^3.2.3",
"lerna": "^6.4.1",
"lerna": "^8.1.3",
"markdown-link-check": "^3.10.3",
"multi-semantic-release": "^3.0.1",
"nock": "^13.3.0",
Expand All @@ -37,19 +37,17 @@
"typescript": "^4.9.4"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"build:watch": "lerna run --parallel --no-bail --no-prefix build:watch",
"build:watch": "lerna run --no-bail --no-prefix build:watch",
"build": "lerna run build",
"clean": "lerna run clean && rm -rf coverage api-reference/",
"docs": "typedoc",
"lint": "lerna exec --parallel eslint src test",
"lint:fix": "lerna exec --parallel eslint src test -- --fix",
"lint": "lerna exec eslint src test",
"lint:fix": "lerna exec eslint src test -- --fix",
"prepare": "husky install",
"test": "jest",
"test:coverage": "yarn test --coverage"
},
"workspaces": [
"packages/*",
"!packages/_example/*"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"packages/*"
]
}
8 changes: 4 additions & 4 deletions packages/_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ This package serves as an example agent for Forest Admin. Its purpose is to demo
Clone the whole repository and navigate into the `agent-nodejs` directory. Run the following commands to install all dependencies and auto-link all packages:

```bash
yarn && yarn bootstrap
yarn
```

Start building the project and watch for changes:

```bash
yarn build:watch
```

Then, navigate to the `_example` directory:

```bash
cd packages/_example
```
Expand All @@ -41,7 +41,7 @@ This package serves as an example agent for Forest Admin. Its purpose is to demo

3. **Configure the Agent**

Create a copy of the `.env.example` file and rename it to `.env`. Configure the agent by providing necessary credentials in the `.env` file.
Create a copy of the `.env.example` file and rename it to `.env`. Configure the agent by providing the necessary credentials in the `.env` file.

## Running the Agent

Expand Down
Loading
Loading