@nitra/cursor 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mdc/bun.mdc +24 -1
- package/package.json +1 -1
package/mdc/bun.mdc
CHANGED
|
@@ -38,4 +38,27 @@ Lockfile у репозиторії: `bun.lock`.
|
|
|
38
38
|
|
|
39
39
|
Якщо в package.json є поля `packageManager`, то прибрати їх, також прибрати всі директорії та файлидля yarn
|
|
40
40
|
|
|
41
|
-
Якщо в проекті використовується npx, то не заміняти його на bunx, а використовувати npx.
|
|
41
|
+
Якщо в проекті використовується npx, то не заміняти його на bunx, а використовувати npx.
|
|
42
|
+
Коли зміна відбувається в Dockerfile, то використовувати
|
|
43
|
+
```dockerfile
|
|
44
|
+
FROM oven/bun:alpine AS build-env
|
|
45
|
+
```
|
|
46
|
+
замість образу node
|
|
47
|
+
|
|
48
|
+
В Github actions bun повинен налаштований так:
|
|
49
|
+
```yaml
|
|
50
|
+
- uses: oven-sh/setup-bun@v2
|
|
51
|
+
|
|
52
|
+
- name: Cache Bun dependencies
|
|
53
|
+
uses: actions/cache@v4
|
|
54
|
+
with:
|
|
55
|
+
path: |
|
|
56
|
+
~/.bun/install/cache
|
|
57
|
+
node_modules
|
|
58
|
+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
|
|
59
|
+
restore-keys: |
|
|
60
|
+
${{ runner.os }}-bun-
|
|
61
|
+
|
|
62
|
+
- name: Install dependencies
|
|
63
|
+
run: bun install --frozen-lockfile
|
|
64
|
+
```
|