@gjsify/system-accounts 0.64.45 → 0.64.47

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The accounts a user already set up on their system: find them, read their mail server settings, log in without asking for a password again. The interface is the capabilities a caller needs; a driver per platform maps the system's account store onto them ([ADR 0095](../../../docs/adr/0095-system-accounts-are-asked-by-capability.md)).
4
4
 
5
- Part of the [gjsify](https://github.com/gjsify/gjsify) project. **Tier 3 (experimental, ADR 0003)**: new, one driver, no promise yet.
5
+ Part of the [gjsify](https://github.com/gjsify/gjsify) project. **Tier 3 (experimental, ADR 0003)**: new, two Linux drivers, no promise yet.
6
6
 
7
7
  ## Installation
8
8
 
@@ -45,7 +45,7 @@ for (const account of await accounts.listAccounts('mail')) {
45
45
 
46
46
  | Platform | State |
47
47
  |---|---|
48
- | Linux, GNOME | **driver**: GNOME Online Accounts through `libgoa` (`gi://Goa?version=1.0&optional`). A host without the typelib still starts and reports empty capabilities |
48
+ | Linux, GNOME | **driver**: GNOME Online Accounts through `libgoa` (`gi://Goa?version=1.0&optional`) when the typelib is present, otherwise straight over D-Bus (`org.gnome.OnlineAccounts`, Gio only). Flatpak runtimes ship no libgoa (org.gnome.Platform 51: none), so a sandboxed app with `--talk-name=org.gnome.OnlineAccounts` takes the D-Bus path. With no daemon reachable both answer empty capabilities-style: no accounts, `no-account-store`, retried on the next call |
49
49
  | Linux without GOA, macOS, Windows | no driver; empty capabilities. Whether a platform offers a usable account store to third-party apps is **unexplored**, not ruled out |
50
50
  | Android, iOS, browser | not served (`gjsify.runtimes`: only `gjs` is `native`) |
51
51
 
@@ -56,6 +56,7 @@ IMAP and SMTP passwords are looked up under the ids GOA keeps them under (`imap-
56
56
  `libgoa` has no constructor that takes a connection: `Goa.Client.new` dials the session bus. `src/fake-goa.ts` therefore exports the interfaces it calls (`ObjectManager`, `PasswordBased`, `OAuth2Based`, and the few bus methods a client needs) on a peer-to-peer `Gio.DBusServer` and points the session address at it, so the driver runs libgoa's own client code with no GNOME session, no real account and no keyring. Dummy secrets are compared, never printed.
57
57
 
58
58
  - GLib caches the session connection per process. Run the suite through `test:gjs`, which starts it with a dead bus path; the fake refuses to go on if the process is already bound to a real bus, so a developer's accounts never reach a test.
59
+ - `src/dbus.ts` (the D-Bus driver) sits behind an `AccountStore` interface, so `dbus.spec.ts` asserts it against a fake on Node and GJS; `src/dbus-gio.ts` is the thin Gio object-manager client, covered for the unreachable bus only. A test against a real daemon is not registered: `test:gjs` pins a dead bus on purpose.
59
60
  - The mapping from account fields to the contract (host/port splitting, `tls`/`starttls`/`none` from the two flags and the port, which password ids to try) is pure and runs on Node too.
60
61
  - Not covered: a real session bus, a real provider (the OAuth2 path has run against the fake only), and a host whose `libgoa` is genuinely missing (the empty-capabilities path is tested by passing no namespace).
61
62
  - The `&optional` import costs a top-level await in the bundle that reaches it, and a `@gjsify/unit` run wedges on it (ADR 0085 clause 5). The specs therefore reach the driver (`src/goa.ts`) directly; only `createSystemAccounts` (`src/system-accounts.ts`) carries the flag.
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";import{GOA_NAMESPACE as e}from"./dbus.js";import t from"gi://Gio?version=2.0";import n from"gi://GLib?version=2.0";const r=5e3;function proxyOf(e,t){return e.get_interface(`org.gnome.OnlineAccounts.${t}`)??void 0}function wrap(e){return{properties(t){let n=proxyOf(e,t);if(!n)return;let r={};for(let e of n.get_cached_property_names()??[])r[e]=n.get_cached_property(e)?.deep_unpack();return r},call(r,i,a){let o=proxyOf(e,r);return o?new Promise(e=>{let r=a.length?new n.Variant(`(${`s`.repeat(a.length)})`,[...a]):null;o.call(i,r,t.DBusCallFlags.NONE,-1,null,(t,n)=>{try{e(o.call_finish(n).deep_unpack())}catch{e(void 0)}})}):Promise.resolve(void 0)}}}async function connectSessionBus(i=r){let a=new t.Cancellable,o=n.timeout_add(n.PRIORITY_DEFAULT,i,()=>(a.cancel(),n.SOURCE_REMOVE));try{let n=await new Promise((n,r)=>{t.DBusObjectManagerClient.new_for_bus(t.BusType.SESSION,t.DBusObjectManagerClientFlags.NONE,e,`/org/gnome/OnlineAccounts`,null,a,(e,i)=>{try{n(t.DBusObjectManagerClient.new_for_bus_finish(i))}catch(e){r(e)}})});return n.get_name_owner()?{objects:()=>n.get_objects().map(wrap)}:void 0}catch{return}finally{n.Source.remove(o)}}export{r as CONNECT_TIMEOUT_MS,connectSessionBus};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";import{accountFrom as e,mailSettingsFrom as t,passwordIds as n}from"./mapping.js";import{isUnavailable as r}from"./no-account-store.js";const i=`org.gnome.OnlineAccounts`,unavailable=e=>({kind:`unavailable`,reason:e}),str=(e,t)=>{let n=e?.[t];return typeof n==`string`?n:``},bool=(e,t)=>e?.[t]===!0;function accountOf(t){let n=t.properties(`Account`);if(n)return e({id:str(n,`Id`),provider:str(n,`ProviderType`),providerName:str(n,`ProviderName`),identity:str(n,`Identity`),label:str(n,`PresentationIdentity`),present:{mail:!!t.properties(`Mail`),calendar:!!t.properties(`Calendar`),contacts:!!t.properties(`Contacts`),files:!!t.properties(`Files`)},disabled:{mail:bool(n,`MailDisabled`),calendar:bool(n,`CalendarDisabled`),contacts:bool(n,`ContactsDisabled`),files:bool(n,`FilesDisabled`)}})}function createDbusAccounts({connect:e,now:i=Date.now}){let a,store=async()=>{a??=e();let t=await a;return t||(a=void 0),t};async function find(e){let t=await store();return t?t.objects().find(t=>str(t.properties(`Account`),`Id`)===e.id)??unavailable(`unknown-account`):unavailable(`no-account-store`)}return{capabilities:()=>({services:[`mail`,`calendar`,`contacts`,`files`],credentials:[`password`,`oauth2`]}),async listAccounts(e){let t=await store();if(!t)return[];let n=t.objects().flatMap(e=>accountOf(e)??[]);return e?n.filter(t=>t.services.includes(e)):n},async getMailSettings(e){let n=await find(e);if(r(n))return n;let i=n.properties(`Mail`);return i?t({emailAddress:str(i,`EmailAddress`),name:str(i,`Name`),imapSupported:bool(i,`ImapSupported`),imap:{host:str(i,`ImapHost`),userName:str(i,`ImapUserName`),useSsl:bool(i,`ImapUseSsl`),useTls:bool(i,`ImapUseTls`)},smtpSupported:bool(i,`SmtpSupported`),smtp:{host:str(i,`SmtpHost`),userName:str(i,`SmtpUserName`),useSsl:bool(i,`SmtpUseSsl`),useTls:bool(i,`SmtpUseTls`),authenticate:bool(i,`SmtpUseAuth`)}})??unavailable(`not-supported`):unavailable(`not-supported`)},async getCredentials(e,t){let a=await find(e);if(r(a))return a;if(a.properties(`OAuth2Based`)){let[e,t]=await a.call(`OAuth2Based`,`GetAccessToken`,[])??[];return typeof e!=`string`||!e||typeof t!=`number`?unavailable(`credentials-unavailable`):{kind:`oauth2`,token:e,expiresAt:i()+t*1e3}}if(!a.properties(`PasswordBased`))return unavailable(`not-supported`);for(let e of n(t)){let[t]=await a.call(`PasswordBased`,`GetPassword`,[e])??[];if(typeof t==`string`&&t)return{kind:`password`,secret:t}}return unavailable(`credentials-unavailable`)}}}export{i as GOA_NAMESPACE,createDbusAccounts};
package/lib/esm/goa.js CHANGED
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{enabledServices as e,mailSettingsFrom as t,passwordIds as n}from"./mapping.js";import{isUnavailable as r,noAccountStore as i}from"./no-account-store.js";import a from"gi://GLib?version=2.0";import o from"gi://Gio?version=2.0";const unavailable=e=>({kind:`unavailable`,reason:e});function newClient(e,t){return new Promise((n,r)=>{e.Client.new(t,(t,i)=>{try{n(e.Client.new_finish(i))}catch(e){r(e)}})})}async function connect(e,t){let n=new o.Cancellable,r=a.timeout_add(a.PRIORITY_DEFAULT,t,()=>(n.cancel(),a.SOURCE_REMOVE));try{return await newClient(e,n)}catch{return}finally{a.Source.remove(r)}}function secretOf(e,t){return new Promise(n=>{e.call_get_password(t,null,(t,r)=>{try{let[t,i]=e.call_get_password_finish(r);n(t&&i?i:void 0)}catch{n(void 0)}})})}function tokenOf(e){return new Promise(t=>{e.call_get_access_token(null,(n,r)=>{try{let[n,i,a]=e.call_get_access_token_finish(r);t(n&&i?[i,a]:void 0)}catch{t(void 0)}})})}function toAccount(t){let n=t.get_account();if(n)return{id:n.id??``,provider:n.provider_type??``,providerName:n.provider_name??``,identity:n.identity??``,label:n.presentation_identity??``,services:e({mail:!!t.get_mail(),calendar:!!t.get_calendar(),contacts:!!t.get_contacts(),files:!!t.get_files()},{mail:!!n.mail_disabled,calendar:!!n.calendar_disabled,contacts:!!n.contacts_disabled,files:!!n.files_disabled})}}function createGoaAccounts({goa:e,now:a=Date.now,connectTimeoutMs:o=5e3}){if(!e)return i;let s,client=async()=>{s??=connect(e,o);let t=await s;return t||(s=void 0),t};async function find(e){let t=await client();return t?t.lookup_by_id(e.id)??unavailable(`unknown-account`):unavailable(`no-account-store`)}return{capabilities:()=>({services:[`mail`,`calendar`,`contacts`,`files`],credentials:[`password`,`oauth2`]}),async listAccounts(e){let t=await client();if(!t)return[];let n=t.get_accounts().flatMap(e=>toAccount(e)??[]);return e?n.filter(t=>t.services.includes(e)):n},async getMailSettings(e){let n=await find(e);if(r(n))return n;let i=n.get_mail();return i?t({emailAddress:i.email_address??``,name:i.name??``,imapSupported:i.imap_supported,imap:{host:i.imap_host??``,userName:i.imap_user_name??``,useSsl:i.imap_use_ssl,useTls:i.imap_use_tls},smtpSupported:i.smtp_supported,smtp:{host:i.smtp_host??``,userName:i.smtp_user_name??``,useSsl:i.smtp_use_ssl,useTls:i.smtp_use_tls,authenticate:i.smtp_use_auth}})??unavailable(`not-supported`):unavailable(`not-supported`)},async getCredentials(e,t){let i=await find(e);if(r(i))return i;let o=i.get_oauth2_based();if(o){let e=await tokenOf(o);if(!e)return unavailable(`credentials-unavailable`);let[t,n]=e;return{kind:`oauth2`,token:t,expiresAt:a()+n*1e3}}let s=i.get_password_based();if(!s)return unavailable(`not-supported`);for(let e of n(t)){let t=await secretOf(s,e);if(t!==void 0)return{kind:`password`,secret:t}}return unavailable(`credentials-unavailable`)}}}export{createGoaAccounts};
1
+ import"./_virtual/_rolldown/runtime.js";import{accountFrom as e,mailSettingsFrom as t,passwordIds as n}from"./mapping.js";import{isUnavailable as r,noAccountStore as i}from"./no-account-store.js";import a from"gi://Gio?version=2.0";import o from"gi://GLib?version=2.0";const unavailable=e=>({kind:`unavailable`,reason:e});function newClient(e,t){return new Promise((n,r)=>{e.Client.new(t,(t,i)=>{try{n(e.Client.new_finish(i))}catch(e){r(e)}})})}async function connect(e,t){let n=new a.Cancellable,r=o.timeout_add(o.PRIORITY_DEFAULT,t,()=>(n.cancel(),o.SOURCE_REMOVE));try{return await newClient(e,n)}catch{return}finally{o.Source.remove(r)}}function secretOf(e,t){return new Promise(n=>{e.call_get_password(t,null,(t,r)=>{try{let[t,i]=e.call_get_password_finish(r);n(t&&i?i:void 0)}catch{n(void 0)}})})}function tokenOf(e){return new Promise(t=>{e.call_get_access_token(null,(n,r)=>{try{let[n,i,a]=e.call_get_access_token_finish(r);t(n&&i?[i,a]:void 0)}catch{t(void 0)}})})}function toAccount(t){let n=t.get_account();if(n)return e({id:n.id??``,provider:n.provider_type??``,providerName:n.provider_name??``,identity:n.identity??``,label:n.presentation_identity??``,present:{mail:!!t.get_mail(),calendar:!!t.get_calendar(),contacts:!!t.get_contacts(),files:!!t.get_files()},disabled:{mail:!!n.mail_disabled,calendar:!!n.calendar_disabled,contacts:!!n.contacts_disabled,files:!!n.files_disabled}})}function createGoaAccounts({goa:e,now:a=Date.now,connectTimeoutMs:o=5e3}){if(!e)return i;let s,client=async()=>{s??=connect(e,o);let t=await s;return t||(s=void 0),t};async function find(e){let t=await client();return t?t.lookup_by_id(e.id)??unavailable(`unknown-account`):unavailable(`no-account-store`)}return{capabilities:()=>({services:[`mail`,`calendar`,`contacts`,`files`],credentials:[`password`,`oauth2`]}),async listAccounts(e){let t=await client();if(!t)return[];let n=t.get_accounts().flatMap(e=>toAccount(e)??[]);return e?n.filter(t=>t.services.includes(e)):n},async getMailSettings(e){let n=await find(e);if(r(n))return n;let i=n.get_mail();return i?t({emailAddress:i.email_address??``,name:i.name??``,imapSupported:i.imap_supported,imap:{host:i.imap_host??``,userName:i.imap_user_name??``,useSsl:i.imap_use_ssl,useTls:i.imap_use_tls},smtpSupported:i.smtp_supported,smtp:{host:i.smtp_host??``,userName:i.smtp_user_name??``,useSsl:i.smtp_use_ssl,useTls:i.smtp_use_tls,authenticate:i.smtp_use_auth}})??unavailable(`not-supported`):unavailable(`not-supported`)},async getCredentials(e,t){let i=await find(e);if(r(i))return i;let o=i.get_oauth2_based();if(o){let e=await tokenOf(o);if(!e)return unavailable(`credentials-unavailable`);let[t,n]=e;return{kind:`oauth2`,token:t,expiresAt:a()+n*1e3}}let s=i.get_password_based();if(!s)return unavailable(`not-supported`);for(let e of n(t)){let t=await secretOf(s,e);if(t!==void 0)return{kind:`password`,secret:t}}return unavailable(`credentials-unavailable`)}}}export{createGoaAccounts};
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";function splitHostPort(e){let t=e.trim(),n=/^\[([^\]]+)\](?::(\d*))?$/.exec(t);if(n)return{host:n[1],port:parsePort(n[2])};let r=t.indexOf(`:`);return r===-1||r!==t.lastIndexOf(`:`)?{host:t}:{host:t.slice(0,r),port:parsePort(t.slice(r+1))}}function parsePort(e){if(!e||!/^\d+$/.test(e))return;let t=Number.parseInt(e,10);return t>=1&&t<=65535?t:void 0}const e={imap:993,smtp:465},t={imap:{tls:993,starttls:143,none:143},smtp:{tls:465,starttls:587,none:25}};function securityFromFlags(t,n,r,i){return n?`tls`:r?`starttls`:i===e[t]?`tls`:`none`}function serverSettingsFrom(e,n){let{host:r,port:i}=splitHostPort(n.host);if(!r)return;let a=securityFromFlags(e,n.useSsl,n.useTls,i);return{host:r,port:i??t[e][a],security:a,...n.authenticate&&n.userName?{username:n.userName}:{}}}function mailSettingsFrom(e){let t=e.imapSupported?serverSettingsFrom(`imap`,{...e.imap,authenticate:!0}):void 0,n=e.smtpSupported?serverSettingsFrom(`smtp`,e.smtp):void 0;if(!(!t&&!n))return{sender:{address:e.emailAddress,...e.name?{name:e.name}:{}},...t?{imap:t}:{},...n?{smtp:n}:{}}}function enabledServices(e,t){return[`mail`,`calendar`,`contacts`,`files`].filter(n=>e[n]&&!t[n])}function passwordIds(e){return e===`imap`?[`imap-password`,`password`,``]:[`smtp-password`,`imap-password`,`password`,``]}export{enabledServices,mailSettingsFrom,passwordIds,securityFromFlags,serverSettingsFrom,splitHostPort};
1
+ import"./_virtual/_rolldown/runtime.js";function splitHostPort(e){let t=e.trim(),n=/^\[([^\]]+)\](?::(\d*))?$/.exec(t);if(n)return{host:n[1],port:parsePort(n[2])};let r=t.indexOf(`:`);return r===-1||r!==t.lastIndexOf(`:`)?{host:t}:{host:t.slice(0,r),port:parsePort(t.slice(r+1))}}function parsePort(e){if(!e||!/^\d+$/.test(e))return;let t=Number.parseInt(e,10);return t>=1&&t<=65535?t:void 0}const e={imap:993,smtp:465},t={imap:{tls:993,starttls:143,none:143},smtp:{tls:465,starttls:587,none:25}};function securityFromFlags(t,n,r,i){return n?`tls`:r?`starttls`:i===e[t]?`tls`:`none`}function serverSettingsFrom(e,n){let{host:r,port:i}=splitHostPort(n.host);if(!r)return;let a=securityFromFlags(e,n.useSsl,n.useTls,i);return{host:r,port:i??t[e][a],security:a,...n.authenticate&&n.userName?{username:n.userName}:{}}}function mailSettingsFrom(e){let t=e.imapSupported?serverSettingsFrom(`imap`,{...e.imap,authenticate:!0}):void 0,n=e.smtpSupported?serverSettingsFrom(`smtp`,e.smtp):void 0;if(!(!t&&!n))return{sender:{address:e.emailAddress,...e.name?{name:e.name}:{}},...t?{imap:t}:{},...n?{smtp:n}:{}}}function enabledServices(e,t){return[`mail`,`calendar`,`contacts`,`files`].filter(n=>e[n]&&!t[n])}function passwordIds(e){return e===`imap`?[`imap-password`,`password`,``]:[`smtp-password`,`imap-password`,`password`,``]}function accountFrom(e){return{id:e.id,provider:e.provider,providerName:e.providerName,identity:e.identity,label:e.label,services:enabledServices(e.present,e.disabled)}}export{accountFrom,enabledServices,mailSettingsFrom,passwordIds,securityFromFlags,serverSettingsFrom,splitHostPort};
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{createGoaAccounts as e}from"./goa.js";import t from"gi://Goa?version=1.0&optional";function createSystemAccounts(){return e({goa:t})}export{createSystemAccounts};
1
+ import"./_virtual/_rolldown/runtime.js";import{createDbusAccounts as e}from"./dbus.js";import{connectSessionBus as t}from"./dbus-gio.js";import{createGoaAccounts as n}from"./goa.js";import r from"gi://Goa?version=1.0&optional";function createSystemAccounts(){return r?n({goa:r}):e({connect:()=>t()})}export{createSystemAccounts};
@@ -0,0 +1,9 @@
1
+ import { type AccountStore } from './dbus.js';
2
+ /**
3
+ * The manager client has no timeout of its own: against a session bus that accepts the
4
+ * connection and never answers, the call does not return. A dead bus fails in milliseconds,
5
+ * so this only bounds the hung one (same value and reason as the libgoa driver).
6
+ */
7
+ export declare const CONNECT_TIMEOUT_MS = 5000;
8
+ /** The store, or `undefined` when the session bus is unreachable, the name is absent or nothing answered. */
9
+ export declare function connectSessionBus(timeoutMs?: number): Promise<AccountStore | undefined>;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { SystemAccounts } from './types.js';
2
+ export declare const GOA_NAMESPACE = "org.gnome.OnlineAccounts";
3
+ export type Properties = Readonly<Record<string, unknown>>;
4
+ /** One exported account object: its interfaces' properties and their methods. */
5
+ export interface AccountObject {
6
+ /** Properties of `org.gnome.OnlineAccounts.<name>`, or `undefined` when the object lacks the interface. */
7
+ properties(name: string): Properties | undefined;
8
+ /** Calls a method of that interface; the reply's out-arguments, or `undefined` when the call fails. */
9
+ call(name: string, method: string, args: readonly string[]): Promise<readonly unknown[] | undefined>;
10
+ }
11
+ export interface AccountStore {
12
+ objects(): readonly AccountObject[];
13
+ }
14
+ export interface DbusOptions {
15
+ /** Connects to the daemon; `undefined` when the bus or the name is unreachable or never answered. */
16
+ readonly connect: () => Promise<AccountStore | undefined>;
17
+ readonly now?: () => number;
18
+ }
19
+ export declare function createDbusAccounts({ connect, now }: DbusOptions): SystemAccounts;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -1,4 +1,4 @@
1
- import type { AccountService, ConnectionSecurity, CredentialPurpose, MailSettings, ServerSettings } from './types.js';
1
+ import type { Account, AccountService, ConnectionSecurity, CredentialPurpose, MailSettings, ServerSettings } from './types.js';
2
2
  export interface HostPort {
3
3
  readonly host: string;
4
4
  readonly port?: number;
@@ -42,3 +42,14 @@ export declare function enabledServices(present: Readonly<Record<AccountService,
42
42
  * IMAP password because one login often serves both and the store keeps it once.
43
43
  */
44
44
  export declare function passwordIds(purpose: CredentialPurpose): readonly string[];
45
+ export interface AccountFields {
46
+ readonly id: string;
47
+ readonly provider: string;
48
+ readonly providerName: string;
49
+ readonly identity: string;
50
+ readonly label: string;
51
+ readonly present: Readonly<Record<AccountService, boolean>>;
52
+ readonly disabled: Readonly<Record<AccountService, boolean>>;
53
+ }
54
+ /** The contract's `Account` from an account store's flat fields. */
55
+ export declare function accountFrom(fields: AccountFields): Account;
@@ -1,3 +1,7 @@
1
1
  import type { SystemAccounts } from './types.js';
2
- /** The Linux driver on the host's libgoa, or the no-store answer when the host has none. */
2
+ /**
3
+ * The Linux driver on the host's libgoa; without the typelib (a Flatpak runtime ships none)
4
+ * the one that speaks to the GOA daemon over D-Bus, which answers `no-account-store` when the
5
+ * daemon is not reachable.
6
+ */
3
7
  export declare function createSystemAccounts(): SystemAccounts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/system-accounts",
3
- "version": "0.64.45",
3
+ "version": "0.64.47",
4
4
  "description": "The accounts a user already set up on their system: find them, read their mail server settings, get credentials. GNOME Online Accounts on Linux.",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "clear": "gjsify clear lib tmp tsconfig.tsbuildinfo test.gjs.mjs test.node.mjs",
22
22
  "check": "gjsify tsc --noEmit",
23
23
  "build": "gjsify run build:gjsify && gjsify run build:types",
24
- "build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}' 'src/test.gjs.mts' 'src/fake-goa.ts'",
24
+ "build:gjsify": "gjsify build --library 'src/**/*.{ts,js}' --exclude 'src/**/*.spec.{mts,ts}' 'src/test.{mts,ts}' 'src/test.gjs.mts' 'src/fake-goa.ts' 'src/**/*.gjs.spec.ts'",
25
25
  "build:types": "gjsify tsc",
26
26
  "build:test": "gjsify run build:test:gjs && gjsify run build:test:node",
27
27
  "build:test:gjs": "gjsify build src/test.gjs.mts --app gjs --outfile test.gjs.mjs",
@@ -47,8 +47,8 @@
47
47
  "@girs/goa-1.0": "5.4.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@gjsify/cli": "0.64.45",
51
- "@gjsify/unit": "0.64.45",
50
+ "@gjsify/cli": "0.64.47",
51
+ "@gjsify/unit": "0.64.47",
52
52
  "typescript": "^6.0.3"
53
53
  },
54
54
  "license": "MIT",