Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
remove npm support, fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhorning committed Aug 5, 2024
1 parent b009f8f commit a386e5c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 89 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/release.ts

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,4 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: v1.44.4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: deno publish
- run: deno run -A .github/workflows/release.ts
- run: npm publish --provenance --access public
working-directory: dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ A Meower API Client written in Typescript.

## installation

install and import the package from your favorite source of packages:
get the package from your favorite source of packages:

- @meower-media/api-client from npm
- @meower/api-client from jsr
- @meower/api-client on jsr
- esm.sh/jsr/@meower/api-client in browsers
1 change: 0 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
]
},
"tasks": {
"build-npm": "deno run -A .github/workflows/release.ts",
"test": "deno test -A"
},
"test": {
Expand Down
3 changes: 2 additions & 1 deletion src/api/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export class socket extends EventEmitter<{
private socket: WebSocket;
private opts: socket_connect_opts;

private constructor(socket: WebSocket, opts: socket_connect_opts) {
/** create a socket instance from a given websocket connection */
constructor(socket: WebSocket, opts: socket_connect_opts) {
super();
this.socket = socket;
this.opts = opts;
Expand Down

0 comments on commit a386e5c

Please sign in to comment.