Skip to content

Commit c7d4419

Browse files
committed
replace yarn to pnpm
1 parent a51c0d6 commit c7d4419

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

.github/workflows/vscode.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ jobs:
6262

6363
- name: install and test ./masm-tasm
6464
run: |
65-
yarn
66-
yarn test && yarn test-web
65+
pnpm install
66+
pnpm test
67+
pnpm test-web
6768
working-directory: ./masm-tasm
6869
env:
6970
DISPLAY: ":99.0"
7071

71-
- run: yarn lint
72+
- run: pnpm lint
7273
if: runner.os == 'Linux'
7374

7475
build:
@@ -90,7 +91,7 @@ jobs:
9091
- name: install and package vscode-dosbox
9192
working-directory: ./vscode-dosbox
9293
run: |
93-
yarn
94+
pnpm
9495
node dev/package.js --all
9596
- uses: actions/upload-artifact@v2
9697
with:
@@ -105,7 +106,7 @@ jobs:
105106

106107
- name: Publish
107108
if: success() && startsWith( github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
108-
run: npx vsce publish --yarn
109+
run: npx vsce publish
109110
working-directory: ./masm-tasm
110111
env:
111112
VSCE_PAT: ${{ secrets.VSCE_PAT }}

masm-tasm/.vscodeignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ samples/
2626

2727
.vscodeignore
2828

29-
yarn.lock
3029

3130

masm-tasm/doc/develop.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
git clone https://github.com/dosasm/masm-tasm.git
1010
```
1111

12-
### 1.install nodejs and npm and yarn
12+
### 1.install nodejs and npm and pnpm
1313

1414
the website of nodejs: <http://nodejs.org>, <http://nodejs.cn/>
1515

1616
```sh
1717
sudo apt install nodejs
1818
sudo apt install npm
19-
npm install --global yarn
19+
npm install --global pnpm
2020
```
2121

2222
### 2.install dependence
2323

2424
```sh
25-
yarn install
25+
pnpm install
2626
```
2727

2828
### 3.generate `visx` package
@@ -34,7 +34,7 @@ npx vsce package
3434
### Debug
3535

3636
```sh
37-
yarn watch
37+
pnpm watch
3838
```
3939

4040
Press <kbd>F5</kbd> or Click `run` -> `Start Debugging`

masm-tasm/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@
358358
"run-in-browser": "vscode-test-web --extensionDevelopmentPath=. --extensionPath=../vscode-dosbox .",
359359
"lint": "eslint src --ext ts",
360360
"lint-fix": "eslint src --ext ts --fix",
361-
"vscode:prepublish": "yarn clean && yarn compile"
361+
"vscode:prepublish": "pnpm clean && pnpm compile"
362+
},
363+
"vsce": {
364+
"dependencies": false,
365+
"yarn": false
362366
},
363367
"devDependencies": {
364368
"@types/glob": "^7.2.0",

react-app/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
1212

1313
In the project directory, you can run:
1414

15-
### `yarn start`
15+
### `pnpm start`
1616

1717
Runs the app in the development mode.\
1818
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
1919

2020
The page will reload if you make edits.\
2121
You will also see any lint errors in the console.
2222

23-
### `yarn test`
23+
### `pnpm test`
2424

2525
Launches the test runner in the interactive watch mode.\
2626
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
2727

28-
### `yarn build`
28+
### `pnpm build`
2929

3030
Builds the app for production to the `build` folder.\
3131
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -35,7 +35,7 @@ Your app is ready to be deployed!
3535

3636
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
3737

38-
### `yarn eject`
38+
### `pnpm eject`
3939

4040
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
4141

react-app/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
You can add webfonts, meta tags, or analytics to this file.
4646
The build step will place the bundled scripts into the <body> tag.
4747
48-
To begin the development, run `npm start` or `yarn start`.
49-
To create a production bundle, use `npm run build` or `yarn build`.
48+
To begin the development, run `npm start` or `pnpm start`.
49+
To create a production bundle, use `npm run build` or `pnpm build`.
5050
-->
5151
</body>
5252
</html>

0 commit comments

Comments
 (0)