@nitra/cursor 1.0.4 → 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.
Files changed (2) hide show
  1. package/mdc/bun.mdc +27 -1
  2. package/package.json +1 -1
package/mdc/bun.mdc CHANGED
@@ -13,6 +13,7 @@ version: '1.0'
13
13
  - `bun add -d <pkg>`
14
14
  - `bun remove <pkg>`
15
15
  - `bunx <tool>`
16
+ - `npx <tool>`
16
17
 
17
18
 
18
19
  - Для встановлення залежностей використовуй `bun i`.
@@ -23,7 +24,7 @@ version: '1.0'
23
24
  - Для одноразових CLI-команд використовуй `bunx <tool>`.
24
25
 
25
26
  Заборонено використовувати:
26
- - `npm`, `npx`
27
+ - `npm`
27
28
  - `yarn`
28
29
  - `pnpm`
29
30
 
@@ -36,3 +37,28 @@ Lockfile у репозиторії: `bun.lock`.
36
37
  - У CI та локально запускати скрипти через `bun run`.
37
38
 
38
39
  Якщо в package.json є поля `packageManager`, то прибрати їх, також прибрати всі директорії та файлидля yarn
40
+
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
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "CLI для завантаження cursor-правил Nitra у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",