Skip to content

Commit 3bbfb21

Browse files
author
SergeyMild
committed
replace yarn with npm
1 parent e79aed4 commit 3bbfb21

47 files changed

Lines changed: 24824 additions & 15336 deletions

Some content is hidden

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

.github/actions/setup/action.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,25 @@ runs:
1010
node-version-file: .nvmrc
1111

1212
- name: Restore dependencies
13-
id: yarn-cache
13+
id: npm-cache
1414
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
1515
with:
1616
path: |
1717
**/node_modules
18-
.yarn/install-state.gz
19-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
18+
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
2019
restore-keys: |
21-
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22-
${{ runner.os }}-yarn-
20+
${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
21+
${{ runner.os }}-npm-
2322
2423
- name: Install dependencies
25-
if: steps.yarn-cache.outputs.cache-hit != 'true'
26-
run: yarn install --immutable
24+
if: steps.npm-cache.outputs.cache-hit != 'true'
25+
run: npm ci
2726
shell: bash
2827

2928
- name: Cache dependencies
30-
if: steps.yarn-cache.outputs.cache-hit != 'true'
29+
if: steps.npm-cache.outputs.cache-hit != 'true'
3130
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3231
with:
3332
path: |
3433
**/node_modules
35-
.yarn/install-state.gz
36-
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
34+
key: ${{ steps.npm-cache.outputs.cache-primary-key }}

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
uses: ./.github/actions/setup
2727

2828
- name: Lint files
29-
run: yarn lint
29+
run: npm run lint
3030

3131
- name: Typecheck files
32-
run: yarn typecheck
32+
run: npm run typecheck
3333

3434
test:
3535
runs-on: ubuntu-latest
@@ -42,7 +42,7 @@ jobs:
4242
uses: ./.github/actions/setup
4343

4444
- name: Run unit tests
45-
run: yarn test --maxWorkers=2 --coverage
45+
run: npm test -- --maxWorkers=2 --coverage
4646

4747
build-library:
4848
runs-on: ubuntu-latest
@@ -55,7 +55,7 @@ jobs:
5555
uses: ./.github/actions/setup
5656

5757
- name: Build package
58-
run: yarn prepare
58+
run: npm run build
5959

6060
build-android:
6161
runs-on: ubuntu-latest
@@ -74,13 +74,13 @@ jobs:
7474
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7575
with:
7676
path: ${{ env.TURBO_CACHE_DIR }}
77-
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
77+
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('package-lock.json') }}
7878
restore-keys: |
7979
${{ runner.os }}-turborepo-android-
8080
8181
- name: Check turborepo cache for Android
8282
run: |
83-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
83+
TURBO_CACHE_STATUS=$(node -p "($(npx turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
8484
8585
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
8686
echo "turbo_cache_hit=1" >> $GITHUB_ENV
@@ -113,7 +113,7 @@ jobs:
113113
env:
114114
JAVA_OPTS: "-XX:MaxHeapSize=6g"
115115
run: |
116-
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
116+
npx turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
117117
118118
build-ios:
119119
runs-on: macos-latest
@@ -135,13 +135,13 @@ jobs:
135135
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
136136
with:
137137
path: ${{ env.TURBO_CACHE_DIR }}
138-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
138+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('package-lock.json') }}
139139
restore-keys: |
140140
${{ runner.os }}-turborepo-ios-
141141
142142
- name: Check turborepo cache for iOS
143143
run: |
144-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
144+
TURBO_CACHE_STATUS=$(node -p "($(npx turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
145145
146146
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
147147
echo "turbo_cache_hit=1" >> $GITHUB_ENV
@@ -163,4 +163,4 @@ jobs:
163163
164164
- name: Build example for iOS
165165
run: |
166-
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
166+
npx turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"

.gitignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,13 @@ buck-out/
6262
android/app/libs
6363
android/keystores/debug.keystore
6464

65-
# Yarn
66-
.yarn/*
67-
!.yarn/patches
68-
!.yarn/plugins
69-
!.yarn/releases
70-
!.yarn/sdks
71-
!.yarn/versions
7265

7366
# Expo
7467
.expo/
7568

7669
# Turborepo
7770
.turbo/
7871

79-
# generated by bob
80-
lib/
8172

8273
# React Native Codegen
8374
ios/generated

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 0 additions & 541 deletions
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

.yarn/releases/yarn-3.6.1.cjs

Lines changed: 0 additions & 874 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)