@basaltkit/api-keys-ui 1.0.0 → 1.0.2
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/LICENSE +1 -1
- package/README.md +6 -0
- package/dist/html.d.ts +12 -0
- package/dist/html.js +107 -0
- package/dist/index.d.ts +2 -27
- package/dist/index.js +2 -122
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.js +20 -0
- package/package.json +15 -15
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://basaltkit-docs.pages.dev">
|
|
3
|
+
<img src="https://basaltkit-docs.pages.dev/social-card.png" alt="Basalt" width="440">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
1
7
|
# @basaltkit/api-keys-ui
|
|
2
8
|
|
|
3
9
|
Self-contained HTML page to **manage API keys** for [`@basaltkit/auth`](https://www.npmjs.com/package/@basaltkit/auth): create (shows the key **once**), list and revoke — **zero dependencies, no build step**. You need this module when you want to give users a screen to manage their API keys without building the UI from scratch.
|
package/dist/html.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ApiKeysPageOptions {
|
|
2
|
+
/** Base path where the API-key JSON routes are mounted. Default '' (same origin). */
|
|
3
|
+
apiBase?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A self-contained HTML page (no dependencies, no build) to manage API keys by
|
|
8
|
+
* calling `@basaltkit/auth`'s routes: `GET/POST /apikeys` and `DELETE /apikeys/:id`.
|
|
9
|
+
* Serve it from a route (see `apiKeysUiRoutes`). The page assumes the browser is
|
|
10
|
+
* already authenticated (session cookie) for those routes.
|
|
11
|
+
*/
|
|
12
|
+
export declare function apiKeysPageHtml(options?: ApiKeysPageOptions): string;
|
package/dist/html.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A self-contained HTML page (no dependencies, no build) to manage API keys by
|
|
3
|
+
* calling `@basaltkit/auth`'s routes: `GET/POST /apikeys` and `DELETE /apikeys/:id`.
|
|
4
|
+
* Serve it from a route (see `apiKeysUiRoutes`). The page assumes the browser is
|
|
5
|
+
* already authenticated (session cookie) for those routes.
|
|
6
|
+
*/
|
|
7
|
+
export function apiKeysPageHtml(options = {}) {
|
|
8
|
+
const apiBase = options.apiBase ?? '';
|
|
9
|
+
const title = options.title ?? 'API keys';
|
|
10
|
+
return `<!doctype html>
|
|
11
|
+
<html lang="en">
|
|
12
|
+
<head>
|
|
13
|
+
<meta charset="utf-8" />
|
|
14
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
15
|
+
<title>${title}</title>
|
|
16
|
+
<style>
|
|
17
|
+
:root { color-scheme: light dark; --bd: #8884; --accent: #4f46e5; --danger: #dc2626; --ok: #16a34a; }
|
|
18
|
+
body { font: 14px/1.5 system-ui, sans-serif; margin: 0; padding: 2rem 1.5rem; max-width: 820px; margin-inline: auto; }
|
|
19
|
+
h1 { font-size: 1.4rem; margin: 0 0 1.25rem; }
|
|
20
|
+
.card { border: 1px solid var(--bd); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
|
|
21
|
+
form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
|
|
22
|
+
label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; opacity: .8; }
|
|
23
|
+
input { padding: .45rem .6rem; border: 1px solid var(--bd); border-radius: 7px; background: transparent; color: inherit; min-width: 12rem; }
|
|
24
|
+
button { padding: .45rem .9rem; border: 1px solid var(--bd); border-radius: 7px; cursor: pointer; background: transparent; color: inherit; font: inherit; }
|
|
25
|
+
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
26
|
+
button.link { border: none; color: var(--danger); padding: .2rem .4rem; }
|
|
27
|
+
table { width: 100%; border-collapse: collapse; }
|
|
28
|
+
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--bd); }
|
|
29
|
+
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
|
|
30
|
+
code { font-family: ui-monospace, monospace; }
|
|
31
|
+
.muted { opacity: .55; }
|
|
32
|
+
.reveal { border: 1px solid var(--ok); background: #16a34a18; border-radius: 8px; padding: .75rem 1rem; margin-top: .75rem; display: none; }
|
|
33
|
+
.reveal code { word-break: break-all; }
|
|
34
|
+
.empty { padding: 1rem; text-align: center; }
|
|
35
|
+
</style>
|
|
36
|
+
</head>
|
|
37
|
+
<body>
|
|
38
|
+
<h1>${title}</h1>
|
|
39
|
+
|
|
40
|
+
<div class="card">
|
|
41
|
+
<form id="create">
|
|
42
|
+
<label>Name<input name="name" placeholder="CI pipeline" required /></label>
|
|
43
|
+
<label>Scopes (comma-separated)<input name="scopes" placeholder="read, write" /></label>
|
|
44
|
+
<button class="primary" type="submit">Create key</button>
|
|
45
|
+
</form>
|
|
46
|
+
<div class="reveal" id="reveal">
|
|
47
|
+
<div>Copy your new key now — it won't be shown again:</div>
|
|
48
|
+
<div style="margin-top:.4rem;display:flex;gap:.5rem;align-items:center">
|
|
49
|
+
<code id="newkey"></code><button id="copy" type="button">Copy</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<table>
|
|
55
|
+
<thead><tr><th>Prefix</th><th>Scopes</th><th>Last used</th><th></th></tr></thead>
|
|
56
|
+
<tbody id="rows"></tbody>
|
|
57
|
+
</table>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
const API = ${JSON.stringify(apiBase)};
|
|
61
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>]/g, (c) => ({'&':'&','<':'<','>':'>'}[c]));
|
|
62
|
+
const opts = { credentials: 'same-origin', headers: { 'content-type': 'application/json' } };
|
|
63
|
+
|
|
64
|
+
async function list() {
|
|
65
|
+
const keys = await fetch(API + '/apikeys', opts).then((r) => r.json());
|
|
66
|
+
const rows = document.getElementById('rows');
|
|
67
|
+
if (!Array.isArray(keys) || keys.length === 0) {
|
|
68
|
+
rows.innerHTML = '<tr><td colspan="4" class="empty muted">No API keys yet.</td></tr>';
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
rows.innerHTML = keys.map((k) =>
|
|
72
|
+
'<tr><td><code>' + esc(k.prefix) + '…</code></td>' +
|
|
73
|
+
'<td>' + esc((k.scopes || []).join(', ')) + '</td>' +
|
|
74
|
+
'<td class="muted">' + (k.lastUsedAt ? new Date(k.lastUsedAt).toLocaleString() : 'never') + '</td>' +
|
|
75
|
+
'<td><button class="link" data-id="' + esc(k.id) + '">Revoke</button></td></tr>').join('');
|
|
76
|
+
for (const b of rows.querySelectorAll('button[data-id]')) {
|
|
77
|
+
b.addEventListener('click', async () => {
|
|
78
|
+
if (!confirm('Revoke this key? Any client using it will stop working.')) return;
|
|
79
|
+
await fetch(API + '/apikeys/' + b.dataset.id, { ...opts, method: 'DELETE' });
|
|
80
|
+
list();
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
document.getElementById('create').addEventListener('submit', async (e) => {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
const f = new FormData(e.target);
|
|
88
|
+
const scopes = String(f.get('scopes') || '').split(',').map((s) => s.trim()).filter(Boolean);
|
|
89
|
+
const body = JSON.stringify({ name: f.get('name'), ...(scopes.length ? { scopes } : {}) });
|
|
90
|
+
const created = await fetch(API + '/apikeys', { ...opts, method: 'POST', body }).then((r) => r.json());
|
|
91
|
+
if (created && created.key) {
|
|
92
|
+
document.getElementById('newkey').textContent = created.key;
|
|
93
|
+
document.getElementById('reveal').style.display = 'block';
|
|
94
|
+
}
|
|
95
|
+
e.target.reset();
|
|
96
|
+
list();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
document.getElementById('copy').addEventListener('click', () => {
|
|
100
|
+
navigator.clipboard && navigator.clipboard.writeText(document.getElementById('newkey').textContent);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
list();
|
|
104
|
+
</script>
|
|
105
|
+
</body>
|
|
106
|
+
</html>`;
|
|
107
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface ApiKeysPageOptions {
|
|
4
|
-
/** Base path where the API-key JSON routes are mounted. Default '' (same origin). */
|
|
5
|
-
apiBase?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A self-contained HTML page (no dependencies, no build) to manage API keys by
|
|
10
|
-
* calling `@basaltkit/auth`'s routes: `GET/POST /apikeys` and `DELETE /apikeys/:id`.
|
|
11
|
-
* Serve it from a route (see `apiKeysUiRoutes`). The page assumes the browser is
|
|
12
|
-
* already authenticated (session cookie) for those routes.
|
|
13
|
-
*/
|
|
14
|
-
declare function apiKeysPageHtml(options?: ApiKeysPageOptions): string;
|
|
15
|
-
|
|
16
|
-
interface ApiKeysUiOptions extends ApiKeysPageOptions {
|
|
17
|
-
/** Where to mount the page. Default `/apikeys/ui`. */
|
|
18
|
-
path?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Serves the API-keys management page at `GET /apikeys/ui` (requires a
|
|
22
|
-
* logged-in user). Pair with `@basaltkit/auth`'s `apiKeyRoutes()`, which provides
|
|
23
|
-
* the JSON endpoints the page calls.
|
|
24
|
-
*/
|
|
25
|
-
declare function apiKeysUiRoutes(options?: ApiKeysUiOptions): BasaltRoute[];
|
|
26
|
-
|
|
27
|
-
export { type ApiKeysPageOptions, type ApiKeysUiOptions, apiKeysPageHtml, apiKeysUiRoutes };
|
|
1
|
+
export { apiKeysPageHtml, type ApiKeysPageOptions } from './html.js';
|
|
2
|
+
export { apiKeysUiRoutes, type ApiKeysUiOptions } from './plugin.js';
|
package/dist/index.js
CHANGED
|
@@ -1,122 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const apiBase = options.apiBase ?? "";
|
|
4
|
-
const title = options.title ?? "API keys";
|
|
5
|
-
return `<!doctype html>
|
|
6
|
-
<html lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<meta charset="utf-8" />
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
10
|
-
<title>${title}</title>
|
|
11
|
-
<style>
|
|
12
|
-
:root { color-scheme: light dark; --bd: #8884; --accent: #4f46e5; --danger: #dc2626; --ok: #16a34a; }
|
|
13
|
-
body { font: 14px/1.5 system-ui, sans-serif; margin: 0; padding: 2rem 1.5rem; max-width: 820px; margin-inline: auto; }
|
|
14
|
-
h1 { font-size: 1.4rem; margin: 0 0 1.25rem; }
|
|
15
|
-
.card { border: 1px solid var(--bd); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
|
|
16
|
-
form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
|
|
17
|
-
label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; opacity: .8; }
|
|
18
|
-
input { padding: .45rem .6rem; border: 1px solid var(--bd); border-radius: 7px; background: transparent; color: inherit; min-width: 12rem; }
|
|
19
|
-
button { padding: .45rem .9rem; border: 1px solid var(--bd); border-radius: 7px; cursor: pointer; background: transparent; color: inherit; font: inherit; }
|
|
20
|
-
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
21
|
-
button.link { border: none; color: var(--danger); padding: .2rem .4rem; }
|
|
22
|
-
table { width: 100%; border-collapse: collapse; }
|
|
23
|
-
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--bd); }
|
|
24
|
-
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
|
|
25
|
-
code { font-family: ui-monospace, monospace; }
|
|
26
|
-
.muted { opacity: .55; }
|
|
27
|
-
.reveal { border: 1px solid var(--ok); background: #16a34a18; border-radius: 8px; padding: .75rem 1rem; margin-top: .75rem; display: none; }
|
|
28
|
-
.reveal code { word-break: break-all; }
|
|
29
|
-
.empty { padding: 1rem; text-align: center; }
|
|
30
|
-
</style>
|
|
31
|
-
</head>
|
|
32
|
-
<body>
|
|
33
|
-
<h1>${title}</h1>
|
|
34
|
-
|
|
35
|
-
<div class="card">
|
|
36
|
-
<form id="create">
|
|
37
|
-
<label>Name<input name="name" placeholder="CI pipeline" required /></label>
|
|
38
|
-
<label>Scopes (comma-separated)<input name="scopes" placeholder="read, write" /></label>
|
|
39
|
-
<button class="primary" type="submit">Create key</button>
|
|
40
|
-
</form>
|
|
41
|
-
<div class="reveal" id="reveal">
|
|
42
|
-
<div>Copy your new key now \u2014 it won't be shown again:</div>
|
|
43
|
-
<div style="margin-top:.4rem;display:flex;gap:.5rem;align-items:center">
|
|
44
|
-
<code id="newkey"></code><button id="copy" type="button">Copy</button>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<table>
|
|
50
|
-
<thead><tr><th>Prefix</th><th>Scopes</th><th>Last used</th><th></th></tr></thead>
|
|
51
|
-
<tbody id="rows"></tbody>
|
|
52
|
-
</table>
|
|
53
|
-
|
|
54
|
-
<script>
|
|
55
|
-
const API = ${JSON.stringify(apiBase)};
|
|
56
|
-
const esc = (s) => String(s == null ? '' : s).replace(/[&<>]/g, (c) => ({'&':'&','<':'<','>':'>'}[c]));
|
|
57
|
-
const opts = { credentials: 'same-origin', headers: { 'content-type': 'application/json' } };
|
|
58
|
-
|
|
59
|
-
async function list() {
|
|
60
|
-
const keys = await fetch(API + '/apikeys', opts).then((r) => r.json());
|
|
61
|
-
const rows = document.getElementById('rows');
|
|
62
|
-
if (!Array.isArray(keys) || keys.length === 0) {
|
|
63
|
-
rows.innerHTML = '<tr><td colspan="4" class="empty muted">No API keys yet.</td></tr>';
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
rows.innerHTML = keys.map((k) =>
|
|
67
|
-
'<tr><td><code>' + esc(k.prefix) + '\u2026</code></td>' +
|
|
68
|
-
'<td>' + esc((k.scopes || []).join(', ')) + '</td>' +
|
|
69
|
-
'<td class="muted">' + (k.lastUsedAt ? new Date(k.lastUsedAt).toLocaleString() : 'never') + '</td>' +
|
|
70
|
-
'<td><button class="link" data-id="' + esc(k.id) + '">Revoke</button></td></tr>').join('');
|
|
71
|
-
for (const b of rows.querySelectorAll('button[data-id]')) {
|
|
72
|
-
b.addEventListener('click', async () => {
|
|
73
|
-
if (!confirm('Revoke this key? Any client using it will stop working.')) return;
|
|
74
|
-
await fetch(API + '/apikeys/' + b.dataset.id, { ...opts, method: 'DELETE' });
|
|
75
|
-
list();
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
document.getElementById('create').addEventListener('submit', async (e) => {
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
const f = new FormData(e.target);
|
|
83
|
-
const scopes = String(f.get('scopes') || '').split(',').map((s) => s.trim()).filter(Boolean);
|
|
84
|
-
const body = JSON.stringify({ name: f.get('name'), ...(scopes.length ? { scopes } : {}) });
|
|
85
|
-
const created = await fetch(API + '/apikeys', { ...opts, method: 'POST', body }).then((r) => r.json());
|
|
86
|
-
if (created && created.key) {
|
|
87
|
-
document.getElementById('newkey').textContent = created.key;
|
|
88
|
-
document.getElementById('reveal').style.display = 'block';
|
|
89
|
-
}
|
|
90
|
-
e.target.reset();
|
|
91
|
-
list();
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
document.getElementById('copy').addEventListener('click', () => {
|
|
95
|
-
navigator.clipboard && navigator.clipboard.writeText(document.getElementById('newkey').textContent);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
list();
|
|
99
|
-
</script>
|
|
100
|
-
</body>
|
|
101
|
-
</html>`;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// src/plugin.ts
|
|
105
|
-
import { route } from "@basaltkit/fastify";
|
|
106
|
-
function apiKeysUiRoutes(options = {}) {
|
|
107
|
-
const html = apiKeysPageHtml(options);
|
|
108
|
-
return [
|
|
109
|
-
route({
|
|
110
|
-
method: "GET",
|
|
111
|
-
url: options.path ?? "/apikeys/ui",
|
|
112
|
-
meta: { auth: true },
|
|
113
|
-
async handler({ reply }) {
|
|
114
|
-
return reply.header("content-type", "text/html; charset=utf-8").send(html);
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
];
|
|
118
|
-
}
|
|
119
|
-
export {
|
|
120
|
-
apiKeysPageHtml,
|
|
121
|
-
apiKeysUiRoutes
|
|
122
|
-
};
|
|
1
|
+
export { apiKeysPageHtml } from './html.js';
|
|
2
|
+
export { apiKeysUiRoutes } from './plugin.js';
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type BasaltRoute } from '@basaltkit/http';
|
|
2
|
+
import { type ApiKeysPageOptions } from './html.js';
|
|
3
|
+
export interface ApiKeysUiOptions extends ApiKeysPageOptions {
|
|
4
|
+
/** Where to mount the page. Default `/apikeys/ui`. */
|
|
5
|
+
path?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Serves the API-keys management page at `GET /apikeys/ui` (requires a
|
|
9
|
+
* logged-in user). Pair with `@basaltkit/auth`'s `apiKeyRoutes()`, which provides
|
|
10
|
+
* the JSON endpoints the page calls.
|
|
11
|
+
*/
|
|
12
|
+
export declare function apiKeysUiRoutes(options?: ApiKeysUiOptions): BasaltRoute[];
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { route } from '@basaltkit/http';
|
|
2
|
+
import { apiKeysPageHtml } from './html.js';
|
|
3
|
+
/**
|
|
4
|
+
* Serves the API-keys management page at `GET /apikeys/ui` (requires a
|
|
5
|
+
* logged-in user). Pair with `@basaltkit/auth`'s `apiKeyRoutes()`, which provides
|
|
6
|
+
* the JSON endpoints the page calls.
|
|
7
|
+
*/
|
|
8
|
+
export function apiKeysUiRoutes(options = {}) {
|
|
9
|
+
const html = apiKeysPageHtml(options);
|
|
10
|
+
return [
|
|
11
|
+
route({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: options.path ?? '/apikeys/ui',
|
|
14
|
+
meta: { auth: true },
|
|
15
|
+
async handler({ reply }) {
|
|
16
|
+
return reply.header('content-type', 'text/html; charset=utf-8').send(html);
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
];
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basaltkit/api-keys-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A self-contained HTML page to manage @basaltkit/auth API keys: create (show once), list and revoke — zero dependencies, no build.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,29 +14,29 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@basaltkit/
|
|
18
|
-
"@basaltkit/
|
|
17
|
+
"@basaltkit/core": "^1.1.2",
|
|
18
|
+
"@basaltkit/http": "^1.9.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"@basaltkit/
|
|
27
|
-
"@basaltkit/
|
|
28
|
-
"@basaltkit/
|
|
21
|
+
"@types/node": "^26.3.0",
|
|
22
|
+
"typescript": "^7.0.2",
|
|
23
|
+
"vitest": "^4.1.11",
|
|
24
|
+
"zod": "^3.24.0 || ^4.0.0",
|
|
25
|
+
"@basaltkit/auth": "^1.6.3",
|
|
26
|
+
"@basaltkit/fastify": "^1.6.1",
|
|
27
|
+
"@basaltkit/tenancy": "^1.3.3",
|
|
28
|
+
"@basaltkit/tsconfig": "^0.24.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "git+https://github.com/
|
|
35
|
+
"url": "git+https://github.com/basaltkit/basalt.git",
|
|
36
36
|
"directory": "packages/api-keys-ui"
|
|
37
37
|
},
|
|
38
|
-
"homepage": "https://github.com/
|
|
39
|
-
"bugs": "https://github.com/
|
|
38
|
+
"homepage": "https://github.com/basaltkit/basalt/tree/main/packages/api-keys-ui#readme",
|
|
39
|
+
"bugs": "https://github.com/basaltkit/basalt/issues",
|
|
40
40
|
"keywords": [
|
|
41
41
|
"basalt",
|
|
42
42
|
"typescript",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ui"
|
|
46
46
|
],
|
|
47
47
|
"scripts": {
|
|
48
|
-
"build": "
|
|
48
|
+
"build": "tsc -p tsconfig.build.json",
|
|
49
49
|
"test": "vitest run",
|
|
50
50
|
"typecheck": "tsc --noEmit"
|
|
51
51
|
}
|