Skip to content

Commit 5ab7ea9

Browse files
authored
chore: migrate from npm to yarn (#1251)
1 parent e058503 commit 5ab7ea9

5 files changed

Lines changed: 13783 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
uses: actions/setup-node@v4
5858
with:
5959
node-version: ${{ matrix.node-version }}
60-
- run: npm install --legacy-peer-deps
61-
- run: npm run testBuild
62-
- run: npm test
63-
- run: npm run test:e2e:install
64-
- run: npm run test:e2e
60+
- run: yarn install --frozen-lockfile
61+
- run: yarn testBuild
62+
- run: yarn test
63+
- run: yarn test:e2e:install
64+
- run: yarn test:e2e

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ USER root
88
RUN chown -R default:root /servicemap-ui
99

1010
# Install app dependencies
11-
COPY --chown=default:root --chmod=444 package.json package-lock.json /servicemap-ui/
11+
COPY --chown=default:root --chmod=444 package.json yarn.lock /servicemap-ui/
1212

13-
RUN npm ci --legacy-peer-deps
13+
RUN yarn install --frozen-lockfile
1414

1515
COPY --chown=default:root . /servicemap-ui/
1616

1717
USER default
1818

19-
RUN npm run build
19+
RUN yarn build
2020

2121
USER root
2222

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Requirements
44
Using following:
55
* Node LTS (v22)
6-
* npm (v10)
6+
* yarn (v1)
77
If you are using NVM you can also use `nvm use` to get correct version.
88

99
For development:
@@ -13,41 +13,41 @@ For development:
1313

1414
In the project directory, you can run:
1515

16-
### `npm run dev`
16+
### `yarn dev`
1717

1818
Start dev server and runs the app in the development mode.<br>
1919

20-
### `npm run build`
20+
### `yarn build`
2121

2222
Builds the app for production to the `dist` folder.<br>
2323

24-
### `npm run testBuild`
24+
### `yarn testBuild`
2525

2626
Builds the app in development mode to the `dist` folder.<br>
2727

28-
### `npm start`
28+
### `yarn start`
2929

3030
Runs the app by starting node server using build files.
3131

32-
### `npm test`
32+
### `yarn test`
3333

3434
Launches Jest test runner.<br>
3535

36-
### `npm run test:e2e`
36+
### `yarn test:e2e`
3737
Launches [Playwright](playwright.config.js) test runner and performs browser tests.
3838

3939
## How to use
4040
For development:
41-
- Make sure npm packages are installed by running `npm install --legacy-peer-deps`in project root.
41+
- Make sure yarn packages are installed by running `yarn install` in project root.
4242
- Make sure you have environment variables set. `.env.example` should have all required values so you can copy it to `.env`.
43-
- Then you can start development server using `npm run dev`. Which watches files and updates on code changes.
43+
- Then you can start development server using `yarn dev`. Which watches files and updates on code changes.
4444
- Open the application by loading `localhost:2048` in the browser
4545

4646
To run in production mode:
47-
- Make sure npm packages are installed by running `npm install --legacy-peer-deps`in project root.
47+
- Make sure yarn packages are installed by running `yarn install` in project root.
4848
- Make sure you have environment variables set. `.env.example` should have all required values so you can copy it to `.env`.
49-
- Build files by running `npm run build`
50-
- Then you can run the app with `npm start`
49+
- Build files by running `yarn build`
50+
- Then you can run the app with `yarn start`
5151
- Open the application by loading `localhost:2048` in the browser
5252

5353
To run with docker compose:

src/components/ToolMenu/MeasuringStopButton/__tests__/__snapshots__/MeasuringStopButton.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`<MeasuringStopButton /> should work 1`] = `
44
<div>
55
<button
66
aria-label="Stop measuring"
7-
class="MuiButtonBase-root SMButton css-1g3sd65-MuiButtonBase-root"
7+
class="MuiButtonBase-root Mui-focusVisible SMButton css-1g3sd65-MuiButtonBase-root"
88
color="primary"
99
id="MeasuringStopButton"
1010
margin="0"

0 commit comments

Comments
 (0)