@capgo/cli 3.14.65 → 3.14.69
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/.github/workflows/build.yml +13 -15
- package/.github/workflows/bump_version.yml +14 -21
- package/CHANGELOG.md +28 -0
- package/build.mjs +23 -0
- package/bun.lockb +0 -0
- package/dist/index.js +65153 -1
- package/package.json +27 -30
- package/src/api/app.ts +1 -1
- package/src/api/channels.ts +1 -1
- package/src/api/crypto.ts +1 -1
- package/src/api/devices_override.ts +1 -1
- package/src/api/versions.ts +1 -1
- package/src/app/add.ts +4 -4
- package/src/app/debug.ts +4 -2
- package/src/app/info.ts +2 -2
- package/src/app/list.ts +1 -1
- package/src/app/set.ts +3 -3
- package/src/bundle/check.ts +1 -1
- package/src/bundle/cleanup.ts +1 -1
- package/src/bundle/decrypt.ts +1 -1
- package/src/bundle/unlink.ts +1 -1
- package/src/bundle/upload.ts +5 -8
- package/src/bundle/zip.ts +2 -2
- package/src/channel/set.ts +1 -1
- package/src/index.ts +0 -4
- package/src/init.ts +2 -2
- package/src/key.ts +1 -1
- package/src/login.ts +2 -2
- package/src/utils.ts +10 -8
- package/tsconfig.json +20 -8
- package/webpack.config.js +0 -34
|
@@ -10,34 +10,32 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
name: "Build code and release"
|
|
12
12
|
steps:
|
|
13
|
-
- name:
|
|
14
|
-
uses: actions/checkout@
|
|
15
|
-
- uses: pnpm/action-setup@v2
|
|
13
|
+
- name: Checkout
|
|
14
|
+
uses: actions/checkout@v4
|
|
16
15
|
with:
|
|
17
|
-
|
|
18
|
-
- name:
|
|
19
|
-
uses:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
- name: Setup bun
|
|
18
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
20
19
|
with:
|
|
21
|
-
|
|
22
|
-
cache: "pnpm"
|
|
20
|
+
bun-version: latest
|
|
23
21
|
- name: Install dependencies
|
|
24
22
|
id: install_code
|
|
25
|
-
run:
|
|
23
|
+
run: bun install --frozen-lockfile
|
|
26
24
|
- name: Lint
|
|
27
25
|
id: lint_code
|
|
28
|
-
run:
|
|
26
|
+
run: bun lint
|
|
29
27
|
- name: Build
|
|
30
28
|
id: build_code
|
|
31
|
-
run:
|
|
29
|
+
run: bun run build
|
|
32
30
|
- name: Run
|
|
33
31
|
id: run_cli
|
|
34
32
|
run: node dist/index.js --help
|
|
35
|
-
- uses:
|
|
36
|
-
if:
|
|
33
|
+
- uses: JS-DevTools/npm-publish@v3
|
|
34
|
+
if: ${{ !contains(github.ref, '-alpha.') }}
|
|
37
35
|
with:
|
|
38
36
|
token: ${{ secrets.NPM_TOKEN }}
|
|
39
|
-
- uses:
|
|
40
|
-
if:
|
|
37
|
+
- uses: JS-DevTools/npm-publish@v3
|
|
38
|
+
if: ${{ contains(github.ref, '-alpha.') }}
|
|
41
39
|
with:
|
|
42
40
|
token: ${{ secrets.NPM_TOKEN }}
|
|
43
41
|
tag: next
|
|
@@ -8,26 +8,22 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
bump-version:
|
|
11
|
-
if:
|
|
11
|
+
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
name: "Bump version and create changelog with standard version"
|
|
14
14
|
steps:
|
|
15
|
-
- name:
|
|
16
|
-
uses: actions/checkout@
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
17
|
with:
|
|
18
18
|
fetch-depth: 0
|
|
19
19
|
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
|
|
20
|
-
-
|
|
20
|
+
- name: Setup bun
|
|
21
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
21
22
|
with:
|
|
22
|
-
version:
|
|
23
|
-
- name: Use Node.js
|
|
24
|
-
uses: actions/setup-node@v3
|
|
25
|
-
with:
|
|
26
|
-
node-version: 18
|
|
27
|
-
cache: "pnpm"
|
|
23
|
+
bun-version: latest
|
|
28
24
|
- name: Install dependencies
|
|
29
25
|
id: install_code
|
|
30
|
-
run:
|
|
26
|
+
run: bun install --frozen-lockfile
|
|
31
27
|
- name: Git config
|
|
32
28
|
run: |
|
|
33
29
|
git config --local user.name "github-actions[bot]"
|
|
@@ -45,19 +41,16 @@ jobs:
|
|
|
45
41
|
git pull $remote_repo $CURRENT_BRANCH
|
|
46
42
|
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
|
|
47
43
|
create-cache:
|
|
48
|
-
if:
|
|
44
|
+
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
|
|
49
45
|
runs-on: ubuntu-latest
|
|
50
46
|
name: "Create global cache on main branch"
|
|
51
47
|
steps:
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- name: Use Node.js
|
|
57
|
-
uses: actions/setup-node@v3
|
|
48
|
+
- name: Checkout
|
|
49
|
+
uses: actions/checkout@v4
|
|
50
|
+
- name: Setup bun
|
|
51
|
+
uses: oven-sh/setup-bun@v1.1.1
|
|
58
52
|
with:
|
|
59
|
-
|
|
60
|
-
cache: "pnpm"
|
|
53
|
+
bun-version: latest
|
|
61
54
|
- name: Install dependencies
|
|
62
55
|
id: install_code
|
|
63
|
-
run:
|
|
56
|
+
run: bun install --frozen-lockfile
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.14.69](https://github.com/Cap-go/capgo-cli/compare/v3.14.68...v3.14.69) (2024-02-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* use new npm CI ([4bb5534](https://github.com/Cap-go/capgo-cli/commit/4bb553468f1d8b82f88a340cab9d28d914a614e0))
|
|
11
|
+
|
|
12
|
+
### [3.14.68](https://github.com/Cap-go/capgo-cli/compare/v3.14.67...v3.14.68) (2024-02-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* CI use not deprecated ([173dea7](https://github.com/Cap-go/capgo-cli/commit/173dea71e5812bc0d7c3d2b05a20489b00a8a8e2))
|
|
18
|
+
|
|
19
|
+
### [3.14.67](https://github.com/Cap-go/capgo-cli/compare/v3.14.66...v3.14.67) (2024-02-10)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* CI build ([6fcba71](https://github.com/Cap-go/capgo-cli/commit/6fcba71280864d81b0ddab6c62b1d3289fd0aa11))
|
|
25
|
+
|
|
26
|
+
### 3.14.66 (2024-02-10)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* CI ([c57026d](https://github.com/Cap-go/capgo-cli/commit/c57026d07d9d5d2d26725d37f79a0ed3b1f860a3))
|
|
32
|
+
|
|
5
33
|
### [3.14.65](https://github.com/Cap-go/capgo-cli/compare/v3.14.64...v3.14.65) (2024-02-08)
|
|
6
34
|
|
|
7
35
|
|
package/build.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild'
|
|
2
|
+
|
|
3
|
+
// Replace 'your-external-dependencies-here' with actual externals from your project
|
|
4
|
+
const external = [];
|
|
5
|
+
|
|
6
|
+
esbuild.build({
|
|
7
|
+
entryPoints: ['src/index.ts'],
|
|
8
|
+
bundle: true,
|
|
9
|
+
platform: 'node',
|
|
10
|
+
target: 'node20',
|
|
11
|
+
external,
|
|
12
|
+
outdir: 'dist',
|
|
13
|
+
sourcemap: process.env.NODE_ENV === 'development',
|
|
14
|
+
banner: {
|
|
15
|
+
js: '#!/usr/bin/env node',
|
|
16
|
+
},
|
|
17
|
+
define: {
|
|
18
|
+
'process.env.SUPA_DB': '"production"',
|
|
19
|
+
},
|
|
20
|
+
loader: {
|
|
21
|
+
'.ts': 'ts',
|
|
22
|
+
},
|
|
23
|
+
}).catch(() => process.exit(1));
|
package/bun.lockb
CHANGED
|
Binary file
|