Skip to content

Commit c8950e3

Browse files
committed
fix: commit package rename and vite .mjs output config
1 parent 9b62faf commit c8950e3

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `<auths-verify>` Web Component
22

3-
[![npm version](https://img.shields.io/npm/v/auths-verify.svg)](https://www.npmjs.com/package/auths-verify)
4-
[![license](https://img.shields.io/npm/l/auths-verify.svg)](https://github.com/auths-dev/auths-verify-widget/blob/main/LICENSE)
3+
[![npm version](https://img.shields.io/npm/v/@auths-dev/verify.svg)](https://www.npmjs.com/package/@auths-dev/verify)
4+
[![license](https://img.shields.io/npm/l/@auths-dev/verify.svg)](https://github.com/auths-dev/auths-verify-widget/blob/main/LICENSE)
55

66
A drop-in web component that verifies [Auths](https://github.com/auths-dev/auths) decentralized identities — the open-source equivalent of GitHub's green "Verified" badge. Point it at any repository that uses Auths, and it cryptographically verifies the identity chain in the browser via WASM.
77

@@ -10,17 +10,17 @@ A drop-in web component that verifies [Auths](https://github.com/auths-dev/auths
1010
**CDN (no build step):**
1111

1212
```html
13-
<script type="module" src="https://unpkg.com/auths-verify/dist/auths-verify.mjs"></script>
13+
<script type="module" src="https://unpkg.com/@auths-dev/verify/dist/auths-verify.mjs"></script>
1414
```
1515

1616
**npm (for bundlers):**
1717

1818
```bash
19-
npm install auths-verify
19+
npm install @auths-dev/verify
2020
```
2121

2222
```js
23-
import 'auths-verify';
23+
import '@auths-dev/verify';
2424
```
2525

2626
## Quick Start

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "auths-verify",
3-
"version": "0.1.2",
2+
"name": "@auths-dev/verify",
3+
"version": "0.2.1",
44
"description": "Drop-in <auths-verify> web component for decentralized commit verification",
55
"type": "module",
66
"main": "dist/auths-verify.mjs",

scripts/release/npm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
Build and publish auths-verify to npm.
3+
Build and publish @auths-dev/verify to npm.
44
55
Usage:
66
python scripts/release/npm.py # dry-run (shows what would happen)
@@ -30,7 +30,7 @@
3030

3131
REPO_ROOT = Path(__file__).resolve().parents[2]
3232
PACKAGE_JSON = REPO_ROOT / "package.json"
33-
NPM_REGISTRY_URL = "https://registry.npmjs.org/auths-verify"
33+
NPM_REGISTRY_URL = "https://registry.npmjs.org/@auths-dev/verify"
3434

3535

3636
def get_version() -> str:
@@ -192,8 +192,8 @@ def main() -> None:
192192
if result.returncode != 0:
193193
print(f"\nWARNING: Failed to push tag {tag}", file=sys.stderr)
194194

195-
print(f"\nDone. Published auths-verify@{version} to npm.")
196-
print(f" https://www.npmjs.com/package/auths-verify")
195+
print(f"\nDone. Published @auths-dev/verify@{version} to npm.")
196+
print(f" https://www.npmjs.com/package/@auths-dev/verify")
197197

198198

199199
if __name__ == "__main__":

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default defineConfig(({ mode }) => {
4141
entry: resolve(__dirname, 'src/auths-verify.ts'),
4242
name: 'AuthsVerify',
4343
formats: ['es'],
44-
fileName: () => isSlim ? 'slim/auths-verify' : 'auths-verify',
44+
fileName: () => isSlim ? 'slim/auths-verify.mjs' : 'auths-verify.mjs',
4545
},
4646
outDir: 'dist',
4747
emptyOutDir: !isSlim,

0 commit comments

Comments
 (0)