Skip to content

Commit 4f108fb

Browse files
committed
Switch package manager to npm
1 parent 251a279 commit 4f108fb

File tree

8 files changed

+13602
-9164
lines changed

8 files changed

+13602
-9164
lines changed

.github/workflows/detect-breaking-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
with:
1414
node-version-file: '.nvmrc'
1515
- name: Install dependencies
16-
run: yarn install
16+
run: npm install
1717
- name: Build plugin
18-
run: yarn build
18+
run: npm run build
1919
- name: Compatibility check
2020
uses: grafana/plugin-actions/is-compatible@a8d2790586995c0112186302a0ebee61f02510a7
2121
with:

.github/workflows/grafana-bench.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/setup-node@v6
1919
with:
2020
node-version-file: '.nvmrc'
21-
cache: 'yarn'
21+
cache: 'npm'
2222

2323
- uses: actions/setup-go@v6
2424
with:
@@ -31,10 +31,10 @@ jobs:
3131
version: latest
3232

3333
- name: Install frontend dependencies
34-
run: yarn install --frozen-lockfile
34+
run: npm ci
3535

3636
- name: Build frontend
37-
run: yarn build
37+
run: npm run build
3838
env:
3939
NODE_OPTIONS: '--max_old_space_size=4096'
4040

@@ -57,7 +57,7 @@ jobs:
5757
us-docker.pkg.dev/grafanalabs-global/docker-grafana-bench-prod/grafana-bench-playwright:v0.6.3 test \
5858
--grafana-url "http://localhost:3000" \
5959
--log-level debug \
60-
--pw-execute "yarn e2e" \
61-
--pw-prepare "yarn install --frozen-lockfile; yarn playwright install" \
60+
--pw-execute "npm run e2e" \
61+
--pw-prepare "npm ci; npx playwright install" \
6262
--test-env-vars "CI=true" \
6363
--test-runner playwright

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"name": "Debug Jest test",
2626
"type": "node",
2727
"request": "launch",
28-
"runtimeExecutable": "yarn",
28+
"runtimeExecutable": "npm",
2929
"runtimeArgs": ["run", "jest", "--runInBand", "${file}"],
3030
"console": "integratedTerminal",
3131
"internalConsoleOptions": "neverOpen",

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ mage build:backend && mage reloadPlugin # builds and reloads the plugin in Grafa
2323

2424
#### Compiling the frontend
2525

26-
You can build and test the frontend by using `yarn`:
26+
You can build and test the frontend by using `npm`:
2727

2828
```sh
29-
yarn test # run all test cases
30-
yarn dev # builds and puts the output at ./dist
29+
npm run test # run all test cases
30+
npm run dev # builds and puts the output at ./dist
3131
```
3232

33-
You can also have `yarn` watch for changes and automatically recompile them:
33+
You can also have `npm` watch for changes and automatically recompile them:
3434

3535
```sh
36-
yarn watch
36+
npm run watch
3737
```
3838

3939
#### Running E2E tests locally
4040

4141
1. Install [K6](https://k6.io/docs/get-started/installation/)
42-
2. Run `yarn test:e2e:local`
42+
2. Run `npm run test:e2e:local`
4343

4444
## Create a pull request
4545

cspell.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"src/dashboards/**",
77
"dist/**",
88
"yarn.lock",
9+
"package-lock.json",
910
"go.sum",
1011
"mage_output_file.go"
1112
],

0 commit comments

Comments
 (0)