Skip to content

Commit f120b0b

Browse files
committed
switch from lerna/yarn to pnpm
1 parent 74fa23e commit f120b0b

File tree

47 files changed

+28754
-12468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+28754
-12468
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# No wasted processing
22
**/node_modules
33
**/dist
4-
**/.yarn
54
**/tsconfig.tsbuildinfo
65
**/gen
76
**/trace

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ jobs:
1515
node-version: '16.x'
1616
registry-url: 'https://registry.npmjs.org'
1717
- name: Install dependencies
18-
run: yarn install --frozen-lockfile
18+
run: pnpm run install --frozen-lockfile
1919
- name: Install chromedriver for windows
20-
run: npm_config_platform=win32 yarn run install
20+
run: npm_config_platform=win32 pnpm run install
2121
working-directory: packages/selenium-ide/node_modules/electron-chromedriver
2222
- name: Build all JS
23-
run: yarn build
23+
run: pnpm run build
2424
- name: Publish non IDE packages to npm
25-
run: npx lerna publish --canary --yes --no-verify-access from-package
25+
run: pnpm -r publish --no-git-checks
2626
env:
2727
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2828
- name: Install electron-builder dependencies
29-
run: yarn global add dmg-license
29+
run: npm install -g dmg-license
3030
- name: Build selenium-ide binaries
31-
run: yarn build:electron
31+
run: pnpm run build:electron
3232
- name: Set env from current release
3333
run: >
3434
echo "SIDE_RELEASE_VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ build
66
.idea
77
selenium-ide.pem
88
selenium-ide.crx
9-
yarn-error.log
109
dist/
1110
.web-extension-id
1211
*.log

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
strict-peer-dependencies=false
2+
shamefully-hoist=true

.travis.yml

-24
This file was deleted.

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ To build manually, you must have the below prerequisites installed and follow th
2525

2626
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
2727
- [NodeJS v16 or later](https://nodejs.org/en/download/)
28-
- [Yarn](https://yarnpkg.com/en/docs/install)
28+
- [Pnpm](https://pnpm.io/installation)
2929

3030
#### Building
3131

3232
1. `git clone https://github.com/SeleniumHQ/selenium-ide` - Clone the IDE repo
3333
2. `cd selenium-ide` - Navigate into the IDE folder
34-
3. `yarn` - Install dependencies
35-
4. `yarn build` - Build the app
36-
5. `yarn start` - Run the app
34+
3. `pnpm -r i` - Install dependencies
35+
4. `pnpm run build` - Build the app
36+
5. `pnpm run start` - Run the app
3737

3838
## What now?
3939

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"packages/*"
55
],
66
"version": "4.0.0-alpha.1",
7-
"npmClient": "yarn"
7+
"npmClient": "pnpm"
88
}

package.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,29 @@
44
"license": "Apache-2.0",
55
"private": true,
66
"scripts": {
7-
"start": "cd packages/selenium-ide && yarn start",
7+
"start": "cd packages/selenium-ide && pnpm run start",
88
"build": "run-s build:ts build:ide",
9-
"build:electron": "lerna run --scope @seleniumhq/selenium-ide --loglevel verbose build:electron",
10-
"build:ide": "lerna run --scope @seleniumhq/selenium-ide --loglevel verbose build:webpack",
9+
"build:electron": "pnpm run --filter @seleniumhq/selenium-ide build:electron",
10+
"build:ide": "pnpm run --filter @seleniumhq/selenium-ide build:webpack",
1111
"build:ts": "tsc --build --verbose",
1212
"clean": "rimraf packages/*/build packages/*/dist packages/*/node_modules packages/*/tsconfig.tsbuildinfo node_modules",
1313
"clean:nuke": "git clean -fdx",
1414
"test": "jest",
1515
"test:e2e": "jest --testMatch \"**/packages/**/__tests__/**/*.e2e.js\"",
16-
"lint": "yarn lint:scripts",
16+
"lint": "pnpm run lint:scripts",
1717
"lint:scripts": "eslint --ignore-pattern node_modules --ignore-pattern third-party --ignore-pattern dist --ignore-pattern build --ignore-pattern json --ext .ts,.tsx --ext .js packages/",
1818
"test:side-runner": "./node_modules/@seleniumhq/side-runner/dist/bin.js ./tests/examples/simple-parent.side",
1919
"typecheck": "tsc --noEmit --composite false",
2020
"watch": "run-p watch:ts watch:webpack",
21-
"watch:webpack": "lerna run --parallel --stream --scope @seleniumhq/selenium-ide --loglevel verbose watch",
21+
"watch:webpack": "pnpm run --stream --filter @seleniumhq/selenium-ide watch",
2222
"watch:ts": "tsc --build --verbose --watch"
2323
},
2424
"engines": {
2525
"node": "16.x"
2626
},
27-
"files": [],
28-
"workspaces": {
29-
"packages": ["packages/*"]
30-
},
27+
"workspaces": [
28+
"packages/*"
29+
],
3130
"devDependencies": {
3231
"@babel/cli": "^7.17.6",
3332
"@babel/core": "^7.17.8",
@@ -61,7 +60,6 @@
6160
"jasmine-core": "^4.0.1",
6261
"jest": "^27.5.1",
6362
"jest-cli": "27.5.1",
64-
"lerna": "^4.0.0",
6563
"npm-run-all": "^4.1.5",
6664
"prettier": "^2.6.0",
6765
"rimraf": "^3.0.2",

packages/browser-info/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "@seleniumhq/browser-info",
33
"version": "4.0.0",
4-
"private": true,
54
"description": "Get information about installed browsers",
65
"author": "Tomer <[email protected]>",
76
"homepage": "http://github.com/SeleniumHQ/selenium-ide",
87
"license": "Apache-2.0",
98
"scripts": {
109
"build": "tsc",
1110
"clean": "rm -rf dist tsconfig.tsbuildinfo node_modules",
12-
"prepublishOnly": "yarn clean && yarn build",
11+
"prepublishOnly": "pnpm run clean && pnpm run build",
1312
"watch": "tsc --watch"
1413
},
1514
"main": "dist/index.js",

packages/code-export-csharp-commons/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"export"
1010
],
1111
"license": "Apache-2.0",
12-
"private": false,
1312
"scripts": {
1413
"build": "babel -d dist src --ignore=__test__",
15-
"watch": "yarn build -w"
14+
"watch": "pnpm run build"
1615
},
1716
"main": "dist/index.js",
1817
"devDependencies": {
1918
"@babel/cli": "^7.4.4",
19+
"@babel/core": "^7.17.8",
2020
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
2121
"@babel/preset-env": "^7.4.5"
2222
}

0 commit comments

Comments
 (0)