@flatkey-ai/cli 0.1.5 → 0.1.7

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.
@@ -1,29 +0,0 @@
1
- import assert from "node:assert/strict";
2
- import { access, readFile, stat } from "node:fs/promises";
3
- import { constants } from "node:fs";
4
- import { test } from "node:test";
5
-
6
- test("package exposes @flatkey-ai/cli flatkey binary", async () => {
7
- const pkg = JSON.parse(await readFile("package.json", "utf8"));
8
- const binStat = await stat("bin/flatkey.js");
9
-
10
- assert.equal(pkg.name, "@flatkey-ai/cli");
11
- assert.equal(pkg.bin.flatkey, "bin/flatkey.js");
12
- assert.ok((binStat.mode & 0o111) !== 0);
13
- });
14
-
15
- test("release channel docs exist", async () => {
16
- await access("README.md", constants.R_OK);
17
- await access("release/homebrew/flatkey.rb", constants.R_OK);
18
- await access("release/deb/README.md", constants.R_OK);
19
- await access("release/msi/README.md", constants.R_OK);
20
- });
21
-
22
- test("github workflow publishes npm with secret token", async () => {
23
- const workflow = await readFile(".github/workflows/npm-publish.yml", "utf8");
24
-
25
- assert.match(workflow, /on:\n\s+workflow_dispatch:/);
26
- assert.match(workflow, /tags:\n\s+- "v\*"/);
27
- assert.match(workflow, /NODE_AUTH_TOKEN: \$\{\{ secrets\.NPM_TOKEN \}\}/);
28
- assert.match(workflow, /npm publish --access public/);
29
- });